public class HtmlLabel 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 |
|---|
HtmlLabel(HtmlPage page,
Map attributes)
Deprecated.
You should not directly construct HtmlLabel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
blur()
Remove focus from this element.
|
Page |
click()
Clicks the label and propagates to the referenced element.
|
void |
focus()
Set the focus to this element.
|
String |
getAccessKeyAttribute()
Return the value of the attribute "accesskey".
|
String |
getForAttribute()
Return the value of the attribute "for".
|
String |
getOnBlurAttribute()
Return the value of the attribute "onblur".
|
String |
getOnFocusAttribute()
Return the value of the attribute "onfocus".
|
ClickableElement |
getReferencedElement()
Gets the element referenced by this label.
|
click, click, dblClick, dblClick, doClickAction, getLangAttribute, getOnClickAttribute, getOnDblClickAttribute, getOnKeyDownAttribute, getOnKeyPressAttribute, getOnKeyUpAttribute, getOnMouseDownAttribute, getOnMouseMoveAttribute, getOnMouseOutAttribute, getOnMouseOverAttribute, getOnMouseUpAttribute, getTextDirectionAttribute, getXmlLangAttribute, isStateUpdateFirstgetClassAttribute, getIdAttribute, getStyleAttribute, getTitleAttribute, isRenderedVisibleaddHtmlAttributeChangeListener, appendChildIfNoneExists, assertNotEmpty, cloneDomNode, cloneNode, fireEvent, fireEvent, fireHtmlAttributeAdded, fireHtmlAttributeRemoved, fireHtmlAttributeReplaced, 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 getForAttribute()
public final String getAccessKeyAttribute()
public final String getOnFocusAttribute()
public final String getOnBlurAttribute()
public void blur()
blur in class HtmlElementpublic void focus()
focus in class HtmlElementpublic ClickableElement getReferencedElement()
null if not foundpublic Page click() throws IOException
click in class ClickableElementIOException - If an IO error occursCopyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.