Package com.helger.html.hc.html.tabular
Class HCColGroup
- java.lang.Object
-
- com.helger.html.hc.impl.AbstractHCNode
-
- com.helger.html.hc.html.AbstractHCElement<IMPLTYPE>
-
- com.helger.html.hc.html.AbstractHCElementWithInternalChildren<HCColGroup,IHCCol<?>>
-
- com.helger.html.hc.html.tabular.HCColGroup
-
- 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<HCColGroup>,IHCElement<HCColGroup>,IHCElementWithInternalChildren<HCColGroup,IHCCol<?>>,IHCHasCSSClasses<HCColGroup>,IHCHasCSSStyles<HCColGroup>,IHCHasChildrenMutable<HCColGroup,IHCCol<?>>,IHCHasID<HCColGroup>,IHCNode,Serializable
public class HCColGroup extends AbstractHCElementWithInternalChildren<HCColGroup,IHCCol<?>>
Represents an HTML <colgroup> 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 HCColGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HCColGroupaddColumn(IHCCol<?> aCol)Add a new column.HCColGroupaddColumnAt(int nIndex, IHCCol<?> aCol)Add a new column.HCColGroupaddColumns(IHCCol<?>... aCols)HCColGroupaddColumns(Iterable<? extends IHCCol<?>> aCols)com.helger.commons.collection.impl.ICommonsList<IHCCol<?>>getAllColumns()intgetColumnCount()IHCCol<?>getColumnOfIndex(int nIndex)Get the column at the specified indexbooleanhasColumns()booleanhasNoColumns()HCColGroupremoveAllColumns()Remove all contained columnsHCColGroupremoveColumnAt(int nIndex)Remove the column at the specified index-
Methods inherited from class com.helger.html.hc.html.AbstractHCElementWithInternalChildren
addChild, addChildAt, afterAddChild, afterRemoveChild, beforeAddChild, canConvertToMicroNode, children, fillMicroElement, findFirstChild, findFirstChildMapped, forAllChildren, forAllChildren, forAllChildrenBreakable, forAllChildrenMapped, getAllChildren, getAllChildrenAsNodeList, getChildAtIndex, getChildCount, getChildren, getChildrenFormEmitting, getFirstChild, getLastChild, getPlainText, hasChildren, removeAllChildren, removeChild, removeChildAt, sortAllChildren, toString
-
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
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.IHasChildrenRecursive
forAllChildrenRecursive, forAllChildrenRecursive
-
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, addChildren, addChildren, addChildren, addChildrenAt, addChildrenAt, setChild
-
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
consistencyCheck, convertToMicroNode, customizeNode, finalizeNodeState, getNodeState, registerExternalResources
-
-
-
-
Method Detail
-
addColumns
@Nonnull public final HCColGroup addColumns(@Nullable IHCCol<?>... aCols)
-
addColumns
@Nonnull public final HCColGroup addColumns(@Nullable Iterable<? extends IHCCol<?>> aCols)
-
addColumn
@Nonnull public final HCColGroup addColumn(@Nullable IHCCol<?> aCol)
Add a new column.- Parameters:
aCol- the column to add- Returns:
- this
-
addColumnAt
@Nonnull public final HCColGroup addColumnAt(@Nonnegative int nIndex, @Nullable IHCCol<?> aCol)
Add a new column.- Parameters:
nIndex- The index where the column should be addedaCol- the column to add- Returns:
- this
-
hasColumns
public final boolean hasColumns()
- Returns:
trueif at least one column is present
-
hasNoColumns
public final boolean hasNoColumns()
- Returns:
trueif not a single column is present
-
getColumnCount
@Nonnegative public final int getColumnCount()
- Returns:
- The number of contained columns. Always ≥ 0.
-
getAllColumns
@Nonnull @ReturnsImmutableObject public final com.helger.commons.collection.impl.ICommonsList<IHCCol<?>> getAllColumns()
- Returns:
- A list of all contained columns. Never
null.
-
getColumnOfIndex
@Nullable public final IHCCol<?> getColumnOfIndex(int nIndex)
Get the column at the specified index- Parameters:
nIndex- The index to retrieve the column from- Returns:
nullif no such column exists
-
removeColumnAt
@Nonnull public final HCColGroup removeColumnAt(int nIndex)
Remove the column at the specified index- Parameters:
nIndex- The index of the column to be removed- Returns:
- this
-
removeAllColumns
@Nonnull public final HCColGroup removeAllColumns()
Remove all contained columns- Returns:
- this
-
-