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.SerializableA 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 aBackEndDataProvideris used. When select all checkbox is visible,CheckboxColumnmust 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 classCheckboxColumn.CheckboxColumnConfiguration<T>static classCheckboxColumn.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.voidrefresh()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.
-
-