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.HasStyle
Represents a table column element (
<col>
). A column is contained in a column group and can
setup table columns.- Author:
- Stefan Uebe
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
TableColumn
public TableColumn()
-
-
Method Details
-
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).
-