Class JmixEmptyKanbanItems<T>
java.lang.Object
io.jmix.kanbanflowui.kit.component.data.JmixEmptyKanbanItems<T>
- Type Parameters:
T- type of items contained
- All Implemented Interfaces:
JmixKanbanItems<T>,Serializable
- Direct Known Subclasses:
EmptyKanbanItems
Empty data provider for a
JmixKanban component.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.kanbanflowui.kit.component.data.JmixKanbanItems
JmixKanbanItems.ItemsChangeEvent<T>, JmixKanbanItems.ItemsChangeType -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.RegistrationAdds a listener that will be called when the associated collection or the property of an item of this collection changes.booleancontainsItem(T item) static <T> JmixEmptyKanbanItems<T>Finds an item by its id.Finds an item by its string id.getItems()<V> VgetItemValue(T itemId, String propertyId) voidsetItemValue(T item, String propertyPath, Object value) Sets the value to the item.voidupdateItem(T item) If the item with the same id exists, it is replaced with the given instance.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
JmixEmptyKanbanItems
public JmixEmptyKanbanItems()
-
-
Method Details
-
getInstance
- Type Parameters:
T- type of items contained- Returns:
- instance of the
JmixEmptyKanbanItems
-
getItems
- Specified by:
getItemsin interfaceJmixKanbanItems<T>- Returns:
- unmodifiable collection of items
-
getItem
Description copied from interface:JmixKanbanItemsFinds an item by its id.- Specified by:
getItemin interfaceJmixKanbanItems<T>- Parameters:
itemId- the item id- Returns:
- the item by the given id
-
getItem
Description copied from interface:JmixKanbanItemsFinds an item by its string id.- Specified by:
getItemin interfaceJmixKanbanItems<T>- Parameters:
stringId- the item string id- Returns:
- the item by the given id
-
getItemValue
- Specified by:
getItemValuein interfaceJmixKanbanItems<T>- Parameters:
itemId- the itempropertyId- the property path- Returns:
- the item value
-
getItemId
- Specified by:
getItemIdin interfaceJmixKanbanItems<T>- Parameters:
item- the item- Returns:
- the id of the item
-
setItemValue
Description copied from interface:JmixKanbanItemsSets the value to the item.- Specified by:
setItemValuein interfaceJmixKanbanItems<T>- Parameters:
item- the itempropertyPath- the property pathvalue- the value to set
-
updateItem
Description copied from interface:JmixKanbanItemsIf the item with the same id exists, it is replaced with the given instance. If not, the given instance is added to the items list.- Specified by:
updateItemin interfaceJmixKanbanItems<T>- Parameters:
item- item to update
-
containsItem
- Specified by:
containsItemin interfaceJmixKanbanItems<T>- Parameters:
item- an item to check- Returns:
trueif the underlying collection contains an item,falseotherwise
-
addItemsChangeListener
public com.vaadin.flow.shared.Registration addItemsChangeListener(Consumer<JmixKanbanItems.ItemsChangeEvent<T>> listener) Description copied from interface:JmixKanbanItemsAdds a listener that will be called when the associated collection or the property of an item of this collection changes.- Specified by:
addItemsChangeListenerin interfaceJmixKanbanItems<T>- Parameters:
listener- a listener to add- Returns:
- a handle that can be used for removing the listener
-