GWT 2.3.0

Uses of Class
com.google.gwt.user.client.Element

Packages that use Element
com.google.gwt.user.client Fundamental user-interface classes used in client-side GWT code. 
com.google.gwt.user.client.ui Widgets, Panels, and other user-interface classes. 
 

Uses of Element in com.google.gwt.user.client
 

Methods in com.google.gwt.user.client that return Element
static Element DOM.clone(Element elem, boolean deep)
          Clones an element.
static Element DOM.createAnchor()
          Creates an HTML A element.
static Element DOM.createButton()
          Creates an HTML BUTTON element.
static Element DOM.createCaption()
          Creates an HTML CAPTION element.
static Element DOM.createCol()
          Creates an HTML COL element.
static Element DOM.createColGroup()
          Creates an HTML COLGROUP element.
static Element DOM.createDiv()
          Creates an HTML DIV element.
static Element DOM.createElement(java.lang.String tagName)
          Creates an HTML element.
static Element DOM.createFieldSet()
          Creates an HTML FIELDSET element.
static Element DOM.createForm()
          Creates an HTML FORM element.
static Element DOM.createIFrame()
          Creates an HTML IFRAME element.
static Element DOM.createImg()
          Creates an HTML IMG element.
static Element DOM.createInputCheck()
          Creates an HTML INPUT type='CHECK' element.
static Element DOM.createInputPassword()
          Creates an HTML INPUT type='PASSWORD' element.
static Element DOM.createInputRadio(java.lang.String name)
          Creates an HTML INPUT type='RADIO' element.
static Element DOM.createInputText()
          Creates an HTML INPUT type='TEXT' element.
static Element DOM.createLabel()
          Creates an HTML LABEL element.
static Element DOM.createLegend()
          Creates an HTML LEGEND element.
static Element DOM.createOption()
          Creates an HTML OPTION element.
static Element DOM.createOptions()
          Deprecated. there is no "options" element; use DOM.createOption() instead
static Element DOM.createSelect()
          Creates a single-selection HTML SELECT element.
static Element DOM.createSelect(boolean multiple)
          Creates an HTML SELECT element.
static Element DOM.createSpan()
          Creates an HTML SPAN element.
static Element DOM.createTable()
          Creates an HTML TABLE element.
static Element DOM.createTBody()
          Creates an HTML TBODY element.
static Element DOM.createTD()
          Creates an HTML TD element.
static Element DOM.createTextArea()
          Creates an HTML TEXTAREA element.
static Element DOM.createTFoot()
          Creates an HTML TFOOT element.
static Element DOM.createTH()
          Creates an HTML TH element.
static Element DOM.createTHead()
          Creates an HTML THEAD element.
static Element DOM.createTR()
          Creates an HTML TR element.
static Element DOM.eventGetCurrentTarget(Event evt)
          Gets the current target element of the given event.
static Element DOM.eventGetFromElement(Event evt)
          Gets the element from which the mouse pointer was moved (valid for Event.ONMOUSEOVER and Event.ONMOUSEOUT).
static Element DOM.eventGetTarget(Event evt)
          Returns the element that was the actual target of the given event.
static Element DOM.eventGetToElement(Event evt)
          Gets the element to which the mouse pointer was moved (only valid for Event.ONMOUSEOUT and Event.ONMOUSEOVER).
static Element DOM.getCaptureElement()
          Gets the element that currently has mouse capture.
static Element DOM.getChild(Element parent, int index)
          Gets an element's n-th child element.
static Element DOM.getElementById(java.lang.String id)
          Gets the element associated with the given unique id within the entire document.
static Element DOM.getFirstChild(Element elem)
          Gets the first child element of the given element.
static Element DOM.getNextSibling(Element elem)
          Gets an element's next sibling element.
static Element DOM.getParent(Element elem)
          Gets an element's parent element.
 

Methods in com.google.gwt.user.client with parameters of type Element
static void DOM.appendChild(Element parent, Element child)
          Appends one element to another's list of children.
static Element DOM.clone(Element elem, boolean deep)
          Clones an element.
static boolean DOM.compare(Element elem1, Element elem2)
          Deprecated. Use identity comparison.
static int DOM.getAbsoluteLeft(Element elem)
          Gets an element's absolute left coordinate in the document's coordinate system.
static int DOM.getAbsoluteTop(Element elem)
          Gets an element's absolute top coordinate in the document's coordinate system.
static java.lang.String DOM.getAttribute(Element elem, java.lang.String attr)
          Deprecated. Use the more appropriately named DOM.getElementProperty(Element, String) instead.
static boolean DOM.getBooleanAttribute(Element elem, java.lang.String attr)
          Deprecated. Use the more appropriately named DOM.getElementPropertyBoolean(Element, String) instead.
static Element DOM.getChild(Element parent, int index)
          Gets an element's n-th child element.
static int DOM.getChildCount(Element parent)
          Gets the number of child elements present in a given parent element.
static int DOM.getChildIndex(Element parent, Element child)
          Gets the index of a given child element within its parent.
static java.lang.String DOM.getElementAttribute(Element elem, java.lang.String attr)
          Gets the named attribute from the element.
static java.lang.String DOM.getElementProperty(Element elem, java.lang.String prop)
          Gets any named property from an element, as a string.
static boolean DOM.getElementPropertyBoolean(Element elem, java.lang.String prop)
          Gets any named property from an element, as a boolean.
static int DOM.getElementPropertyInt(Element elem, java.lang.String prop)
          Gets any named property from an element, as an int.
static EventListener DOM.getEventListener(Element elem)
          Gets the EventListener that will receive events for the given element.
static int DOM.getEventsSunk(Element elem)
          Gets the current set of events sunk by a given element.
static Element DOM.getFirstChild(Element elem)
          Gets the first child element of the given element.
static java.lang.String DOM.getImgSrc(Element img)
          Gets the src attribute of an img element.
static java.lang.String DOM.getInnerHTML(Element elem)
          Gets an HTML representation of an element's children.
static java.lang.String DOM.getInnerText(Element elem)
          Gets the text contained within an element.
static int DOM.getIntAttribute(Element elem, java.lang.String attr)
          Deprecated. Use the more appropriately named DOM.getElementPropertyInt(Element, String) instead.
static int DOM.getIntStyleAttribute(Element elem, java.lang.String attr)
          Gets an integer attribute on a given element's style.
static Element DOM.getNextSibling(Element elem)
          Gets an element's next sibling element.
static Element DOM.getParent(Element elem)
          Gets an element's parent element.
static java.lang.String DOM.getStyleAttribute(Element elem, java.lang.String attr)
          Gets an attribute of the given element's style.
static void DOM.insertBefore(Element parent, Element child, Element before)
          Inserts an element as a child of the given parent element, before another child of that parent.
static void DOM.insertChild(Element parent, Element child, int index)
          Inserts an element as a child of the given parent element.
static void DOM.insertListItem(Element selectElem, java.lang.String item, java.lang.String value, int index)
          Creates an <option> element and inserts it as a child of the specified <select> element.
static boolean DOM.isOrHasChild(Element parent, Element child)
          Determine whether one element is equal to, or the child of, another.
static void DOM.releaseCapture(Element elem)
          Releases mouse/touch/gesture capture on the given element.
static void DOM.removeChild(Element parent, Element child)
          Removes a child element from the given parent element.
static void DOM.removeElementAttribute(Element elem, java.lang.String attr)
          Removes the named attribute from the given element.
static void DOM.scrollIntoView(Element elem)
          Scrolls the given element into view.
static void DOM.setAttribute(Element elem, java.lang.String attr, java.lang.String value)
          Deprecated. Use the more appropriately named DOM.setElementProperty(Element, String, String) instead.
static void DOM.setBooleanAttribute(Element elem, java.lang.String attr, boolean value)
          Deprecated. Use the more appropriately named DOM.setElementPropertyBoolean(Element, String, boolean) instead.
static void DOM.setCapture(Element elem)
          Sets mouse/touch/gesture capture on the given element.
static void DOM.setElementAttribute(Element elem, java.lang.String attr, java.lang.String value)
          Sets an attribute on a given element.
static void DOM.setElementProperty(Element elem, java.lang.String prop, java.lang.String value)
          Sets a property on the given element.
static void DOM.setElementPropertyBoolean(Element elem, java.lang.String prop, boolean value)
          Sets a boolean property on the given element.
static void DOM.setElementPropertyInt(Element elem, java.lang.String prop, int value)
          Sets an int property on the given element.
static void DOM.setEventListener(Element elem, EventListener listener)
          Sets the EventListener to receive events for the given element.
static void DOM.setImgSrc(Element img, java.lang.String src)
          Sets the src attribute of an img element.
static void DOM.setInnerHTML(Element elem, java.lang.String html)
          Sets the HTML contained within an element.
static void DOM.setInnerText(Element elem, java.lang.String text)
          Sets the text contained within an element.
static void DOM.setIntAttribute(Element elem, java.lang.String attr, int value)
          Deprecated. Use the more appropriately named DOM.setElementPropertyInt(Element, String, int) instead.
static void DOM.setIntStyleAttribute(Element elem, java.lang.String attr, int value)
          Sets an integer attribute on the given element's style.
static void DOM.setOptionText(Element select, java.lang.String text, int index)
          Sets the option text of the given select object.
static void DOM.setStyleAttribute(Element elem, java.lang.String attr, java.lang.String value)
          Sets an attribute on the given element's style.
static void DOM.sinkBitlessEvent(Element elem, java.lang.String eventTypeName)
          Sinks a named event.
static void DOM.sinkEvents(Element elem, int eventBits)
          Sets the current set of events sunk by a given element.
static java.lang.String DOM.toString(Element elem)
          Returns a stringized version of the element.
 

Uses of Element in com.google.gwt.user.client.ui
 

Fields in com.google.gwt.user.client.ui declared as Element
protected  Element HTMLTable.ColumnFormatter.columnGroup
           
 

Methods in com.google.gwt.user.client.ui that return Element
protected  Element HTMLTable.createCell()
          Creates a new cell.
protected  Element Grid.createCell()
          Creates a new, empty cell.
protected  Element HTMLTable.RowFormatter.ensureElement(int row)
          Ensure the TR element representing the specified row exists for subclasses that allow dynamic addition of elements.
protected  Element HTMLTable.CellFormatter.ensureElement(int row, int column)
          Gets the element associated with a cell.
protected  Element CellPanel.getBody()
           
static Element RootPanel.getBodyElement()
          Convenience method for getting the document's body element.
protected  Element HTMLTable.getBodyElement()
          Gets the table's TBODY element.
protected  Element DecoratorPanel.getCellElement(int row, int cell)
          Get a specific Element from the panel.
protected  Element DecoratedPopupPanel.getCellElement(int row, int cell)
          Get a specific Element from the panel.
protected  Element SimplePanel.getContainerElement()
          Override this method to specify that an element other than the root element be the container for the panel's child widget.
protected  Element ScrollPanel.getContainerElement()
           
protected  Element PopupPanel.getContainerElement()
           
protected  Element DecoratorPanel.getContainerElement()
           
 Element UIObject.getElement()
          Gets a handle to the object's underlying DOM element.
 Element HTMLTable.Cell.getElement()
          Gets the cell's element.
 Element HTMLTable.ColumnFormatter.getElement(int column)
          Get the col element for the column.
 Element HTMLTable.RowFormatter.getElement(int row)
          Gets the TR element representing the specified row.
 Element HTMLTable.CellFormatter.getElement(int row, int column)
          Gets the TD element representing the specified cell.
 Element HTMLPanel.getElementById(java.lang.String id)
          Finds an element within this panel by its id.
protected  Element HTMLTable.getEventTargetCell(Event event)
          Determines the TD associated with the specified event.
protected  Element HTMLTable.RowFormatter.getRow(Element elem, int row)
           
protected  Element UIObject.getStyleElement()
          Template method that returns the element to which style names will be applied.
protected  Element PopupPanel.getStyleElement()
           
protected  Element CellPanel.getTable()
           
 

Methods in com.google.gwt.user.client.ui with parameters of type Element
protected  void ComplexPanel.add(Widget child, Element container)
          Adds a new child widget to the panel, attaching its Element to the specified container Element.
 void HTMLPanel.addAndReplaceElement(IsWidget widget, Element toReplace)
          Overloaded version for IsWidget.
 void HTMLPanel.addAndReplaceElement(Widget widget, Element toReplace)
          Deprecated. use HTMLPanel.addAndReplaceElement(Widget, Element)
protected  void Panel.adopt(Widget w, Element container)
          Deprecated. Use Panel.adopt(Widget).
protected  int HTMLTable.getDOMCellCount(Element tableBody, int row)
          Directly ask the underlying DOM what the cell count on the given row is.
protected  int HTMLTable.getDOMRowCount(Element elem)
           
static java.lang.String Accessibility.getRole(Element elem)
          Requests the string value of the role with the specified namespace.
protected  Element HTMLTable.RowFormatter.getRow(Element elem, int row)
           
static java.lang.String Accessibility.getState(Element elem, java.lang.String stateName)
          Requests the string value of the state with the specified namespace.
protected  void ComplexPanel.insert(Widget child, Element container, int beforeIndex)
          Deprecated. Use ComplexPanel.insert(Widget, Element, int, boolean) instead
protected  void ComplexPanel.insert(Widget child, Element container, int beforeIndex, boolean domInsert)
          Insert a new child Widget into this Panel at a specified index, attaching its Element to the specified container Element.
protected  boolean HTMLTable.internalClearCell(Element td, boolean clearInnerHTML)
          Does actual clearing, used by clearCell and cleanCell.
static void Accessibility.removeState(Element elem, java.lang.String stateName)
          Removes the state from the given element.
protected  void CheckBox.replaceInputElement(Element elem)
          Replace the current input element with a new one.
protected  void CellPanel.setCellHorizontalAlignment(Element td, HasHorizontalAlignment.HorizontalAlignmentConstant align)
           
protected  void CellPanel.setCellVerticalAlignment(Element td, HasVerticalAlignment.VerticalAlignmentConstant align)
           
protected  void UIObject.setElement(Element elem)
          Sets this object's browser element.
static void Accessibility.setRole(Element elem, java.lang.String roleName)
          Assigns the specified element the specified role and value for that role.
static void Accessibility.setState(Element elem, java.lang.String stateName, java.lang.String stateValue)
          Assigns the specified element the specified state and value for that state.
 

Constructors in com.google.gwt.user.client.ui with parameters of type Element
AbsolutePanel(Element elem)
          Creates an AbsolutePanel with the given element.
CheckBox(Element elem)
           
Hyperlink(Element elem)
           
 


GWT 2.3.0