Class CheckboxColumn<T>
java.lang.Object
com.flowingcode.vaadin.addons.gridhelpers.CheckboxColumn<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Serializable
A grid column where boolean value is rendered as a
Checkbox.
By default select all checkbox is visible when grid uses an InMemoryDataProvider, or it's
hidden when a BackEndDataProvider is used.
When select all checkbox is visible, CheckboxColumn must be explicitly refreshed if grid
dataprovider changes after column creation using CheckboxColumn.refresh() method.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Method Summary
Modifier and TypeMethodDescriptionReturns the items whose corresponding checkbox is checked.voidrefresh()Refreshes select all checkbox status to reflect the underlying data.
-
Method Details
-
refresh
public void refresh()Refreshes select all checkbox status to reflect the underlying data. This method must be invoked when grid's dataprovider changes. -
getSelectedItems
Returns the items whose corresponding checkbox is checked.- Returns:
- selected items.
-