Class CheckboxColumn<T>
- java.lang.Object
-
- com.flowingcode.vaadin.addons.gridhelpers.CheckboxColumn<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
java.io.Serializable
public final class CheckboxColumn<T> extends java.lang.Object implements java.io.Serializable
A grid column where boolean value is rendered as aCheckbox
. By default select all checkbox is visible when grid uses anInMemoryDataProvider
, or it's hidden when aBackEndDataProvider
is used. When select all checkbox is visible,CheckboxColumn
must be explicitly refreshed if grid dataprovider changes after column creation usingCheckboxColumn.refresh()
method.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CheckboxColumn.CheckboxColumnConfiguration<T>
static class
CheckboxColumn.CheckboxPosition
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<T>
getSelectedItems()
Returns the items whose corresponding checkbox is checked.void
refresh()
Refreshes select all checkbox status to reflect the underlying data.
-
-
-
Method Detail
-
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
public java.util.Set<T> getSelectedItems()
Returns the items whose corresponding checkbox is checked.- Returns:
- selected items.
-
-