Package io.jmix.kanbanflowui.component
Class Kanban.KanbanSingleSelectionModel<T>
java.lang.Object
io.jmix.kanbanflowui.component.Kanban.KanbanSingleSelectionModel<T>
- Type Parameters:
T
- the kanban items type
- All Implemented Interfaces:
com.vaadin.flow.data.selection.SelectionModel<Kanban<T>,
,T> com.vaadin.flow.data.selection.SelectionModel.Single<Kanban<T>,
,T> KanbanSelectionModel<T>
,Serializable
public static class Kanban.KanbanSingleSelectionModel<T>
extends Object
implements KanbanSelectionModel<T>
The server-side implementation of the interface that controls
Kanban
's selection state.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.flow.data.selection.SelectionModel
com.vaadin.flow.data.selection.SelectionModel.Multi<C extends com.vaadin.flow.component.Component,
T extends Object>, com.vaadin.flow.data.selection.SelectionModel.Single<C extends com.vaadin.flow.component.Component, T extends Object> -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.Registration
addSelectionListener
(com.vaadin.flow.data.selection.SelectionListener<Kanban<T>, T> listener) void
void
deselectFromClient
(T item) Handles the deselection of an item that originates from the client.protected void
protected void
fireSelectionEvent
(com.vaadin.flow.data.selection.SelectionEvent<Kanban<T>, T> event) protected Object
boolean
boolean
isSelected
(T item) void
void
selectFromClient
(T item) Handles the selection of an item that originates from the client.void
setDeselectAllowed
(boolean deselectAllowed) 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.data.selection.SelectionModel.Single
deselectAll, getFirstSelectedItem, getSelectedItems, setSelectedItem
-
Field Details
-
kanban
-
selectedItem
-
deselectAllowed
protected boolean deselectAllowed
-
-
Constructor Details
-
KanbanSingleSelectionModel
-
-
Method Details
-
selectFromClient
Description copied from interface:KanbanSelectionModel
Handles the selection of an item that originates from the client.- Specified by:
selectFromClient
in interfaceKanbanSelectionModel<T>
- Parameters:
item
- the item being selected
-
deselectFromClient
Description copied from interface:KanbanSelectionModel
Handles the deselection of an item that originates from the client.- Specified by:
deselectFromClient
in interfaceKanbanSelectionModel<T>
- Parameters:
item
- the item being deselected
-
select
-
getSelectedItem
-
setDeselectAllowed
public void setDeselectAllowed(boolean deselectAllowed) -
isDeselectAllowed
public boolean isDeselectAllowed() -
deselect
-
isSelected
-
addSelectionListener
-
getKanban
-
doSelect
-
fireSelectionEvent
-
asSingleSelected
-
getItemId
-