Package com.helger.html.hc.impl
Class HCCustomizerList
- java.lang.Object
-
- com.helger.html.hc.impl.AbstractHCCustomizer
-
- com.helger.html.hc.impl.HCCustomizerList
-
- All Implemented Interfaces:
IHCCustomizer
@NotThreadSafe public class HCCustomizerList extends AbstractHCCustomizer
An implementation ofIHCCustomizerthat handles a list of multiple customizers.- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description HCCustomizerList(IHCCustomizer... aCustomizers)HCCustomizerList(Iterable<? extends IHCCustomizer> aCustomizers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HCCustomizerListaddCustomizer(IHCCustomizer aCustomizer)voidcustomizeNode(IHCNode aNode, EHTMLVersion eHTMLVersion, IHCHasChildrenMutable<?,? super IHCNode> aTargetNode)Customize HC node with some predefined classes etc.com.helger.commons.collection.impl.ICommonsList<IHCCustomizer>getAllCustomizers()intgetCustomizerCount()com.helger.commons.state.EChangeremoveAllCustomizersOfClass(Class<? extends IHCCustomizer> aCustomizerClass)com.helger.commons.state.EChangeremoveCustomizer(IHCCustomizer aCustomizer)StringtoString()
-
-
-
Constructor Detail
-
HCCustomizerList
public HCCustomizerList(@Nullable IHCCustomizer... aCustomizers)
-
HCCustomizerList
public HCCustomizerList(@Nullable Iterable<? extends IHCCustomizer> aCustomizers)
-
-
Method Detail
-
addCustomizer
@Nonnull public HCCustomizerList addCustomizer(@Nonnull IHCCustomizer aCustomizer)
-
removeCustomizer
@Nonnull public com.helger.commons.state.EChange removeCustomizer(@Nullable IHCCustomizer aCustomizer)
-
removeAllCustomizersOfClass
@Nonnull public com.helger.commons.state.EChange removeAllCustomizersOfClass(@Nonnull Class<? extends IHCCustomizer> aCustomizerClass)
-
getCustomizerCount
@Nonnegative public int getCustomizerCount()
-
getAllCustomizers
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<IHCCustomizer> getAllCustomizers()
-
customizeNode
public void customizeNode(@Nonnull IHCNode aNode, @Nonnull EHTMLVersion eHTMLVersion, @Nonnull IHCHasChildrenMutable<?,? super IHCNode> aTargetNode)
Description copied from interface:IHCCustomizerCustomize HC node with some predefined classes etc.- Parameters:
aNode- The element to be customized. Nevernull.eHTMLVersion- The HTML version to be used. Nevernull.aTargetNode- The node where additional elements should be appended to. May not benull.
-
toString
public String toString()
- Overrides:
toStringin classAbstractHCCustomizer
-
-