Package com.helger.html.hc
Interface IHCNodeWithChildren<IMPLTYPE extends IHCNodeWithChildren<IMPLTYPE>>
-
- Type Parameters:
IMPLTYPE- The type of the contained child objects.
- All Superinterfaces:
com.helger.commons.traits.IGenericImplTrait<IMPLTYPE>,com.helger.commons.hierarchy.IHasChildren<IHCNode>,com.helger.commons.hierarchy.IHasChildrenRecursive<IHCNode>,com.helger.commons.hierarchy.IHasChildrenSorted<IHCNode>,IHCHasChildrenMutable<IMPLTYPE,IHCNode>,IHCNode,Serializable
- All Known Subinterfaces:
IHCA<IMPLTYPE>,IHCButton<IMPLTYPE>,IHCCanvas<IMPLTYPE>,IHCCell<IMPLTYPE>,IHCDefinitionItem<IMPLTYPE>,IHCDiv<IMPLTYPE>,IHCElementWithChildren<IMPLTYPE>,IHCFooter<IMPLTYPE>,IHCForm<IMPLTYPE>,IHCIFrame<IMPLTYPE>,IHCLabel<IMPLTYPE>,IHCLI<IMPLTYPE>,IHCMeter<IMPLTYPE>,IHCNav<IMPLTYPE>,IHCNodeList<IMPLTYPE>,IHCObject<IMPLTYPE>,IHCPre<IMPLTYPE>,IHCProgress<IMPLTYPE>,IHCRubyChild<IMPLTYPE>,IHCSpan<IMPLTYPE>
- All Known Implementing Classes:
AbstractHCA,AbstractHCBlockQuote,AbstractHCButton,AbstractHCCanvas,AbstractHCCell,AbstractHCDefinitionItem,AbstractHCDiv,AbstractHCElementWithChildren,AbstractHCFooter,AbstractHCForm,AbstractHCH1,AbstractHCH2,AbstractHCH3,AbstractHCH4,AbstractHCH5,AbstractHCH6,AbstractHCIFrame,AbstractHCLabel,AbstractHCLI,AbstractHCMeter,AbstractHCNav,AbstractHCNodeList,AbstractHCObject,AbstractHCPre,AbstractHCProgress,AbstractHCRubyChild,AbstractHCSpan,HCA,HCA_JS,HCA_MailTo,HCAbbr,HCAddress,HCArticle,HCAside,HCB,HCBDI,HCBDO,HCBlockQuote,HCBody,HCButton,HCButton_Reset,HCButton_Submit,HCCanvas,HCCaption,HCCenter,HCCite,HCCode,HCData,HCDataList,HCDD,HCDel,HCDetails,HCDFN,HCDialog,HCDiv,HCDT,HCEM,HCFieldSet,HCFigCaption,HCFigure,HCFont,HCFooter,HCForm,HCFrameset,HCGenericElementWithChildren,HCH1,HCH2,HCH3,HCH4,HCH5,HCH6,HCHeader,HCHGroup,HCI,HCIFrame,HCIns,HCKBD,HCLabel,HCLegend,HCLI,HCLinkButton,HCMain,HCMap,HCMark,HCMenuItem,HCMeter,HCNav,HCNoBR,HCNodeList,HCNoScript,HCObject,HCOutput,HCP,HCPre,HCProgress,HCQ,HCRP,HCRT,HCS,HCSamp,HCSection,HCSlot,HCSmall,HCSpan,HCStrong,HCSub,HCSummary,HCSup,HCTD,HCTH,HCTime,HCU,HCVar
public interface IHCNodeWithChildren<IMPLTYPE extends IHCNodeWithChildren<IMPLTYPE>> extends IHCHasChildrenMutable<IMPLTYPE,IHCNode>
Special node interface for objects containing other objects- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default IMPLTYPEaddChild(String sText)Add a new text node, if the passed text is non-null.default IMPLTYPEaddChildAt(int nIndex, String sText)default IMPLTYPEaddChildren(String sChild)Deprecated.default IMPLTYPEaddChildren(String... aChildren)default IMPLTYPEsetChild(String sText)Remove all existing children and set only the provided text.-
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.IHCHasChildrenMutable
addAndReturnChild, addAndReturnChildAt, addChild, addChildAt, addChildren, addChildren, addChildren, addChildrenAt, addChildrenAt, getAllChildrenAsNodeList, removeAllChildren, removeChild, removeChildAt, setChild, sortAllChildren
-
Methods inherited from interface com.helger.html.hc.IHCNode
canConvertToMicroNode, consistencyCheck, convertToMicroNode, customizeNode, finalizeNodeState, getNodeState, getPlainText, registerExternalResources
-
-
-
-
Method Detail
-
addChild
@Nonnull default IMPLTYPE addChild(@Nullable String sText)
Add a new text node, if the passed text is non-null.- Parameters:
sText- Child text to add. May benull.- Returns:
- this
-
setChild
@Nonnull default IMPLTYPE setChild(@Nullable String sText)
Remove all existing children and set only the provided text.- Parameters:
sText- Child text to add. May benull.- Returns:
- this
-
addChildAt
@Nonnull default IMPLTYPE addChildAt(@Nonnegative int nIndex, @Nullable String sText)
- Parameters:
nIndex- The index to where the element should be inserted.sText- Child text to add. May benull.- Returns:
- this
-
addChildren
@Nonnull @DevelopersNote("Use addChild instead") @Deprecated(forRemoval=false) default IMPLTYPE addChildren(@Nullable String sChild)
Deprecated.UseaddChild(String)instead- Parameters:
sChild- Child to add. May benull.- Returns:
- this
-
-