Package io.wcm.handler.commons.dom
Class Area
- java.lang.Object
-
- org.jdom2.Content
-
- org.jdom2.Element
-
- io.wcm.handler.commons.dom.AbstractElement
-
- io.wcm.handler.commons.dom.AbstractHtmlElementFactory
-
- io.wcm.handler.commons.dom.HtmlElement
-
- io.wcm.handler.commons.dom.Area
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,org.jdom2.NamespaceAware,org.jdom2.Parent
@ProviderType public final class Area extends HtmlElement
Html area element.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Area()Initializes html element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AreaaddCssClass(java.lang.String value)Html "class" attribute.java.lang.StringgetAccessKey()Html "accesskey" attribute.java.lang.StringgetAlt()Html "alt" attribute.java.lang.StringgetCoords()Html "coords" attribute.java.lang.StringgetHRef()Html "href" attribute.java.lang.StringgetRel()Html "rel" attribute.java.lang.StringgetShape()Html "shape" attribute.intgetTabIndex()Html "tabindex" attribute.java.lang.StringgetTarget()Html "target" attribute.AreasetAccessKey(java.lang.String value)Html "accesskey" attribute.AreasetAlt(java.lang.String value)Html "alt" attribute.AreasetAttributeValueAsLong(java.lang.String name, long value)Sets attribute value as long.AreasetCoords(java.lang.String value)Html "coords" attribute.AreasetCssClass(java.lang.String value)Sets Html "class" attribute - unless you're really sure that you want to replace existing classes, you probably should callHtmlElement.addCssClass(String)instead.AreasetData(java.lang.String attributeName, java.lang.String value)Custom Html5 "data-*" attribute.protected AreasetEmptyAttributeValueAsBoolean(java.lang.String attributeName, boolean value)Sets "empty" attribute value as boolean (i.e. for "checked" attribute).AreasetHRef(java.lang.String value)Html "href" attribute.AreasetId(java.lang.String value)Html "id" attribute.AreasetRel(java.lang.String value)Html "rel" attribute.AreasetShape(java.lang.String value)Html "shape" attribute.AreasetStyle(java.lang.String styleAttribute, java.lang.String styleValue)Html "style" attribute.AreasetStyleString(java.lang.String value)Html "style" attribute.AreasetTabIndex(int value)Html "tabindex" attribute.AreasetTarget(java.lang.String value)Html "target" attribute.AreasetText(java.lang.String text)Sets the content of the element to be the text given.AreasetTitle(java.lang.String value)Html "title" attribute.-
Methods inherited from class io.wcm.handler.commons.dom.HtmlElement
add, getCssClass, getData, getEmptyAttributeValueAsBoolean, getId, getStyle, getStyles, getStyleString, getTitle
-
Methods inherited from class io.wcm.handler.commons.dom.AbstractHtmlElementFactory
create, createAnchor, createAnchor, createAnchor, createAudio, createComment, createDiv, createFigCaption, createFigure, createImage, createImage, createImage, createImage, createImage, createNoScript, createScript, createScript, createSource, createSpan, createSpan, createVideo
-
Methods inherited from class io.wcm.handler.commons.dom.AbstractElement
add, addContent, addContent, addContent, addContent, addContent, getAttributeValueAsInteger, getAttributeValueAsLong, setAttribute, setAttribute, setAttributeValueAsInteger, toString, toStringContentOnly
-
Methods inherited from class org.jdom2.Element
addNamespaceDeclaration, canContainContent, clone, cloneContent, coalesceText, detach, getAdditionalNamespaces, getAttribute, getAttribute, getAttributes, getAttributesSize, 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, setName, setNamespace, sortAttributes, sortChildren, sortContent, sortContent
-
Methods inherited from class org.jdom2.Content
equals, getCType, getDocument, getParent, getParentElement, hashCode, setParent
-
-
-
-
Method Detail
-
getRel
public java.lang.String getRel()
Html "rel" attribute.- Returns:
- Value of attribute
-
setRel
public Area setRel(java.lang.String value)
Html "rel" attribute.- Parameters:
value- Value of attribute- Returns:
- Self reference
-
getHRef
public java.lang.String getHRef()
Html "href" attribute.- Returns:
- Value of attribute
-
setHRef
public Area setHRef(java.lang.String value)
Html "href" attribute.- Parameters:
value- Value of attribute- Returns:
- Self reference
-
getTarget
public java.lang.String getTarget()
Html "target" attribute.- Returns:
- Value of attribute
-
setTarget
public Area setTarget(java.lang.String value)
Html "target" attribute.- Parameters:
value- Value of attribute- Returns:
- Self reference
-
getTabIndex
public int getTabIndex()
Html "tabindex" attribute.- Returns:
- Value of attribute
-
setTabIndex
public Area setTabIndex(int value)
Html "tabindex" attribute.- Parameters:
value- Value of attribute- Returns:
- Self reference
-
getAccessKey
public java.lang.String getAccessKey()
Html "accesskey" attribute.- Returns:
- Value of attribute
-
setAccessKey
public Area setAccessKey(java.lang.String value)
Html "accesskey" attribute.- Parameters:
value- Value of attribute- Returns:
- Self reference
-
getAlt
public java.lang.String getAlt()
Html "alt" attribute.- Returns:
- Value of attribute
-
setAlt
public Area setAlt(java.lang.String value)
Html "alt" attribute.- Parameters:
value- Value of attribute- Returns:
- Self reference
-
getShape
public java.lang.String getShape()
Html "shape" attribute.- Returns:
- Value of attribute
-
setShape
public Area setShape(java.lang.String value)
Html "shape" attribute.- Parameters:
value- Value of attribute- Returns:
- Self reference
-
getCoords
public java.lang.String getCoords()
Html "coords" attribute.- Returns:
- Value of attribute
-
setCoords
public Area setCoords(java.lang.String value)
Html "coords" attribute.- Parameters:
value- Value of attribute- Returns:
- Self reference
-
setEmptyAttributeValueAsBoolean
protected Area setEmptyAttributeValueAsBoolean(java.lang.String attributeName, boolean value)
Description copied from class:HtmlElementSets "empty" attribute value as boolean (i.e. for "checked" attribute).- Overrides:
setEmptyAttributeValueAsBooleanin classHtmlElement- Parameters:
attributeName- Attribute namevalue- Attribute value as boolean- Returns:
- Self reference
-
setId
public Area setId(java.lang.String value)
Description copied from class:HtmlElementHtml "id" attribute.- Overrides:
setIdin classHtmlElement- Parameters:
value- Value of attribute- Returns:
- Self reference
-
setCssClass
public Area setCssClass(java.lang.String value)
Description copied from class:HtmlElementSets Html "class" attribute - unless you're really sure that you want to replace existing classes, you probably should callHtmlElement.addCssClass(String)instead.- Overrides:
setCssClassin classHtmlElement- Parameters:
value- Value of attribute- Returns:
- Self reference
-
addCssClass
public Area addCssClass(java.lang.String value)
Description copied from class:HtmlElementHtml "class" attribute. Adds a single, space-separated value while preserving existing ones.- Overrides:
addCssClassin classHtmlElement- Parameters:
value- Value of attribute- Returns:
- Self reference
-
setStyleString
public Area setStyleString(java.lang.String value)
Description copied from class:HtmlElementHtml "style" attribute.- Overrides:
setStyleStringin classHtmlElement- Parameters:
value- Value of attribute with style key/value pairs- Returns:
- Self reference
-
setStyle
public Area setStyle(java.lang.String styleAttribute, java.lang.String styleValue)
Description copied from class:HtmlElementHtml "style" attribute. Sets single style attribute value.- Overrides:
setStylein classHtmlElement- Parameters:
styleAttribute- Style attribute namestyleValue- Style attribute value- Returns:
- Self reference
-
setTitle
public Area setTitle(java.lang.String value)
Description copied from class:HtmlElementHtml "title" attribute.- Overrides:
setTitlein classHtmlElement- Parameters:
value- Value of attribute- Returns:
- Self reference
-
setData
public Area setData(java.lang.String attributeName, java.lang.String value)
Description copied from class:HtmlElementCustom Html5 "data-*" attribute.- Overrides:
setDatain classHtmlElement- Parameters:
attributeName- Name of HTML5 data attribute (without the 'data-' prefix).value- Value of attribute- Returns:
- Self reference
-
setAttributeValueAsLong
public Area setAttributeValueAsLong(java.lang.String name, long value)
Description copied from class:AbstractElementSets attribute value as long.- Overrides:
setAttributeValueAsLongin classAbstractElement- Parameters:
name- Attribute namevalue- Attribute value as long- Returns:
- Self reference
-
setText
public Area setText(java.lang.String text)
Description copied from class:AbstractElementSets the content of the element to be the text given. All existing text content and non-text context is removed. If this element should have both textual content and nested elements, useinstead. Setting a null text value is equivalent to setting an empty string value.Element.setContent(java.util.Collection<? extends org.jdom2.Content>)- Overrides:
setTextin classAbstractElement- Parameters:
text- new text content for the element- Returns:
- the target element
-
-