Class TableColumn
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- org.vaadin.firitin.fields.internalhtmltable.TableColumn
-
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasStyle,Serializable
@Tag("col") public class TableColumn extends com.vaadin.flow.component.Component implements com.vaadin.flow.component.HasStyleRepresents a table column element (<col>). A column is contained in a column group and can setup table columns.- Author:
- Stefan Uebe
- See Also:
TableColumnGroup, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TableColumn()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSpan()Returns the span attribute for this column.voidresetSpan()Resets the span to its default (1).voidsetSpan(int span)Sets the column span.-
Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
-
-
-
-
Method Detail
-
setSpan
public void setSpan(int span)
Sets the column span. That column span defines how styles of the column's css class will cover related cells. It does not override the cell's colspan attribute.
Must be a positive integer- Parameters:
span- span
-
getSpan
public int getSpan()
Returns the span attribute for this column. Default is 1, if none has been set for this instance.- Returns:
- span
-
resetSpan
public void resetSpan()
Resets the span to its default (1).
-
-