com.vaadin.flow.component.grid.
Class GridSelectionColumn
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.grid.GridSelectionColumn
-
-
Constructor Summary
Constructors Constructor and Description GridSelectionColumn(SerializableRunnable selectAllCallback, SerializableRunnable deselectAllCallback)
Constructs a new grid selection column configured to use the given callbacks whenever the select all checkbox is toggled on the client side.
-
Method Summary
All Methods Modifier and Type Method and Description boolean
isFrozen()
Gets the this column's frozen state.
void
setFrozen(boolean frozen)
Sets this column's frozen state.
void
setSelectAllCheckboxIndeterminateState(boolean indeterminate)
Sets the indeterminate state of the select all checkbox on the client.
void
setSelectAllCheckboxState(boolean selectAll)
Sets the checked state of the select all checkbox on the client.
void
setSelectAllCheckBoxVisibility(boolean visible)
Sets the visibility of the select all checkbox on the client.
-
Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
-
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
-
-
-
-
Constructor Detail
-
GridSelectionColumn
public GridSelectionColumn(SerializableRunnable selectAllCallback, SerializableRunnable deselectAllCallback)
Constructs a new grid selection column configured to use the given callbacks whenever the select all checkbox is toggled on the client side.
Parameters:
selectAllCallback
- the runnable to run when the select all checkbox has been checkeddeselectAllCallback
- the runnable to run when the select all checkbox has been unchecked
-
-
Method Detail
-
setSelectAllCheckboxState
public void setSelectAllCheckboxState(boolean selectAll)
Sets the checked state of the select all checkbox on the client.
Parameters:
selectAll
- the new state of the select all checkbox
-
setSelectAllCheckboxIndeterminateState
public void setSelectAllCheckboxIndeterminateState(boolean indeterminate)
Sets the indeterminate state of the select all checkbox on the client.
Parameters:
indeterminate
- the new indeterminate state of the select all checkbox
-
setSelectAllCheckBoxVisibility
public void setSelectAllCheckBoxVisibility(boolean visible)
Sets the visibility of the select all checkbox on the client.
Parameters:
visible
- whether to display the select all checkbox or hide it
-
setFrozen
public void setFrozen(boolean frozen)
Sets this column's frozen state.
Parameters:
frozen
- whether to freeze or unfreeze this column
-
isFrozen
@Synchronize(value="frozen-changed") public boolean isFrozen()
Gets the this column's frozen state.
Returns:
whether this column is frozen
-
-