java.lang.Object | |||
↳ | com.google.gwt.core.client.JavaScriptObject | ||
↳ | com.google.gwt.dom.client.Node | ||
↳ | com.google.gwt.dom.client.Element |
Known Direct Subclasses |
Known Indirect Subclasses |
All HTML element interfaces derive from this class.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.dom.client.Node
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a name to this element's class property.
| |||||||||||
Removes keyboard focus from this element.
| |||||||||||
Dispatched the given event with this element as its target.
| |||||||||||
Gives keyboard focus to this element.
| |||||||||||
Gets an element's absolute bottom coordinate in the document's coordinate
system.
| |||||||||||
Gets an element's absolute left coordinate in the document's coordinate
system.
| |||||||||||
Gets an element's absolute right coordinate in the document's coordinate
system.
| |||||||||||
Gets an element's absolute top coordinate in the document's coordinate
system.
| |||||||||||
Retrieves an attribute value by name.
| |||||||||||
The class attribute of the element.
| |||||||||||
Returns the inner height of an element in pixels, including padding but not
the horizontal scrollbar height, border, or margin.
| |||||||||||
Returns the inner width of an element in pixels, including padding but not
the vertical scrollbar width, border, or margin.
| |||||||||||
Specifies the base direction of directionally neutral text and the
directionality of tables.
| |||||||||||
Returns a NodeList of all descendant Elements with a given tag name, in the
order in which they are encountered in a preorder traversal of this Element
tree.
| |||||||||||
The first child of element this element.
| |||||||||||
The element's identifier.
| |||||||||||
All of the markup and content within a given element.
| |||||||||||
The text between the start and end tags of the object.
| |||||||||||
Language code defined in RFC 1766.
| |||||||||||
The element immediately following this element.
| |||||||||||
The height of an element relative to the layout.
| |||||||||||
The number of pixels that the upper left corner of the current element is
offset to the left within the offsetParent node.
| |||||||||||
Returns a reference to the object which is the closest (nearest in the
containment hierarchy) positioned containing element.
| |||||||||||
The number of pixels that the upper top corner of the current element is
offset to the top within the offsetParent node.
| |||||||||||
The width of an element relative to the layout.
| |||||||||||
Gets a boolean property from this element.
| |||||||||||
Gets a double property from this element.
| |||||||||||
Gets an integer property from this element.
| |||||||||||
Gets a JSO property from this element.
| |||||||||||
Gets an object property from this element.
| |||||||||||
Gets a property from this element.
| |||||||||||
The height of the scroll view of an element.
| |||||||||||
The number of pixels that an element's content is scrolled from the left.
| |||||||||||
The number of pixels that an element's content is scrolled from the top.
| |||||||||||
The width of the scroll view of an element.
| |||||||||||
Gets a string representation of this element (as outer HTML).
| |||||||||||
Gets this element's
Style object. | |||||||||||
The index that represents the element's position in the tabbing order.
| |||||||||||
Gets the element's full tag name, including the namespace-prefix if
present.
| |||||||||||
The element's advisory title.
| |||||||||||
Determines whether an element has an attribute with a given name.
| |||||||||||
Determines whether this element has the given tag name.
| |||||||||||
Determines whether the given
JavaScriptObject can be cast to an
Element . | |||||||||||
Removes an attribute by name.
| |||||||||||
Removes a name from this element's class property.
| |||||||||||
Replace one class name with another.
| |||||||||||
Scrolls this element into view.
| |||||||||||
Adds a new attribute.
| |||||||||||
The class attribute of the element.
| |||||||||||
Specifies the base direction of directionally neutral text and the
directionality of tables.
| |||||||||||
The element's identifier.
| |||||||||||
All of the markup and content within a given element.
| |||||||||||
The text between the start and end tags of the object.
| |||||||||||
Language code defined in RFC 1766.
| |||||||||||
Sets a boolean property on this element.
| |||||||||||
Sets a double property on this element.
| |||||||||||
Sets an integer property on this element.
| |||||||||||
Sets a JSO property on this element.
| |||||||||||
Sets an object property on this element.
| |||||||||||
Sets a property on this element.
| |||||||||||
The number of pixels that an element's content is scrolled to the left.
| |||||||||||
The number of pixels that an element's content is scrolled to the top.
| |||||||||||
The index that represents the element's position in the tabbing order.
| |||||||||||
The element's advisory title.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.dom.client.Node
| |||||||||||
From class
com.google.gwt.core.client.JavaScriptObject
| |||||||||||
From class
java.lang.Object
|
Adds a name to this element's class property. If the name is already present, this method has no effect.
className | the class name to be added |
---|
Removes keyboard focus from this element.
Dispatched the given event with this element as its target. The event will
go through all phases of the browser's normal event dispatch mechanism.
Note: Because the browser's normal dispatch mechanism is used, exceptions
thrown from within handlers triggered by this method cannot be caught by
wrapping this method in a try/catch block. Such exceptions will be caught
by the
uncaught exception handler
as usual.
evt | the event to be dispatched |
---|
Gives keyboard focus to this element.
Gets an element's absolute bottom coordinate in the document's coordinate system.
Gets an element's absolute left coordinate in the document's coordinate system.
Gets an element's absolute right coordinate in the document's coordinate system.
Gets an element's absolute top coordinate in the document's coordinate system.
Retrieves an attribute value by name. Attribute support can be
inconsistent across various browsers. Consider using the accessors in
Element
and its specific subclasses to retrieve attributes and
properties.
name | The name of the attribute to retrieve |
---|
The class attribute of the element. This attribute has been renamed due to conflicts with the "class" keyword exposed by many languages.
Returns the inner height of an element in pixels, including padding but not the horizontal scrollbar height, border, or margin.
Returns the inner width of an element in pixels, including padding but not the vertical scrollbar width, border, or margin.
Specifies the base direction of directionally neutral text and the directionality of tables.
Returns a NodeList of all descendant Elements with a given tag name, in the order in which they are encountered in a preorder traversal of this Element tree.
name | The name of the tag to match on. The special value "*" matches all tags |
---|
The first child of element this element. If there is no such element, this returns null.
The element immediately following this element. If there is no such element, this returns null.
The height of an element relative to the layout.
The number of pixels that the upper left corner of the current element is offset to the left within the offsetParent node.
Returns a reference to the object which is the closest (nearest in the containment hierarchy) positioned containing element.
The number of pixels that the upper top corner of the current element is offset to the top within the offsetParent node.
The width of an element relative to the layout.
Gets a boolean property from this element.
name | the name of the property to be retrieved |
---|
Gets a double property from this element.
name | the name of the property to be retrieved |
---|
Gets an integer property from this element.
name | the name of the property to be retrieved |
---|
Gets a JSO property from this element.
name | the name of the property to be retrieved |
---|
Gets an object property from this element.
name | the name of the property to be retrieved |
---|
Gets a property from this element.
name | the name of the property to be retrieved |
---|
The height of the scroll view of an element.
The number of pixels that an element's content is scrolled from the left.
If the element is in RTL mode, this method will return a negative value of the number of pixels scrolled from the right.
The number of pixels that an element's content is scrolled from the top.
The width of the scroll view of an element.
Gets a string representation of this element (as outer HTML).
We do not override toString()
because it is final in
JavaScriptObject
.
The index that represents the element's position in the tabbing order.
Gets the element's full tag name, including the namespace-prefix if present.
Determines whether an element has an attribute with a given name.
Note that IE, prior to version 8, will return false-positives for names that collide with element properties (e.g., style, width, and so forth).
name | the name of the attribute |
---|
true
if this element has the specified attribute
Determines whether this element has the given tag name.
tagName | the tag name, including namespace-prefix (if present) |
---|
true
if the element has the given tag name
Determines whether the given JavaScriptObject
can be cast to an
Element
. A null
object will cause this method to
return false
.
Removes a name from this element's class property. If the name is not present, this method has no effect.
className | the class name to be added |
---|
Replace one class name with another.
oldClassName | the class name to be replaced |
---|---|
newClassName | the class name to replace it |
Scrolls this element into view.
This method crawls up the DOM hierarchy, adjusting the scrollLeft and scrollTop properties of each scrollable element to ensure that the specified element is completely in view. It adjusts each scroll position by the minimum amount necessary.
Adds a new attribute. If an attribute with that name is already present in the element, its value is changed to be that of the value parameter.
name | The name of the attribute to create or alter |
---|---|
value | Value to set in string form |
The class attribute of the element. This attribute has been renamed due to conflicts with the "class" keyword exposed by many languages.
Specifies the base direction of directionally neutral text and the directionality of tables.
Sets a boolean property on this element.
name | the name of the property to be set |
---|---|
value | the new property value |
Sets a double property on this element.
name | the name of the property to be set |
---|---|
value | the new property value |
Sets an integer property on this element.
name | the name of the property to be set |
---|---|
value | the new property value |
Sets a JSO property on this element.
name | the name of the property to be set |
---|---|
value | the new property value |
Sets an object property on this element.
name | the name of the property to be set |
---|---|
value | the new property value |
Sets a property on this element.
name | the name of the property to be set |
---|---|
value | the new property value |
The number of pixels that an element's content is scrolled to the left.
The number of pixels that an element's content is scrolled to the top.
The index that represents the element's position in the tabbing order.