Package io.jmix.pivottableflowui.data
Class ListPivotTableItems<T>
java.lang.Object
io.jmix.pivottableflowui.data.ListPivotTableItems<T>
- All Implemented Interfaces:
- DataUnit,- HasType<T>,- PivotTableItems<T>,- JmixPivotTableItems<T>,- Serializable
Data provider for a 
PivotTable component in which all items are stored in List- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface io.jmix.flowui.data.DataUnitDataUnit.StateChangeEventNested classes/interfaces inherited from interface io.jmix.pivottableflowui.kit.data.JmixPivotTableItemsJmixPivotTableItems.ItemsChangeEvent<T>, JmixPivotTableItems.ItemsChangeType
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionListPivotTableItems(String idAttribute, Class<?> idType) ListPivotTableItems(String idAttribute, Class<?> idType, Collection<T> items) ListPivotTableItems(String idAttribute, Class<?> idType, T... items) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds passed item to the list.voidaddItems(Collection<T> items) Adds passed items to the list.final voidAdds passed items to the list.com.vaadin.flow.shared.RegistrationAdds a listener that will be called when the associated collection or the property of an item of this collection changes.com.vaadin.flow.shared.RegistrationRegisters a new state change listener.booleancontainsItem(T item) protected ObjectdeserializeId(String stringValue) protected voidfireChangeEvent(JmixPivotTableItems.ItemsChangeType operationType, Collection<T> items) protected EventBusFinds an item by its id.Finds an item by its string id.getItems()<V> VgetItemValue(T item, String propertyPath) protected MethodsCachegetMethodsCache(Object object) getState()getType()protected ObjectgetValueInternal(T item, String path) voidRemoves all items.voidremoveItem(T item) Removes the passed item from the list.voidsetItemValue(T item, String propertyPath, Object value) Sets the value to the item.protected voidsetValueInternal(T item, String path, Object value) voidupdateItem(T item) If the item with the same id exists, it is replaced with the given instance.
- 
Field Details- 
items
- 
idAttribute
- 
idType
 
- 
- 
Constructor Details- 
ListPivotTableItems
- 
ListPivotTableItems
- 
ListPivotTableItems
 
- 
- 
Method Details- 
addItemsChangeListenerpublic com.vaadin.flow.shared.Registration addItemsChangeListener(Consumer<JmixPivotTableItems.ItemsChangeEvent<T>> listener) Description copied from interface:JmixPivotTableItemsAdds a listener that will be called when the associated collection or the property of an item of this collection changes.- Specified by:
- addItemsChangeListenerin interface- JmixPivotTableItems<T>
- Parameters:
- listener- a listener to add
- Returns:
- a handle that can be used for removing the listener
 
- 
getItems- Specified by:
- getItemsin interface- JmixPivotTableItems<T>
- Returns:
- unmodifiable collection of items
 
- 
getItemValue- Specified by:
- getItemValuein interface- JmixPivotTableItems<T>
- Parameters:
- item- the item
- propertyPath- the property path
- Returns:
- the item value
 
- 
setItemValueDescription copied from interface:JmixPivotTableItemsSets the value to the item.- Specified by:
- setItemValuein interface- JmixPivotTableItems<T>
- Parameters:
- item- the item
- propertyPath- the property path
- value- the value to set
 
- 
getItemId- Specified by:
- getItemIdin interface- JmixPivotTableItems<T>
- Parameters:
- item- the item
- Returns:
- the id of the item
 
- 
getItemDescription copied from interface:JmixPivotTableItemsFinds an item by its id.- Specified by:
- getItemin interface- JmixPivotTableItems<T>
- Parameters:
- itemId- the item id
- Returns:
- the item by the given id
 
- 
getItemDescription copied from interface:JmixPivotTableItemsFinds an item by its string id.- Specified by:
- getItemin interface- JmixPivotTableItems<T>
- Parameters:
- stringId- the item string id
- Returns:
- the item by the given id
 
- 
addItemAdds passed item to the list.- Parameters:
- item- item to add
 
- 
addItemsAdds passed items to the list.- Parameters:
- items- items to add
 
- 
addItemsAdds passed items to the list.- Parameters:
- items- items to add
 
- 
updateItemDescription copied from interface:JmixPivotTableItemsIf 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 interface- JmixPivotTableItems<T>
- Parameters:
- item- item to update
 
- 
removeItemRemoves the passed item from the list.- Parameters:
- item- item to remove
 
- 
removeAllpublic void removeAll()Removes all items.
- 
containsItem- Specified by:
- containsItemin interface- JmixPivotTableItems<T>
- Parameters:
- item- an item to check
- Returns:
- trueif the underlying collection contains an item,- falseotherwise
 
- 
getType
- 
getState
- 
addStateChangeListenerpublic com.vaadin.flow.shared.Registration addStateChangeListener(Consumer<DataUnit.StateChangeEvent> listener) Description copied from interface:DataUnitRegisters a new state change listener.- Specified by:
- addStateChangeListenerin interface- DataUnit
- Parameters:
- listener- the listener to be added
- Returns:
- a registration object for removing an event listener added to a source
 
- 
getValueInternal
- 
setValueInternal
- 
deserializeId
- 
getMethodsCache
- 
fireChangeEventprotected void fireChangeEvent(JmixPivotTableItems.ItemsChangeType operationType, Collection<T> items) 
- 
getEventBus
 
-