Package com.helger.html.hc.html.tabular
Interface IHCCol<IMPLTYPE extends IHCCol<IMPLTYPE>>
-
- Type Parameters:
IMPLTYPE- Implementation type
- 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>,IHCElement<IMPLTYPE>,IHCHasCSSClasses<IMPLTYPE>,IHCHasCSSStyles<IMPLTYPE>,IHCHasID<IMPLTYPE>,IHCNode,Serializable
- All Known Implementing Classes:
AbstractHCCol,HCCol
public interface IHCCol<IMPLTYPE extends IHCCol<IMPLTYPE>> extends IHCElement<IMPLTYPE>
Base interface for a table column.- Author:
- Philip Helger
-
-
Field Summary
-
Fields inherited from interface com.helger.html.hc.html.IHCElement
DEFAULT_TABINDEX
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description intgetSpan()StringgetWidth()default booleanisStar()IMPLTYPEsetSpan(int nSpan)default IMPLTYPEsetWidth(int nWidth)Set the width in pixel.IMPLTYPEsetWidth(String sWidth)Set the width as string.default IMPLTYPEsetWidthPerc(double dPerc)Set the width in percent.-
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
-
-
-
-
Method Detail
-
isStar
default boolean isStar()
- Returns:
trueif this is a star column (width == "*")
-
getWidth
@Nullable String getWidth()
- Returns:
- The width definition of the column as a string or
nullif no width is present.
-
setWidth
@Nonnull default IMPLTYPE setWidth(@Nonnegative int nWidth)
Set the width in pixel.- Parameters:
nWidth- Pixel width.- Returns:
- this
-
setWidthPerc
@Nonnull default IMPLTYPE setWidthPerc(@Nonnegative double dPerc)
Set the width in percent.- Parameters:
dPerc- percentage width.- Returns:
- this
-
setWidth
@Nonnull IMPLTYPE setWidth(@Nullable String sWidth)
Set the width as string. May either be a pure integer or e.g. a percentage value (like "50%") or "*" for "any".- Parameters:
sWidth- The width as a string. May benull.- Returns:
- this
-
getSpan
@CheckForSigned int getSpan()
-
-