@ProviderType public final class Anchor extends AbstractNonSelfClosingHtmlElement<Anchor>
| Constructor and Description |
|---|
Anchor()
Initializes html element.
|
Anchor(String href)
Initializes html element.
|
Anchor(String href,
String target)
Initializes html element.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessKey()
Html "accesskey" attribute.
|
String |
getHRef()
Html "href" attribute.
|
String |
getRel()
Html "rel" attribute.
|
int |
getTabIndex()
Html "tabindex" attribute.
|
String |
getTarget()
Html "target" attribute.
|
Anchor |
setAccessKey(String value)
Html "accesskey" attribute.
|
Anchor |
setHRef(String value)
Html "href" attribute.
|
Anchor |
setRel(String value)
Html "rel" attribute.
|
Anchor |
setTabIndex(int value)
Html "tabindex" attribute.
|
Anchor |
setTarget(String value)
Html "target" attribute.
|
add, addCssClass, getCssClass, getData, getEmptyAttributeValueAsBoolean, getId, getStyle, getStyles, getStyleString, getTitle, setCssClass, setData, setEmptyAttributeValueAsBoolean, setId, setStyle, setStyleString, setTitlecreate, createAnchor, createAnchor, createAnchor, createAudio, createComment, createDiv, createFigCaption, createFigure, createImage, createImage, createImage, createImage, createImage, createNoScript, createScript, createScript, createSource, createSpan, createSpan, createVideoadd, addContent, addContent, addContent, addContent, addContent, getAttributeValueAsInteger, getAttributeValueAsLong, setAttribute, setAttribute, setAttributeValueAsInteger, setAttributeValueAsLong, setName, setText, toString, toStringContentOnlyaddNamespaceDeclaration, canContainContent, clone, cloneContent, coalesceText, detach, getAdditionalNamespaces, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValue, getAttributeValue, getAttributeValue, getChild, getChild, getChildren, getChildren, getChildren, getChildText, getChildText, getChildTextNormalize, getChildTextNormalize, getChildTextTrim, getChildTextTrim, getContent, getContent, getContent, getContentSize, getDescendants, getDescendants, getName, getNamespace, getNamespace, getNamespacePrefix, getNamespacesInherited, getNamespacesInScope, getNamespacesIntroduced, getNamespaceURI, getQualifiedName, getText, getTextNormalize, getTextTrim, getValue, getXMLBaseURI, hasAdditionalNamespaces, hasAttributes, indexOf, isAncestor, isRootElement, removeAttribute, removeAttribute, removeAttribute, removeChild, removeChild, removeChildren, removeChildren, removeContent, removeContent, removeContent, removeContent, removeNamespaceDeclaration, setAttribute, setAttributes, setContent, setContent, setContent, setContent, setNamespace, sortAttributes, sortChildren, sortContent, sortContentequals, getCType, getDocument, getParent, getParentElement, hashCode, setParentpublic Anchor()
public Anchor(String href)
href - Html "href" attribute.public String getRel()
public Anchor setRel(String value)
value - Value of attributepublic String getHRef()
public Anchor setHRef(String value)
value - Value of attributepublic String getTarget()
public Anchor setTarget(String value)
value - Value of attributepublic int getTabIndex()
public Anchor setTabIndex(int value)
value - Value of attributepublic String getAccessKey()
Copyright © 2014–2017 wcm.io. All rights reserved.