Package com.storedobject.ui
Interface ObjectLoader<T extends StoredObject>
- All Superinterfaces:
FilterMethods<T>
,ObjectLoader<T>
- All Known Subinterfaces:
ObjectGridData<T,
ROOT>
- All Known Implementing Classes:
AbstractCheckListForestBrowser
,AbstractInvoiceBrowser
,AbstractLinkGrid
,AbstractObjectForest
,AbstractReceiveMaterialReturned
,AbstractReceiveMaterialTransferred
,AbstractRequestMaterial
,AbstractReturnMaterial
,AbstractSale
,AbstractSendAndReceiveMaterial
,ApproveTransaction
,BaseCustomerInvoiceBrowser
,BaseObjectForest
,BaseProcessMaterialRequest
,BaseReceiveMaterialRequested
,BaseRequestMaterial
,BaseSupplierInvoiceBrowser
,BlockComboField
,CheckListForestBrowser
,CrossServerManager
,CustomerInvoiceBrowser
,DataView
,DetailLinkGrid
,EditableObjectGrid
,EditableObjectListProvider
,FileManager
,FileViewer
,FileViewerGrid
,GRN
,ItemComboField
,ItemsSentForRepair
,JournalVoucherBrowser
,LocationField
,LocationMonitoring
,ManageBiometric
,MemoSystem
,ObjectBrowser
,ObjectBrowserEditor
,ObjectBrowserViewer
,ObjectComboField
,ObjectForest
,ObjectForestBrowser
,ObjectForestEditor
,ObjectForestProvider
,ObjectForestViewer
,ObjectGrid
,ObjectListEditor
,ObjectListField
,ObjectListGrid
,ObjectListProvider
,ObjectMemoryGrid
,ObjectSearchBrowser
,ObjectTree
,ObjectTreeBrowser
,ObjectTreeEditor
,ObjectTreeProvider
,ObjectTreeViewer
,PackingUnitBrowser
,POBrowser
,POItemBrowser
,ProcessMaterialRequest
,ReceiveMaterialRequested
,ReceiveMaterialReturned
,ReceiveMaterialTransferred
,ReferenceLinkGrid
,ReferenceLinkListProvider
,RequestMaterial
,RequestTool
,RestrictedSystemUserBrowser
,ReturnMaterial
,ReturnTool
,Sale
,SendItemsForRepair
,SupplierInvoiceBrowser
,SupportSystem
,SystemUserGroupBrowser
,TemplateBrowser
,TextContentBrowser
,ToolMonitoring
,TransferMaterial
,UnitDefinitionBrowser
-
Method Summary
Modifier and TypeMethodDescriptiondefault com.vaadin.flow.shared.Registration
addDataLoadedListener
(DataLoadedListener listener) default void
This method is called whenever a filter predicate is changed.default void
clear
(boolean refresh) Deprecated.default T
get
(int index) default int
default ObjectLoader
<T> default String
getEffectiveCondition
(String condition) Get the "effective" filter condition that must be applied for loading.default ObjectLoadFilter
<T> default ObjectLoadFilter
<T> Get the load filter.default int
default int
default void
load
(ObjectIterator<T> objectIterator) Load the given instances.default void
setExtraFilter
(FilterProvider fixedFilterProvider) Deprecated.Please usesetFixedFilter(FilterProvider)
instead.default void
setExtraFilter
(String fixedFilter) Deprecated.Please usesetFixedFilter(String)
instead.default void
Deprecated.UseFilterMethods.setViewFilter(Predicate)
instead.default void
Deprecated.UseFilterMethods.setViewFilter(Predicate, boolean)
instead.default void
setFixedFilter
(FilterProvider fixedFilterProvider) Set a fixed filter that will be automatically added to any filter that is set later.default void
setFixedFilter
(FilterProvider fixedFilterProvider, boolean apply) Set a fixed filter that will be automatically added to any filter that is set later.default void
setFixedFilter
(String fixedFilter) Set a fixed filter that will be automatically added to any filter that is set later.default void
setFixedFilter
(String fixedFilter, boolean apply) Set a fixed filter that will be automatically added to any filter that is set later.default int
size()
Get the instances count.Methods inherited from interface com.storedobject.core.FilterMethods
getFilterCondition, setFilter, setFilter, setFilter, setFilter, setFilter, setFilter, setLoadFilter, setLoadFilter, setViewFilter, setViewFilter
Methods inherited from interface com.storedobject.core.ObjectLoader
applyFilter, canContain, clear, getAllowAny, getLinkType, getMaster, getObjectClass, getOrderBy, isAllowAny, load, load, load, load, load, load, load, load, load, load, load, load, load, load, load, load, load, load, load, load, load, load, reload, setLinkType, setLinkType, setMaster, setMaster, setOrderBy, setOrderBy
-
Method Details
-
clear
Deprecated.Just use {ObjectLoader.clear()
} only, "refresh" flag is not more required.Clear the entries and refresh it.- Parameters:
refresh
- Whether to refresh or not.
-
size
default int size()Description copied from interface:ObjectLoader
Get the instances count.- Specified by:
size
in interfaceObjectLoader<T extends StoredObject>
- Returns:
- Count.
-
getObjectCount
default int getObjectCount() -
get
-
indexOf
-
streamAll
-
streamFiltered
-
getCacheLevel
default int getCacheLevel() -
getFixedFilter
-
getEffectiveCondition
Description copied from interface:FilterMethods
Get the "effective" filter condition that must be applied for loading. The result fromFilterMethods.getFilterCondition()
will be passed as a parameter to this method to get a modified "condition" if required.- Specified by:
getEffectiveCondition
in interfaceFilterMethods<T extends StoredObject>
- Parameters:
condition
- Condition obtained fromFilterMethods.getFilterCondition()
.- Returns:
- Modified condition or the same if no modification required.
-
setExtraFilter
Deprecated.Please usesetFixedFilter(FilterProvider)
instead.Set a fixed filter that will be automatically added to any filter that is set later.- Parameters:
fixedFilterProvider
- Filter condition to set.
-
setFixedFilter
Set a fixed filter that will be automatically added to any filter that is set later.- Parameters:
fixedFilterProvider
- Filter condition to set.
-
setFixedFilter
Set a fixed filter that will be automatically added to any filter that is set later.- Parameters:
fixedFilterProvider
- Filter condition to set.apply
- Whether to apply immediately or not.
-
setExtraFilter
Deprecated.Please usesetFixedFilter(String)
instead.Set a fixed filter that will be automatically added to any filter that is set later.- Parameters:
fixedFilter
- Filter condition to set.
-
setFixedFilter
Set a fixed filter that will be automatically added to any filter that is set later.- Parameters:
fixedFilter
- Filter condition to set.
-
setFixedFilter
Set a fixed filter that will be automatically added to any filter that is set later.- Parameters:
fixedFilter
- Filter condition to set.apply
- Whether to apply immediately or not.
-
load
Description copied from interface:ObjectLoader
Load the given instances. Current "load filter" if set will be applied. However,ObjectLoader.getOrderBy()
result will be ignored. Also, the value returned byObjectLoader.getAllowAny()
will determine whether instanced of the subclasses to be restricted or not.- Specified by:
load
in interfaceObjectLoader<T extends StoredObject>
- Parameters:
objectIterator
- Objects to be loaded.
-
getLoadFilter
Description copied from interface:FilterMethods
Get the load filter.- Specified by:
getLoadFilter
in interfaceFilterMethods<T extends StoredObject>
- Returns:
- Current load filter.
-
applyFilterPredicate
default void applyFilterPredicate()Description copied from interface:FilterMethods
This method is called whenever a filter predicate is changed. Methods with default implementation already invoke this method. If any of those methods are overridden, make sure that it invokes this method so that logic to handle filter changes can be coded here.Note: This method is used to show the filtered result of the existing entries
- Specified by:
applyFilterPredicate
in interfaceFilterMethods<T extends StoredObject>
-
setFilter
Deprecated.UseFilterMethods.setViewFilter(Predicate)
instead.Set view filter.- Parameters:
predicate
- Predicate to set.
-
setFilter
Deprecated.UseFilterMethods.setViewFilter(Predicate, boolean)
instead.Set view filter.- Parameters:
predicate
- Predicate to set.refresh
- Whether to refresh the view immediately or not.
-
addDataLoadedListener
-
getDelegatedLoader
-
ObjectLoader.clear()
} only, "refresh" flag is not more required.