Package com.storedobject.ui
Class EditableListProvider<T>
java.lang.Object
com.vaadin.flow.data.provider.AbstractDataProvider<T,com.vaadin.flow.function.SerializablePredicate<T>>
com.vaadin.flow.data.provider.ListDataProvider<T>
com.storedobject.ui.AbstractListProvider<T>
com.storedobject.ui.ListProvider<T>
com.storedobject.ui.EditableListProvider<T>
- All Implemented Interfaces:
EditableProvider<T>,ViewFilterSupport<T>,com.vaadin.flow.data.provider.ConfigurableFilterDataProvider<T,,com.vaadin.flow.function.SerializablePredicate<T>, com.vaadin.flow.function.SerializablePredicate<T>> com.vaadin.flow.data.provider.DataProvider<T,,com.vaadin.flow.function.SerializablePredicate<T>> com.vaadin.flow.data.provider.InMemoryDataProvider<T>,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.storedobject.ui.AbstractListProvider
AbstractListProvider.LoadCallBack -
Constructor Summary
ConstructorsConstructorDescriptionEditableListProvider(Class<T> objectClass, DataList<T> data, BiFunction<T, Boolean, T> loader) -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.vaadin.flow.shared.RegistrationaddValueChangeTracker(BiConsumer<AbstractListProvider<T>, Boolean> tracker) booleanvoidclear()booleanbooleanbooleanbooleanbooleanvoidvoidrefreshItem(T item) voidreload()intvoidsavedAll()This method should be called to reset the status of all rows after all changes are saved.booleanbooleanMethods inherited from class com.storedobject.ui.AbstractListProvider
addDataLoadedListener, close, fetch, filterView, get, getData, getDataProvider, getItems, getObjectClass, getObjectCount, getViewFilter, indexOf, setFilter, setSortComparator, size, streamAll, streamFilteredMethods inherited from class com.vaadin.flow.data.provider.ListDataProvider
getFilter, getSortComparatorMethods inherited from class com.vaadin.flow.data.provider.AbstractDataProvider
addDataProviderListener, addListener, fireEvent, 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
addDataProviderListener, getId, refreshItem, withConfigurableFilter, withConfigurableFilter, withConvertedFilterMethods inherited from interface com.storedobject.ui.EditableProvider
isSavePending, streamAllMethods inherited from interface com.vaadin.flow.data.provider.InMemoryDataProvider
addFilter, addFilter, addFilterByValue, addSortComparator, addSortOrder, clearFilters, filteringBy, filteringBy, filteringByEquals, filteringByPrefix, filteringByPrefix, filteringBySubstring, filteringBySubstring, isInMemory, setFilter, setFilterByValue, setSortOrderMethods inherited from interface com.storedobject.ui.util.ViewFilterSupport
configure, configure, configure, configureMatch
-
Constructor Details
-
EditableListProvider
-
-
Method Details
-
isChanged
public boolean isChanged() -
addValueChangeTracker
public com.vaadin.flow.shared.Registration addValueChangeTracker(BiConsumer<AbstractListProvider<T>, Boolean> tracker) - Specified by:
addValueChangeTrackerin interfaceEditableProvider<T>
-
refreshItem
-
refreshAll
public void refreshAll()- Specified by:
refreshAllin interfacecom.vaadin.flow.data.provider.DataProvider<T,com.vaadin.flow.function.SerializablePredicate<T>> - Overrides:
refreshAllin classAbstractListProvider<T>
-
clear
public void clear()- Specified by:
clearin interfaceEditableProvider<T>- Overrides:
clearin classAbstractListProvider<T>
-
reload
public void reload() -
reload
- Specified by:
reloadin interfaceEditableProvider<T>
-
append
- Specified by:
appendin interfaceEditableProvider<T>
-
add
- Specified by:
addin interfaceEditableProvider<T>
-
delete
- Specified by:
deletein interfaceEditableProvider<T>
-
undelete
- Specified by:
undeletein interfaceEditableProvider<T>
-
update
- Specified by:
updatein interfaceEditableProvider<T>
-
savedAll
public void savedAll()This method should be called to reset the status of all rows after all changes are saved.- Specified by:
savedAllin interfaceEditableProvider<T>
-
isAdded
- Specified by:
isAddedin interfaceEditableProvider<T>
-
isDeleted
- Specified by:
isDeletedin interfaceEditableProvider<T>
-
isEdited
- Specified by:
isEditedin interfaceEditableProvider<T>
-
streamAdded
- Specified by:
streamAddedin interfaceEditableProvider<T>
-
streamEdited
- Specified by:
streamEditedin interfaceEditableProvider<T>
-
streamDeleted
- Specified by:
streamDeletedin interfaceEditableProvider<T>
-