|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IElement
Stores an Element in the dom tree.
Method Summary | |
---|---|
void |
click()
Simulates a click by causing the onclick event to fire. |
boolean |
contains(IElement e)
Checks whether the given element is nested within this element. |
boolean |
equals(IElement element)
Compares another IElement with this one for equality. |
IElementCollection |
filters()
Retrieves a collection of filters for an element. |
java.lang.String |
getAttribute(java.lang.String name,
long flags)
Retrieves the value of the specified attribute. |
java.lang.String[] |
getAttributes()
Returns an array of all the attributes of this object in the form of "name=value" |
IElementCollection |
getChildElements()
Returns an Element Collection of all the Elements Child Nodes |
java.lang.String |
getClassName()
Retrieves the class attribute of the Element. |
java.lang.String |
getId()
Retrieves the string identifying the Element. |
java.lang.String |
getInnerHTML()
Retrieves the HTML between the start and end tags of the object. |
java.lang.String |
getInnerText()
Retrieves the text between the start and end tags of the object. |
java.lang.String |
getLang()
Retrieves the language to use. |
java.lang.String |
getLanguage()
Retrieves the language in which the current script is written. |
long |
getOffsetHeight()
Retrieves the height of the object relative to the layout or coordinate parent, as specified by the Element::offsetParent property. |
long |
getOffsetLeft()
Retrieves the calculated left position of the object relative to the layout or coordinate parent, as specified by the Element::offsetParent property. |
IElement |
getOffsetParent()
Retrieves a reference to the container object that defines the Element::offsetTop and Element::offsetLeft properties of the object. |
long |
getOffsetTop()
Retrieves the calculated top position of the object relative to the layout or coordinate parent, as specified by the Element::offsetParent property. |
long |
getOffsetWidth()
Retrieves the width of the object relative to the layout or coordinate parent, as specified by the Element::offsetParent property. |
java.lang.String |
getOuterHTML()
Retrieves the object and its content in HTML. |
IElement |
getParentElement()
Retrieves the parent object in the object hierarchy. |
long |
getSourceIndex()
Retrieves the ordinal position of the object, in source order, as the object appears in the document's all collection. |
java.lang.String |
getTagName()
Retrieves the tag name of the object. |
java.lang.String |
getTextNodeText()
Returns the contents of a text node or null if the element is not a textnode. |
java.lang.String |
getTitle()
Retrieves advisory information (a ToolTip) for the object. |
java.lang.String |
getValue()
Returns the value of an element if it is an INPUT element. |
long |
getX()
Returns the X position of the element in pixels. |
long |
getY()
Returns the Y position of the element in pixels. |
void |
insertAdjacentHTML(java.lang.String loc,
java.lang.String html)
Inserts the given HTML text into the element at the location. |
boolean |
isTextNode()
Returns true if the Element is a simple text node (only contains text, has no html tag) |
void |
putClassName(java.lang.String name)
Sets the class attribute of the Element. |
void |
putId(java.lang.String id)
Sets the string which identifies the Element. |
void |
putInnerHTML(java.lang.String ih)
Sets the HTML between the start and end tags of the object. |
void |
putInnerText(java.lang.String it)
Sets the text between the start and end tags of the object. |
void |
putLang(java.lang.String lang)
Sets the language to use. |
void |
putLanguage(java.lang.String lang)
Sets the language in which the current script is written. |
void |
putOuterHTML(java.lang.String html)
Sets the object and its content in HTML This applies to an IEBrowserCanvas |
void |
putTitle(java.lang.String t)
Sets advisory information (a ToolTip) for the object. |
boolean |
removeAttribute(java.lang.String name,
long flags)
Removes the given attribute from the Element. |
void |
setAttribute(java.lang.String name,
java.lang.Object value,
long flags)
Sets the value of the specified attribute. |
void |
setValue(java.lang.String value)
Sets the value of an element if it is an INPUT element. |
java.lang.String |
toString()
Retrieves a string representation of the object. |
Method Detail |
---|
java.lang.String getClassName()
void putClassName(java.lang.String name)
void click()
MozillaBrowserCanvas
boolean contains(IElement e)
IElementCollection filters()
IEBrowserCanvas
java.lang.String getAttribute(java.lang.String name, long flags)
name
- of the attributeflags
- 0-case insensitive, 1- case sensitive (unused if called from a IMozillaBrowserCanvas
)
java.lang.String getId()
void putId(java.lang.String id)
java.lang.String getInnerHTML()
void putInnerHTML(java.lang.String ih)
java.lang.String getInnerText()
IEBrowserCanvas
void putInnerText(java.lang.String it)
IEBrowserCanvas
void insertAdjacentHTML(java.lang.String loc, java.lang.String html)
The location can be one of the following:
loc
- location to put the html code relative to this elementhtml
- code to addjava.lang.String getLang()
void putLang(java.lang.String lang)
java.lang.String getLanguage()
void putLanguage(java.lang.String lang)
long getOffsetHeight()
long getOffsetLeft()
long getX()
long getY()
IElement getOffsetParent()
long getOffsetTop()
long getOffsetWidth()
java.lang.String getOuterHTML()
void putOuterHTML(java.lang.String html)
IEBrowserCanvas
IElement getParentElement()
boolean removeAttribute(java.lang.String name, long flags)
IEBrowserCanvas
void setAttribute(java.lang.String name, java.lang.Object value, long flags)
name
- name of attributevalue
- value to set attribute toflags
- 0-case insensitive, 1- case sensitive (unused if called from a IMozillaBrowserCanvas
)long getSourceIndex()
java.lang.String getTagName()
java.lang.String getTitle()
void putTitle(java.lang.String t)
IElementCollection getChildElements()
boolean isTextNode()
java.lang.String getTextNodeText()
null
if the element is not a textnode.
java.lang.String getValue()
void setValue(java.lang.String value)
value
- java.lang.String toString()
toString
in class java.lang.Object
java.lang.String[] getAttributes()
boolean equals(IElement element)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |