@Tag(value="vaadin-grid-flow-selection-column") @NpmPackage(value="@vaadin/polymer-legacy-adapter", version="22.0.21") @JsModule(value="@vaadin/polymer-legacy-adapter/style-modules.js") @JsModule(value="./vaadin-grid-flow-selection-column.js") public class GridSelectionColumn extends Component
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.
|
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.
|
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAttachListener
addDetachListener
public GridSelectionColumn(SerializableRunnable selectAllCallback, SerializableRunnable deselectAllCallback)
selectAllCallback
- the runnable to run when the select all checkbox has been
checkeddeselectAllCallback
- the runnable to run when the select all checkbox has been
uncheckedpublic void setSelectAllCheckboxState(boolean selectAll)
selectAll
- the new state of the select all checkboxpublic void setSelectAllCheckboxIndeterminateState(boolean indeterminate)
indeterminate
- the new indeterminate state of the select all checkboxpublic void setSelectAllCheckBoxVisibility(boolean visible)
visible
- whether to display the select all checkbox or hide itpublic void setFrozen(boolean frozen)
frozen
- whether to freeze or unfreeze this column@Synchronize(value="frozen-changed") public boolean isFrozen()
Copyright © 2022. All rights reserved.