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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.RegistrationaddSelectionListener(com.vaadin.flow.data.selection.SelectionListener<Kanban<T>, T> listener) voidvoiddeselectFromClient(T item) Handles the deselection of an item that originates from the client.protected voidprotected voidfireSelectionEvent(com.vaadin.flow.data.selection.SelectionEvent<Kanban<T>, T> event) protected ObjectbooleanbooleanisSelected(T item) voidvoidselectFromClient(T item) Handles the selection of an item that originates from the client.voidsetDeselectAllowed(boolean deselectAllowed) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:KanbanSelectionModelHandles the selection of an item that originates from the client.- Specified by:
selectFromClientin interfaceKanbanSelectionModel<T>- Parameters:
item- the item being selected
-
deselectFromClient
Description copied from interface:KanbanSelectionModelHandles the deselection of an item that originates from the client.- Specified by:
deselectFromClientin 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
-