|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.html.DomNode
com.gargoylesoftware.htmlunit.html.DomNamespaceNode
com.gargoylesoftware.htmlunit.html.HtmlElement
com.gargoylesoftware.htmlunit.html.StyledElement
com.gargoylesoftware.htmlunit.html.ClickableElement
public abstract class ClickableElement
Intermediate base class for "clickable" HTML elements. As defined HTML 4.01 documentation, this class is a base class for all HTML elements except these: applet, base, basefront, bdo, br, font, frame, frameset, head, html, iframe, isindex, meta, param, script, style, and title.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.html.HtmlElement |
---|
HtmlElement.MapEntryWrappingIterator |
Field Summary |
---|
Fields inherited from class com.gargoylesoftware.htmlunit.html.HtmlElement |
---|
ATTRIBUTE_NOT_DEFINED, ATTRIBUTE_VALUE_EMPTY |
Fields inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
PROPERTY_ELEMENT, READY_STATE_COMPLETE, READY_STATE_INTERACTIVE, READY_STATE_LOADED, READY_STATE_LOADING, READY_STATE_UNINITIALIZED |
Method Summary | |
---|---|
Page |
click()
Simulate clicking this element. |
Page |
click(boolean shiftKey,
boolean ctrlKey,
boolean altKey)
Simulate clicking this element. |
Page |
dblClick()
Simulate double clicking this element, note that click() is called first. |
Page |
dblClick(boolean shiftKey,
boolean ctrlKey,
boolean altKey)
Simulate double clicking this element, note that click(boolean, boolean, boolean) is called first. |
java.lang.String |
getLangAttribute()
Return the value of the attribute "lang". |
java.lang.String |
getOnClickAttribute()
Return the value of the attribute "onclick". |
java.lang.String |
getOnDblClickAttribute()
Return the value of the attribute "ondblclick". |
java.lang.String |
getOnKeyDownAttribute()
Return the value of the attribute "onkeydown". |
java.lang.String |
getOnKeyPressAttribute()
Return the value of the attribute "onkeypress". |
java.lang.String |
getOnKeyUpAttribute()
Return the value of the attribute "onkeyup". |
java.lang.String |
getOnMouseDownAttribute()
Return the value of the attribute "onmousedown". |
java.lang.String |
getOnMouseMoveAttribute()
Return the value of the attribute "onmousemove". |
java.lang.String |
getOnMouseOutAttribute()
Return the value of the attribute "onmouseout". |
java.lang.String |
getOnMouseOverAttribute()
Return the value of the attribute "onmouseover". |
java.lang.String |
getOnMouseUpAttribute()
Return the value of the attribute "onmouseup". |
java.lang.String |
getTextDirectionAttribute()
Return the value of the attribute "dir". |
java.lang.String |
getXmlLangAttribute()
Return the value of the attribute "xml:lang". |
Methods inherited from class com.gargoylesoftware.htmlunit.html.StyledElement |
---|
getClassAttribute, getIdAttribute, getStyleAttribute, getTitleAttribute |
Methods inherited from class com.gargoylesoftware.htmlunit.html.DomNamespaceNode |
---|
getLocalName, getNamespaceURI, getPrefix, getQualifiedName, setPrefix |
Methods inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
addDomChangeListener, appendDomChild, asText, asXml, getAllHtmlChildElements, getByXPath, getChildIterator, getEndColumnNumber, getEndLineNumber, getFirstDomChild, getLastDomChild, getNextDomSibling, getNodeValue, getPage, getParentDomNode, getPreviousDomSibling, getReadyState, getScriptObject, getStartColumnNumber, getStartLineNumber, insertBefore, remove, removeAllChildren, removeDomChangeListener, replace, setNodeValue, setReadyState, setScriptObject |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public Page click() throws java.io.IOException
java.io.IOException
- If an IO error occurspublic Page click(boolean shiftKey, boolean ctrlKey, boolean altKey) throws java.io.IOException
shiftKey
- true if SHIFT is pressedctrlKey
- true if CTRL is pressedaltKey
- true if ALT is pressed
java.io.IOException
- If an IO error occurspublic Page dblClick() throws java.io.IOException
click()
is called first.
java.io.IOException
- If an IO error occurspublic Page dblClick(boolean shiftKey, boolean ctrlKey, boolean altKey) throws java.io.IOException
click(boolean, boolean, boolean)
is called first.
shiftKey
- true if SHIFT is pressedctrlKey
- true if CTRL is pressedaltKey
- true if ALT is pressed
java.io.IOException
- If an IO error occurspublic final java.lang.String getLangAttribute()
public final java.lang.String getOnClickAttribute()
public final java.lang.String getOnDblClickAttribute()
public final java.lang.String getOnKeyDownAttribute()
public final java.lang.String getOnKeyPressAttribute()
public final java.lang.String getOnKeyUpAttribute()
public final java.lang.String getOnMouseDownAttribute()
public final java.lang.String getOnMouseMoveAttribute()
public final java.lang.String getOnMouseOutAttribute()
public final java.lang.String getOnMouseOverAttribute()
public final java.lang.String getOnMouseUpAttribute()
public final java.lang.String getTextDirectionAttribute()
public final java.lang.String getXmlLangAttribute()
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |