Package com.helger.html.hc.html.script
Class AbstractHCScript<IMPLTYPE extends AbstractHCScript<IMPLTYPE>>
- java.lang.Object
-
- com.helger.html.hc.impl.AbstractHCNode
-
- com.helger.html.hc.html.AbstractHCElement<IMPLTYPE>
-
- com.helger.html.hc.html.script.AbstractHCScript<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>,IHCHasCSSClasses<IMPLTYPE>,IHCHasCSSStyles<IMPLTYPE>,IHCScript<IMPLTYPE>,IHCHasID<IMPLTYPE>,IHCNode,Serializable
- Direct Known Subclasses:
AbstractHCScriptInline,HCScriptFile
public abstract class AbstractHCScript<IMPLTYPE extends AbstractHCScript<IMPLTYPE>> extends AbstractHCElement<IMPLTYPE> implements IHCScript<IMPLTYPE>
Represents an HTML <script> element- Author:
- Philip Helger
- See Also:
HCScriptInline,HCScriptFile, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static com.helger.commons.mime.IMimeTypeDEFAULT_TYPEDefault MIME type: text/javascript-
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 Modifier Constructor Description protectedAbstractHCScript()
-
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 objectStringgetCharset()EHCCORSSettingsgetCrossOrigin()StringgetIntegrity()com.helger.commons.mime.IMimeTypegetType()IMPLTYPEsetCharset(String sCharset)IMPLTYPEsetCrossOrigin(EHCCORSSettings eCrossOrigin)IMPLTYPEsetIntegrity(String sIntegrity)IMPLTYPEsetType(com.helger.commons.mime.IMimeType aType)StringtoString()-
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, onConsistencyCheck, 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
canConvertToMicroNode, consistencyCheck, convertToMicroNode, customizeNode, finalizeNodeState, findFirstChild, findFirstChildMapped, forAllChildren, forAllChildren, forAllChildrenBreakable, forAllChildrenMapped, getAllChildren, getChildAtIndex, getChildCount, getChildren, getFirstChild, getLastChild, getNodeState, getPlainText, hasChildren, 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.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.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.html.script.IHCScript
setCharset
-
-
-
-
Method Detail
-
getType
@Nonnull public final com.helger.commons.mime.IMimeType getType()
- Specified by:
getTypein interfaceIHCScript<IMPLTYPE extends AbstractHCScript<IMPLTYPE>>
-
setType
@Nonnull public final IMPLTYPE setType(@Nonnull com.helger.commons.mime.IMimeType aType)
- Specified by:
setTypein interfaceIHCScript<IMPLTYPE extends AbstractHCScript<IMPLTYPE>>
-
getCharset
@Nullable public final String getCharset()
- Specified by:
getCharsetin interfaceIHCScript<IMPLTYPE extends AbstractHCScript<IMPLTYPE>>
-
setCharset
@Nonnull public final IMPLTYPE setCharset(@Nullable String sCharset)
- Specified by:
setCharsetin interfaceIHCScript<IMPLTYPE extends AbstractHCScript<IMPLTYPE>>
-
getCrossOrigin
@Nullable public final EHCCORSSettings getCrossOrigin()
- Specified by:
getCrossOriginin interfaceIHCScript<IMPLTYPE extends AbstractHCScript<IMPLTYPE>>
-
setCrossOrigin
@Nonnull public final IMPLTYPE setCrossOrigin(@Nullable EHCCORSSettings eCrossOrigin)
- Specified by:
setCrossOriginin interfaceIHCScript<IMPLTYPE extends AbstractHCScript<IMPLTYPE>>
-
getIntegrity
@Nullable public final String getIntegrity()
- Specified by:
getIntegrityin interfaceIHCScript<IMPLTYPE extends AbstractHCScript<IMPLTYPE>>
-
setIntegrity
@Nonnull public final IMPLTYPE setIntegrity(@Nullable String sIntegrity)
- Specified by:
setIntegrityin interfaceIHCScript<IMPLTYPE extends AbstractHCScript<IMPLTYPE>>
-
fillMicroElement
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 classAbstractHCElement<IMPLTYPE extends AbstractHCScript<IMPLTYPE>>- Parameters:
aElement- The current micro element to be filled. Nevernull.aConversionSettings- The conversion settings to be used. Nevernull.
-
toString
public String toString()
- Overrides:
toStringin classAbstractHCElement<IMPLTYPE extends AbstractHCScript<IMPLTYPE>>
-
-