public class HtmlImage extends ClickableElement
HtmlElement.ChildElementsIterator, HtmlElement.MapEntryWrappingIteratorDomNode.ChildIterator, DomNode.DescendantElementsIterator| Modifier and Type | Field and Description |
|---|---|
static String |
TAG_NAME
the HTML tag represented by this element
|
ATTRIBUTE_NOT_DEFINED, ATTRIBUTE_VALUE_EMPTY, TAB_INDEX_OUT_OF_BOUNDSATTRIBUTE_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 and Description |
|---|
HtmlImage(HtmlPage page,
Map attributes)
Deprecated.
You should not directly construct HtmlImage.
|
| Modifier and Type | Method and Description |
|---|---|
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".
|
click, click, dblClick, dblClick, getLangAttribute, getOnClickAttribute, getOnDblClickAttribute, getOnKeyDownAttribute, getOnKeyPressAttribute, getOnKeyUpAttribute, getOnMouseDownAttribute, getOnMouseMoveAttribute, getOnMouseOutAttribute, getOnMouseOverAttribute, getOnMouseUpAttribute, getTextDirectionAttribute, getXmlLangAttribute, isStateUpdateFirstgetClassAttribute, getIdAttribute, getStyleAttribute, getTitleAttribute, isRenderedVisibleaddHtmlAttributeChangeListener, appendChildIfNoneExists, assertNotEmpty, blur, cloneDomNode, cloneNode, fireEvent, fireEvent, fireHtmlAttributeAdded, fireHtmlAttributeRemoved, fireHtmlAttributeReplaced, focus, getAttribute, getAttributeEntriesIterator, getAttributeNS, getAttributeValue, getChildElementsIterator, getEnclosingElement, getEnclosingForm, getEnclosingFormOrDie, getEventHandler, getHtmlElementById, getHtmlElementsByAttribute, getHtmlElementsByTagName, getHtmlElementsByTagNames, getId, getNodeName, getNodeType, getOneHtmlElementByAttribute, getTabIndex, getTagName, hasAttribute, hasAttributeNS, hasAttributes, hasHtmlElementWithId, isAttributeDefined, isEmptyXmlTagExpanded, isSubmittableByEnter, keyDown, keyDown, mouseDown, mouseDown, mouseMove, mouseMove, mouseOut, mouseOut, mouseOver, mouseOver, mouseUp, mouseUp, notImplemented, preventDefault, printOpeningTagContentAsXml, printXml, removeAttribute, removeAttributeNS, removeChild, removeEventHandler, removeHtmlAttributeChangeListener, rightClick, rightClick, setAttribute, setAttributeNS, setAttributeValue, setAttributeValue, setEventHandler, setEventHandler, setId, toString, type, type, type, typegetLocalName, getNamespaceURI, getPrefix, getQualifiedName, setPrefixaddDomChangeListener, addPropertyChangeListener, appendChild, appendDomChild, asText, asXml, fireNodeAdded, fireNodeDeleted, firePropertyChange, getAllHtmlChildElements, getByXPath, getChildIterator, getChildrenAsText, getEndColumnNumber, getEndLineNumber, getFirstByXPath, getFirstChild, getFirstDomChild, getLastChild, getLastDomChild, getLog, getNativePage, getNextDomSibling, getNextSibling, getNodeValue, getPage, getParentDomNode, getParentNode, getPreviousDomSibling, getPreviousSibling, getReadyState, getScriptObject, getStartColumnNumber, getStartLineNumber, insertBefore, isAncestorOf, isTrimmedText, notifyIncorrectness, onAddedToPage, onAllChildrenAddedToPage, printChildrenAsXml, reduceWhitespace, remove, removeAllChildren, removeDomChangeListener, removePropertyChangeListener, replace, setNextSibling, setNodeValue, setParentNode, setPreviousSibling, setReadyState, setScriptObjectpublic static final String TAG_NAME
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 clickIOException - If an IO error occurspublic Page click() throws IOException
click in class ClickableElementIOException - If an IO error occursprotected Page doClickAction(Page defaultPage) throws IOException
doClickAction in class ClickableElementdefaultPage - The default page to return if the action does not load a new page.IOException - If an IO error occurredCopyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.