Package com.storedobject.vaadin
Class GridColumnDetail<T>
java.lang.Object
com.storedobject.vaadin.GridColumnDetail<T>
- Type Parameters:
T
- Bean type of the grid.
This class keeps extra information about
Grid.Column
.- Author:
- Syam
-
Method Summary
Modifier and TypeMethodDescriptionGet the header caption.com.vaadin.flow.component.grid.Grid.Column
<T> Get the associated grid column.getLabel()
Retrieves the label of the grid column.Get the function that can compute the rendering value associated with column.Class
<?> Get the value type.void
setCaption
(String caption) Set the header caption.void
Sets the label of the grid column.void
setVisible
(boolean visible) Set the column visible.
-
Method Details
-
getColumn
Get the associated grid column.- Returns:
- Grid column.
-
getCaption
Get the header caption.- Returns:
- Header caption. For component columns, this returns null.
-
setCaption
Set the header caption.- Parameters:
caption
- Header caption.
-
getValueFunction
-
getValueType
-
setVisible
public void setVisible(boolean visible) Set the column visible.Note: This is the recommended way to make the column visible because it will update the context menu of the configurator too.
- Parameters:
visible
- True/false.
-
getLabel
Retrieves the label of the grid column. If the label is not set (null), it returns the caption instead.Note: Label is used as the menu label inside the
HasColumns.getConfigureButton()
's menu.- Returns:
- The label of the grid column, or the caption if the name is null.
-
setLabel
Sets the label of the grid column.Note: Label is used as the menu label inside the
HasColumns.getConfigureButton()
's menu.- Parameters:
label
- The Label to set for the grid column.
-