Class GridColumnWrapper
- java.lang.Object
-
- org.linkki.core.ui.wrapper.VaadinComponentWrapper
-
- org.linkki.core.ui.creation.table.GridColumnWrapper
-
- All Implemented Interfaces:
Serializable,ComponentWrapper
public class GridColumnWrapper extends VaadinComponentWrapper
Wrapper for the grid column. The label of the column wrapper is defined as the column header.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static WrapperTypeCOLUMN_TYPEstatic StringKEY_HEADER
-
Constructor Summary
Constructors Constructor Description GridColumnWrapper(com.vaadin.flow.component.grid.Grid.Column<?> column)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.vaadin.flow.component.grid.Grid.Column<?>getComponent()voidsetCollapseMode(UITableColumn.CollapseMode collapseMode)Updates the collapse mode of the wrapped columnvoidsetFlexGrow(int flexGrow)Sets the flexGrow of the grid to the given value if the flexGrow is notUITableColumn.UNDEFINED_FLEX_GROW.voidsetLabel(String labelText)voidsetWidth(int width)Sets the width of the grid to the given value and set flexGrow to 0 if the flexGrow is undefined.StringtoString()-
Methods inherited from class org.linkki.core.ui.wrapper.VaadinComponentWrapper
getType, registerBinding, setEnabled, setId, setTooltip, setValidationMessages, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.linkki.core.binding.wrapper.ComponentWrapper
postUpdate
-
-
-
-
Field Detail
-
COLUMN_TYPE
public static final WrapperType COLUMN_TYPE
-
KEY_HEADER
public static final String KEY_HEADER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getComponent
public com.vaadin.flow.component.grid.Grid.Column<?> getComponent()
- Specified by:
getComponentin interfaceComponentWrapper- Overrides:
getComponentin classVaadinComponentWrapper
-
setLabel
public void setLabel(String labelText)
-
setCollapseMode
public void setCollapseMode(UITableColumn.CollapseMode collapseMode)
Updates the collapse mode of the wrapped column- Parameters:
collapseMode- TheUITableColumn.CollapseModethat should be set
-
setWidth
public void setWidth(int width)
Sets the width of the grid to the given value and set flexGrow to 0 if the flexGrow is undefined.- Parameters:
width- of the grid in pixel
-
setFlexGrow
public void setFlexGrow(int flexGrow)
Sets the flexGrow of the grid to the given value if the flexGrow is notUITableColumn.UNDEFINED_FLEX_GROW. If flexGrow isUITableColumn.UNDEFINED_FLEX_GROW, the flexGrow is set to 0- Parameters:
flexGrow- of the grid to set
-
-