|
||||||||||
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.DomElement
com.gargoylesoftware.htmlunit.html.HtmlElement
com.gargoylesoftware.htmlunit.html.StyledElement
com.gargoylesoftware.htmlunit.html.ClickableElement
com.gargoylesoftware.htmlunit.html.HtmlImage
public class HtmlImage
Wrapper for the html element "img".
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.html.HtmlElement |
---|
HtmlElement.ChildElementsIterator, HtmlElement.MapEntryWrappingIterator |
Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
DomNode.ChildIterator, DomNode.DescendantElementsIterator |
Field Summary | |
---|---|
static String |
TAG_NAME
the HTML tag represented by this element |
Fields inherited from class com.gargoylesoftware.htmlunit.html.HtmlElement |
---|
ATTRIBUTE_NOT_DEFINED, ATTRIBUTE_VALUE_EMPTY, TAB_INDEX_OUT_OF_BOUNDS |
Fields inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
ATTRIBUTE_NODE, COMMENT_NODE, DOCUMENT_NODE, ELEMENT_NODE, PROPERTY_ELEMENT, READY_STATE_COMPLETE, READY_STATE_INTERACTIVE, READY_STATE_LOADED, READY_STATE_LOADING, READY_STATE_UNINITIALIZED, TEXT_NODE |
Constructor Summary | |
---|---|
HtmlImage(HtmlPage page,
Map attributes)
Deprecated. You should not directly construct HtmlImage. |
Method Summary | |
---|---|
Page |
click()
Simulate clicking this element. |
Page |
click(int x,
int y)
Simulate clicking this element at the given position. |
protected Page |
doClickAction(Page defaultPage)
Performs the click action on the enclosing A tag (if any). |
String |
getAlignAttribute()
Return the value of the attribute "align". |
String |
getAltAttribute()
Return the value of the attribute "alt". |
String |
getBorderAttribute()
Return the value of the attribute "border". |
String |
getHeightAttribute()
Return the value of the attribute "height". |
String |
getHspaceAttribute()
Return the value of the attribute "hspace". |
String |
getIsmapAttribute()
Return the value of the attribute "ismap". |
String |
getLongDescAttribute()
Return the value of the attribute "longdesc". |
String |
getNameAttribute()
Return the value of the attribute "name". |
String |
getSrcAttribute()
Return the value of the attribute "src". |
String |
getUseMapAttribute()
Return the value of the attribute "usemap". |
String |
getVspaceAttribute()
Return the value of the attribute "vspace". |
String |
getWidthAttribute()
Return the value of the attribute "width". |
Methods inherited from class com.gargoylesoftware.htmlunit.html.ClickableElement |
---|
click, click, dblClick, dblClick, getLangAttribute, getOnClickAttribute, getOnDblClickAttribute, getOnKeyDownAttribute, getOnKeyPressAttribute, getOnKeyUpAttribute, getOnMouseDownAttribute, getOnMouseMoveAttribute, getOnMouseOutAttribute, getOnMouseOverAttribute, getOnMouseUpAttribute, getTextDirectionAttribute, getXmlLangAttribute, isStateUpdateFirst |
Methods inherited from class com.gargoylesoftware.htmlunit.html.StyledElement |
---|
getClassAttribute, getIdAttribute, getStyleAttribute, getTitleAttribute, isRenderedVisible |
Methods inherited from class com.gargoylesoftware.htmlunit.html.DomNamespaceNode |
---|
getLocalName, getNamespaceURI, getPrefix, getQualifiedName, setPrefix |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String TAG_NAME
Constructor Detail |
---|
public HtmlImage(HtmlPage page, Map attributes)
page
- The HtmlPage that contains this element.attributes
- the initial attributesMethod Detail |
---|
public final String getSrcAttribute()
public final String getAltAttribute()
public final String getNameAttribute()
public final String getLongDescAttribute()
public final String getHeightAttribute()
public final String getWidthAttribute()
public final String getUseMapAttribute()
public final String getIsmapAttribute()
public final String getAlignAttribute()
public final String getBorderAttribute()
public final String getHspaceAttribute()
public final String getVspaceAttribute()
public Page click(int x, int y) throws IOException
x
- the x position of the clicky
- the y position of the click
IOException
- If an IO error occurspublic Page click() throws IOException
click
in class ClickableElement
IOException
- If an IO error occursprotected Page doClickAction(Page defaultPage) throws IOException
doClickAction
in class ClickableElement
defaultPage
- The default page to return if the action does not load a new page.
IOException
- If an IO error occurred
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |