Class AbstractHCA<IMPLTYPE extends AbstractHCA<IMPLTYPE>>
- java.lang.Object
-
- com.helger.html.hc.impl.AbstractHCNode
-
- com.helger.html.hc.html.AbstractHCElement<IMPLTYPE>
-
- com.helger.html.hc.html.AbstractHCElementWithInternalChildren<IMPLTYPE,IHCNode>
-
- com.helger.html.hc.html.AbstractHCElementWithChildren<IMPLTYPE>
-
- com.helger.html.hc.html.textlevel.AbstractHCA<IMPLTYPE>
-
- Type Parameters:
IMPLTYPE- Implementation type
- All Implemented Interfaces:
com.helger.commons.hierarchy.IHasChildren<IHCNode>,com.helger.commons.hierarchy.IHasChildrenRecursive<IHCNode>,com.helger.commons.hierarchy.IHasChildrenSorted<IHCNode>,com.helger.commons.traits.IGenericImplTrait<IMPLTYPE>,IHCElement<IMPLTYPE>,IHCElementWithChildren<IMPLTYPE>,IHCElementWithInternalChildren<IMPLTYPE,IHCNode>,IHCHasCSSClasses<IMPLTYPE>,IHCHasCSSStyles<IMPLTYPE>,IHCHasMedia<IMPLTYPE>,IHCA<IMPLTYPE>,IHCHasChildrenMutable<IMPLTYPE,IHCNode>,IHCHasID<IMPLTYPE>,IHCHasName<IMPLTYPE>,IHCNode,IHCNodeWithChildren<IMPLTYPE>,Serializable
- Direct Known Subclasses:
HCA,HCA_JS,HCA_MailTo
public abstract class AbstractHCA<IMPLTYPE extends AbstractHCA<IMPLTYPE>> extends AbstractHCElementWithChildren<IMPLTYPE> implements IHCA<IMPLTYPE>
Represents an HTML <a> element- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.helger.html.hc.html.AbstractHCElement
DEFAULT_HIDDEN, DEFAULT_SPELLCHECK, DEFAULT_TRANSLATE, DEFAULT_UNFOCUSABLE
-
Fields inherited from interface com.helger.html.hc.html.IHCElement
DEFAULT_TABINDEX
-
-
Constructor Summary
Constructors Constructor Description AbstractHCA()AbstractHCA(com.helger.commons.url.ISimpleURL aHref)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfillMicroElement(com.helger.xml.microdom.IMicroElement aElement, IHCConversionSettingsToNode aConversionSettings)Set all attributes and child elements of this objectStringgetDownload()com.helger.commons.url.ISimpleURLgetHref()StringgetMedia()StringgetName()com.helger.commons.url.ISimpleURLgetPing()EHCReferrerPolicygetReferrerPolicy()StringgetRel()HC_TargetgetTarget()com.helger.commons.mime.IMimeTypegetType()protected voidonConsistencyCheck(IHCConversionSettingsToNode aConversionSettings)IMPLTYPEsetDownload(String sDownload)IMPLTYPEsetHref(com.helger.commons.url.ISimpleURL aHref)IMPLTYPEsetMedia(String sMediaQuery)Change media queryIMPLTYPEsetName(String sName)Set the name of the element.IMPLTYPEsetPing(com.helger.commons.url.ISimpleURL aPing)IMPLTYPEsetReferrerPolicy(EHCReferrerPolicy eReferrerPolicy)IMPLTYPEsetRel(String sRel)IMPLTYPEsetTarget(HC_Target aTarget)IMPLTYPEsetType(com.helger.commons.mime.IMimeType aType)StringtoString()-
Methods inherited from class com.helger.html.hc.html.AbstractHCElementWithInternalChildren
addChild, addChildAt, afterAddChild, afterRemoveChild, beforeAddChild, canConvertToMicroNode, children, findFirstChild, findFirstChildMapped, forAllChildren, forAllChildren, forAllChildrenBreakable, forAllChildrenMapped, getAllChildren, getAllChildrenAsNodeList, getChildAtIndex, getChildCount, getChildren, getChildrenFormEmitting, getFirstChild, getLastChild, getPlainText, hasChildren, removeAllChildren, removeChild, removeChildAt, sortAllChildren
-
Methods inherited from class com.helger.html.hc.html.AbstractHCElement
addClass, addEventHandler, addStyle, containsClass, containsEventHandler, containsStyle, createMicroElement, customAttrs, finishMicroElement, getAccessKey, getAllClasses, getAllClassesAsString, getAllClassNames, getAllStyles, getAllStylesAsString, getAllStyleValues, getContentEditable, getDirection, getDraggable, getElement, getEventHandler, getEventMap, getID, getLanguage, getRole, getStyleValue, getTabIndex, getTagName, getTitle, getTranslate, hasAnyClass, hasAnyStyle, hasStyle, internalConvertToMicroNode, isHidden, isSpellCheck, isTranslateOff, isTranslateOn, isTranslateUndefined, isUnfocusable, isValidID, onFinalizeNodeState, prependEventHandler, removeAllClasses, removeAllEventHandler, removeAllStyles, removeClass, removeStyle, setAccessKey, setContentEditable, setDirection, setDraggable, setEventHandler, setHidden, setID, setID, setLanguage, setRole, setSpellCheck, setTabIndex, setTitle, setTranslate, setUnfocusable
-
Methods inherited from class com.helger.html.hc.impl.AbstractHCNode
consistencyCheck, convertToMicroNode, customizeNode, finalizeNodeState, getNodeState, internalSetNodeState, onCustomizeNode, onRegisterExternalResources, registerExternalResources
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.commons.hierarchy.IHasChildren
forAllChildren, forAllChildren, forAllChildrenBreakable, forAllChildrenMapped, getChildCount, getChildren, hasChildren, hasNoChildren
-
Methods inherited from interface com.helger.commons.hierarchy.IHasChildrenRecursive
forAllChildrenRecursive, forAllChildrenRecursive
-
Methods inherited from interface com.helger.commons.hierarchy.IHasChildrenSorted
findFirstChild, findFirstChildMapped, getAllChildren, getChildAtIndex, getFirstChild, getLastChild
-
Methods inherited from interface com.helger.html.hc.html.textlevel.IHCA
addOnClick, hasTarget, setOnClick, setTargetBlank
-
Methods inherited from interface com.helger.html.hc.html.IHCElement
addEventHandler, containsEventHandler, customAttrs, getAccessKey, getContentEditable, getDirection, getDraggable, getElement, getEventHandler, getEventMap, getLanguage, getRole, getTabIndex, getTagName, getTitle, getTranslate, isHidden, isSpellCheck, isTranslateOff, isTranslateOn, isTranslateUndefined, isUnfocusable, prependEventHandler, removeAllEventHandler, setAccessKey, setContentEditable, setDirection, setDraggable, setEventHandler, setHidden, setLanguage, setRole, setSpellCheck, setTabIndex, setTitle, setTranslate, setTranslate, setUnfocusable, withCustomAttrs
-
Methods inherited from interface com.helger.html.hc.html.IHCElementWithInternalChildren
recursiveContainsChildWithTagName
-
Methods inherited from interface com.helger.html.hc.IHCHasChildrenMutable
addAndReturnChild, addAndReturnChildAt, addChild, addChildAt, addChildren, addChildren, addChildren, addChildrenAt, addChildrenAt, getAllChildrenAsNodeList, removeAllChildren, removeChild, removeChildAt, setChild, sortAllChildren
-
Methods inherited from interface com.helger.html.hc.html.IHCHasCSSClasses
addClass, addClasses, addClasses, addClasses, containsClass, getAllClasses, getAllClassesAsString, getAllClassNames, hasAnyClass, removeAllClasses, removeClass
-
Methods inherited from interface com.helger.html.hc.html.IHCHasCSSStyles
addStyle, addStyle, addStyles, addStyles, addStyles, containsStyle, getAllStyles, getAllStylesAsString, getAllStyleValues, getStyleValue, hasAnyStyle, hasStyle, removeAllStyles, removeStyle
-
Methods inherited from interface com.helger.html.hc.IHCHasID
ensureID, getID, hasID, hasNoID, setID, setUniqueID
-
Methods inherited from interface com.helger.html.hc.IHCNode
canConvertToMicroNode, consistencyCheck, convertToMicroNode, customizeNode, finalizeNodeState, getNodeState, getPlainText, registerExternalResources
-
Methods inherited from interface com.helger.html.hc.IHCNodeWithChildren
addChild, addChildAt, addChildren, addChildren, setChild
-
-
-
-
Constructor Detail
-
AbstractHCA
public AbstractHCA()
-
AbstractHCA
public AbstractHCA(@Nonnull com.helger.commons.url.ISimpleURL aHref)
-
-
Method Detail
-
getName
@Nullable public final String getName()
- Specified by:
getNamein interfaceIHCHasName<IMPLTYPE extends AbstractHCA<IMPLTYPE>>- Returns:
- The name of the element. May be
null.
-
setName
@Nonnull public final IMPLTYPE setName(@Nullable String sName)
Description copied from interface:IHCHasNameSet the name of the element.- Specified by:
setNamein interfaceIHCHasName<IMPLTYPE extends AbstractHCA<IMPLTYPE>>- Parameters:
sName- The new name. May benull.- Returns:
- this
-
getHref
@Nullable public final com.helger.commons.url.ISimpleURL getHref()
- Specified by:
getHrefin interfaceIHCA<IMPLTYPE extends AbstractHCA<IMPLTYPE>>
-
setHref
@Nonnull public final IMPLTYPE setHref(@Nonnull com.helger.commons.url.ISimpleURL aHref)
- Specified by:
setHrefin interfaceIHCA<IMPLTYPE extends AbstractHCA<IMPLTYPE>>
-
getTarget
@Nullable public final HC_Target getTarget()
- Specified by:
getTargetin interfaceIHCA<IMPLTYPE extends AbstractHCA<IMPLTYPE>>
-
setTarget
@Nonnull public final IMPLTYPE setTarget(@Nullable HC_Target aTarget)
- Specified by:
setTargetin interfaceIHCA<IMPLTYPE extends AbstractHCA<IMPLTYPE>>
-
getDownload
@Nullable public final String getDownload()
- Specified by:
getDownloadin interfaceIHCA<IMPLTYPE extends AbstractHCA<IMPLTYPE>>
-
setDownload
@Nonnull public final IMPLTYPE setDownload(@Nullable String sDownload)
- Specified by:
setDownloadin interfaceIHCA<IMPLTYPE extends AbstractHCA<IMPLTYPE>>
-
getPing
@Nullable public final com.helger.commons.url.ISimpleURL getPing()
- Specified by:
getPingin interfaceIHCA<IMPLTYPE extends AbstractHCA<IMPLTYPE>>
-
setPing
@Nonnull public final IMPLTYPE setPing(@Nullable com.helger.commons.url.ISimpleURL aPing)
- Specified by:
setPingin interfaceIHCA<IMPLTYPE extends AbstractHCA<IMPLTYPE>>
-
getRel
@Nullable public final String getRel()
- Specified by:
getRelin interfaceIHCA<IMPLTYPE extends AbstractHCA<IMPLTYPE>>
-
setRel
@Nonnull public final IMPLTYPE setRel(@Nullable String sRel)
- Specified by:
setRelin interfaceIHCA<IMPLTYPE extends AbstractHCA<IMPLTYPE>>
-
getType
@Nullable public final com.helger.commons.mime.IMimeType getType()
- Specified by:
getTypein interfaceIHCA<IMPLTYPE extends AbstractHCA<IMPLTYPE>>
-
setType
@Nonnull public final IMPLTYPE setType(@Nullable com.helger.commons.mime.IMimeType aType)
- Specified by:
setTypein interfaceIHCA<IMPLTYPE extends AbstractHCA<IMPLTYPE>>
-
getReferrerPolicy
@Nullable public final EHCReferrerPolicy getReferrerPolicy()
- Specified by:
getReferrerPolicyin interfaceIHCA<IMPLTYPE extends AbstractHCA<IMPLTYPE>>
-
setReferrerPolicy
@Nonnull public final IMPLTYPE setReferrerPolicy(@Nullable EHCReferrerPolicy eReferrerPolicy)
- Specified by:
setReferrerPolicyin interfaceIHCA<IMPLTYPE extends AbstractHCA<IMPLTYPE>>
-
getMedia
@Nullable public final String getMedia()
- Specified by:
getMediain interfaceIHCHasMedia<IMPLTYPE extends AbstractHCA<IMPLTYPE>>- Returns:
- The currently set media query. May be
null.
-
setMedia
@Nonnull public final IMPLTYPE setMedia(@Nullable String sMediaQuery)
Description copied from interface:IHCHasMediaChange media query- Specified by:
setMediain interfaceIHCHasMedia<IMPLTYPE extends AbstractHCA<IMPLTYPE>>- Parameters:
sMediaQuery- The CSS3 media query to be used. May benull.- Returns:
- this
-
onConsistencyCheck
protected void onConsistencyCheck(@Nonnull IHCConversionSettingsToNode aConversionSettings)
- Overrides:
onConsistencyCheckin classAbstractHCElement<IMPLTYPE extends AbstractHCA<IMPLTYPE>>- Parameters:
aConversionSettings- HC conversion settings
-
fillMicroElement
@OverridingMethodsMustInvokeSuper protected void fillMicroElement(com.helger.xml.microdom.IMicroElement aElement, IHCConversionSettingsToNode aConversionSettings)
Description copied from class:AbstractHCElementSet all attributes and child elements of this object- Overrides:
fillMicroElementin classAbstractHCElementWithInternalChildren<IMPLTYPE extends AbstractHCA<IMPLTYPE>,IHCNode>- Parameters:
aElement- The current micro element to be filled. Nevernull.aConversionSettings- The conversion settings to be used. Nevernull.
-
toString
public String toString()
- Overrides:
toStringin classAbstractHCElementWithInternalChildren<IMPLTYPE extends AbstractHCA<IMPLTYPE>,IHCNode>
-
-