Class Anchor
java.lang.Object
io.john.amiscaray.stir.domain.elements.CacheableElement
io.john.amiscaray.stir.domain.elements.AbstractUIElement
io.john.amiscaray.stir.domain.elements.Anchor
public class Anchor extends AbstractUIElement
A pojo representing an HTML anchor tag
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnchor.AnchorBuilderNested classes/interfaces inherited from class io.john.amiscaray.stir.domain.elements.CacheableElement
CacheableElement.CacheStatus -
Field Summary
Fields Modifier and Type Field Description private StringdownloadThe download attribute of the anchor tagprivate StringhrefThe href the anchor tag points toprivate StringhrefLangThe hrefLang attribute of the anchor tagprivate StringlabelThe inner content of the anchor tagprivate StringmediaThe media attribute of the anchor tagprivate StringpingThe ping attribute of the anchor tagprivate StringreferrerPolicyThe referrerPolicy attribute of the anchor tagprivate StringrelThe rel attribute of the anchor tagprivate StringtargetThe target attribute of the anchor tagprivate StringtypeThe type attribute of the anchor tagFields inherited from class io.john.amiscaray.stir.domain.elements.AbstractUIElement
cssClasses, customAttributes, hidden, id, styleFields inherited from class io.john.amiscaray.stir.domain.elements.CacheableElement
cacheDisabled, cacheStatus, propertyChangeSupport -
Constructor Summary
Constructors Constructor Description Anchor(String label, String href)Anchor(String label, String href, String download, String hrefLang, String ping, String referrerPolicy, String rel, String target, String type)Deprecated.This constructor contains errors regarding the ping and media attributes.Anchor(String id, List<String> cssClasses, String style, String label, String href, String download, String hrefLang, String media, String ping, String referrerPolicy, String rel, String target, String type, boolean hidden, Map<String,String> customAttributes) -
Method Summary
Modifier and Type Method Description static Anchor.AnchorBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)StringgetDownload()StringgetHref()StringgetHrefLang()StringgetLabel()StringgetMedia()StringgetPing()StringgetReferrerPolicy()StringgetRel()StringgetTarget()StringgetType()inthashCode()voidsetDownload(String download)voidsetHref(String href)voidsetHrefLang(String hrefLang)voidsetLabel(String label)voidsetMedia(String media)voidsetPing(String ping)voidsetReferrerPolicy(String referrerPolicy)voidsetRel(String rel)voidsetTarget(String target)voidsetType(String type)StringtoString()Methods inherited from class io.john.amiscaray.stir.domain.elements.AbstractUIElement
addClass, getCssClasses, getCustomAttributes, getId, getStyle, isHidden, setCssClasses, setCustomAttributes, setHidden, setId, setStyleMethods inherited from class io.john.amiscaray.stir.domain.elements.CacheableElement
addPropertyChangeListener, emptyCache, getCacheContents, getCacheStatus, isCacheDisabled, isHasChildren, setCacheContents, setCacheDisabled, setHasChildren
-
Field Details
-
label
The inner content of the anchor tag -
href
The href the anchor tag points to -
download
The download attribute of the anchor tag -
hrefLang
The hrefLang attribute of the anchor tag -
media
The media attribute of the anchor tag -
ping
The ping attribute of the anchor tag -
referrerPolicy
The referrerPolicy attribute of the anchor tag -
rel
The rel attribute of the anchor tag -
target
The target attribute of the anchor tag -
type
The type attribute of the anchor tag
-
-
Constructor Details
-
Anchor
-
Anchor
@Deprecated public Anchor(String label, String href, String download, String hrefLang, String ping, String referrerPolicy, String rel, String target, String type)Deprecated.This constructor contains errors regarding the ping and media attributes. Instantiate this class with a builder, the other constructors, or an element descriptor.- Parameters:
label-href-download-hrefLang-ping-referrerPolicy-rel-target-type-
-
Anchor
-
-
Method Details
-
builder
-
getLabel
-
getHref
-
getDownload
-
getHrefLang
-
getMedia
-
getReferrerPolicy
-
getRel
-
getTarget
-
getType
-
getPing
-
setDownload
-
setHrefLang
-
setMedia
-
setReferrerPolicy
-
setRel
-
setTarget
-
setType
-
setLabel
-
setHref
-
setPing
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-