Interface HasColSpan
-
- All Superinterfaces:
com.vaadin.flow.component.HasElement,Serializable
- All Known Implementing Classes:
TableCell,TableDataCell,TableHeaderCell
public interface HasColSpan extends com.vaadin.flow.component.HasElementA mixing interface for components, that have a "colspan" attribute.- Author:
- Stefan Uebe
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTRIBUTE_COLSPAN
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default intgetColSpan()Returns the colspan set for this instance.default voidresetColSpan()Resets the colspan to its default (1).default voidsetColSpan(int colSpan)Set a colspan for this instance.
-
-
-
Field Detail
-
ATTRIBUTE_COLSPAN
static final String ATTRIBUTE_COLSPAN
- See Also:
- Constant Field Values
-
-
Method Detail
-
setColSpan
default void setColSpan(int colSpan)
Set a colspan for this instance. Must be a non negative integer (further checks are delegated to the browser).- Parameters:
colSpan- col span
-
getColSpan
default int getColSpan()
Returns the colspan set for this instance. Defaults to 1 if none has been set before.- Returns:
- colspan
-
resetColSpan
default void resetColSpan()
Resets the colspan to its default (1).
-
-