Class HCHead

    • Constructor Detail

      • HCHead

        public HCHead()
    • Method Detail

      • getBaseHref

        @Nullable
        public final com.helger.commons.url.ISimpleURL getBaseHref()
      • setBaseHref

        @Nonnull
        public final HCHead setBaseHref​(@Nullable
                                        com.helger.commons.url.ISimpleURL aBaseHref)
      • metaElements

        @Nonnull
        @ReturnsMutableObject
        public final com.helger.commons.collection.impl.ICommonsList<HCMeta> metaElements()
        Returns:
        meta element list. Never null.
      • removeMetaElement

        @Nonnull
        public final com.helger.commons.state.EChange removeMetaElement​(@Nullable
                                                                        String sName)
      • links

        @Nonnull
        @ReturnsMutableObject
        public final com.helger.commons.collection.impl.ICommonsList<HCLink> links()
        Returns:
        linkmeta element list. Never null.
      • setShortcutIconHref

        @Nonnull
        public final HCHead setShortcutIconHref​(@Nullable
                                                com.helger.commons.url.ISimpleURL aShortcutIconHref)
      • addCSSAt

        @Nonnull
        public final HCHead addCSSAt​(@Nonnegative
                                     int nIndex,
                                     @Nonnull
                                     IHCNode aCSS)
        Add a CSS node at the specified index.
        Parameters:
        nIndex - The index to add. Should be ≥ 0.
        aCSS - The CSS node to be added. May not be null.
        Returns:
        this for chaining
      • cssNodes

        @Nonnull
        @ReturnsMutableObject
        public final com.helger.commons.collection.impl.ICommonsList<IHCNode> cssNodes()
      • getCSSNodes

        @Nonnull
        @ReturnsImmutableObject
        public final com.helger.commons.collection.impl.ICommonsIterable<IHCNode> getCSSNodes()
      • getAllCSSNodes

        @Nonnull
        @ReturnsMutableCopy
        public final com.helger.commons.collection.impl.ICommonsList<IHCNode> getAllCSSNodes()
      • getAllAndRemoveAllCSSNodes

        public final void getAllAndRemoveAllCSSNodes​(@Nonnull
                                                     List<IHCNode> aTargetList)
      • addJS

        @Nonnull
        public final HCHead addJS​(@Nonnull
                                  IHCNode aJS)
        Append some JavaScript code
        Parameters:
        aJS - The JS to be added. May not be null.
        Returns:
        this
      • addJSAt

        @Nonnull
        public final HCHead addJSAt​(@Nonnegative
                                    int nIndex,
                                    @Nonnull
                                    IHCNode aJS)
        Append some JavaScript code at the specified index
        Parameters:
        nIndex - The index where the JS should be added (counting only JS elements)
        aJS - The JS to be added. May not be null.
        Returns:
        this
      • getJSCount

        @Nonnegative
        public final int getJSCount()
        Returns:
        The number of contained JS elements
      • jsNodes

        @Nonnull
        @ReturnsMutableObject
        public final com.helger.commons.collection.impl.ICommonsList<IHCNode> jsNodes()
      • getJSNodes

        @Nonnull
        @ReturnsImmutableObject
        public final com.helger.commons.collection.impl.ICommonsIterable<IHCNode> getJSNodes()
      • getAllJSNodes

        @Nonnull
        @ReturnsMutableCopy
        public final com.helger.commons.collection.impl.ICommonsList<IHCNode> getAllJSNodes()
      • getAllAndRemoveAllJSNodes

        public final void getAllAndRemoveAllJSNodes​(@Nonnull
                                                    List<IHCNode> aTargetList)
      • getAllChildren

        @Nonnull
        @ReturnsMutableCopy
        public final com.helger.commons.collection.impl.ICommonsList<IHCNode> getAllChildren()
        Specified by:
        getAllChildren in interface com.helger.commons.hierarchy.IHasChildren<IHCNode>
        Specified by:
        getAllChildren in interface com.helger.commons.hierarchy.IHasChildrenSorted<IHCNode>
        Overrides:
        getAllChildren in class AbstractHCNode
      • getChildren

        @Nonnull
        public final com.helger.commons.collection.impl.ICommonsIterable<IHCNode> getChildren()
        Specified by:
        getChildren in interface com.helger.commons.hierarchy.IHasChildren<IHCNode>
        Overrides:
        getChildren in class AbstractHCNode
      • hasChildren

        public final boolean hasChildren()
        Specified by:
        hasChildren in interface com.helger.commons.hierarchy.IHasChildren<IHCNode>
        Overrides:
        hasChildren in class AbstractHCNode
      • getChildCount

        public final int getChildCount()
        Specified by:
        getChildCount in interface com.helger.commons.hierarchy.IHasChildren<IHCNode>
        Overrides:
        getChildCount in class AbstractHCNode