Package io.jmix.flowui.data.items
Class ContainerDataProvider<E,F>
java.lang.Object
com.vaadin.flow.data.provider.AbstractDataProvider<E,F>
io.jmix.flowui.data.items.ContainerDataProvider<E,F>
- All Implemented Interfaces:
com.vaadin.flow.data.provider.DataProvider<E,,F> ContainerDataUnit<E>,DataUnit,EntityDataUnit,EntityItems<E>,Serializable
public class ContainerDataProvider<E,F>
extends com.vaadin.flow.data.provider.AbstractDataProvider<E,F>
implements ContainerDataUnit<E>, EntityItems<E>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.flowui.data.DataUnit
DataUnit.StateChangeEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CollectionContainer<E>protected Eprotected DataLoader -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.RegistrationRegisters a new state change listener.protected voidprotected voidbooleancontainsItem(E item) protected EventBusgetItems()getState()booleanvoidrefresh()Refreshes the source moving it to theBindingState.ACTIVEstatevoidsetSelectedItem(E item) Set current item in the source.intvoidupdateItem(E item) Update an item in the collection if it is already there.Methods inherited from class com.vaadin.flow.data.provider.AbstractDataProvider
addDataProviderListener, addListener, fireEvent, refreshAll, refreshItem, refreshItemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.data.provider.DataProvider
getId, withConfigurableFilter, withConfigurableFilter, withConvertedFilter
-
Field Details
-
container
-
loader
-
deferredSelectedItem
-
-
Constructor Details
-
ContainerDataProvider
-
-
Method Details
-
containerCollectionChanged
-
containerItemPropertyChanged
-
getEntityMetaClass
- Specified by:
getEntityMetaClassin interfaceEntityDataUnit- Returns:
MetaClassof an entity contained in the source
-
getContainer
- Specified by:
getContainerin interfaceContainerDataUnit<E>
-
setSelectedItem
Description copied from interface:EntityItemsSet current item in the source.- Specified by:
setSelectedItemin interfaceEntityItems<E>- Parameters:
item- the item to set
-
containsItem
- Specified by:
containsItemin interfaceEntityItems<E>- Returns:
- true if the underlying collection contains an item with the specified ID
-
updateItem
Description copied from interface:EntityItemsUpdate an item in the collection if it is already there.- Specified by:
updateItemin interfaceEntityItems<E>
-
refresh
public void refresh()Description copied from interface:EntityItemsRefreshes the source moving it to theBindingState.ACTIVEstate- Specified by:
refreshin interfaceEntityItems<E>
-
isInMemory
public boolean isInMemory() -
size
-
fetch
-
getItems
-
getState
-
addStateChangeListener
public com.vaadin.flow.shared.Registration addStateChangeListener(Consumer<DataUnit.StateChangeEvent> listener) Description copied from interface:DataUnitRegisters a new state change listener.- Specified by:
addStateChangeListenerin interfaceDataUnit- Parameters:
listener- the listener to be added- Returns:
- a registration object for removing an event listener added to a source
-
getEventBus
-