T - the type of the component implementing this interfacepublic interface Selectable<T>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Selectable.SelectionHandler<T>
A function to implement logic to be executed when a
Selectable component selection
changed |
| Modifier and Type | Method and Description |
|---|---|
default void |
addSelectionHandler(Selectable.SelectionHandler<T> selectionHandler)
Adds a selection handler to this component, the handler will be called whenever the component
selected/deselected
|
T |
deselect()
Deselect the component if it is already selected
|
T |
deselect(boolean silent)
deselect the component without triggering the selection/change handlers
|
boolean |
isSelected() |
T |
select()
make the component selected
|
T |
select(boolean silent)
make the component selected without triggering the selection/change handlers
|
T select()
T deselect()
T select(boolean silent)
T deselect(boolean silent)
boolean isSelected()
default void addSelectionHandler(Selectable.SelectionHandler<T> selectionHandler)
selectionHandler - Selectable.SelectionHandlerCopyright © 2019–2022 Dominokit. All rights reserved.