Package io.jmix.flowui.model.impl
Class AbstractDataComponentsHolder
java.lang.Object
io.jmix.flowui.model.impl.AbstractDataComponentsHolder
- All Implemented Interfaces:
HasDataComponents
- Direct Known Subclasses:
FragmentDataImpl
,ViewDataImpl
-
Field Summary
Modifier and TypeFieldDescriptionprotected Map<String,
InstanceContainer<?>> protected DataContext
protected Map<String,
DataLoader> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends InstanceContainer<?>>
TgetContainer
(String id) Returns a container by its id.Returns ids of all registered containers.protected Map<String,
InstanceContainer<?>> Returns view'sDataContext
.Returns view'sDataContext
or null if it is not defined.<T extends DataLoader>
TReturns a loader by its id.Returns ids of all registered loaders.protected Map<String,
DataLoader> protected abstract String
void
loadAll()
PerformsDataLoader.load()
for all loaders registered in the view.void
registerContainer
(String id, InstanceContainer<?> container) Registers the given containervoid
registerLoader
(String id, DataLoader loader) Registers the given loadervoid
setDataContext
(DataContext dataContext) SetsDataContext
instance for the view.
-
Field Details
-
dataContext
-
containers
-
loaders
-
-
Constructor Details
-
AbstractDataComponentsHolder
public AbstractDataComponentsHolder()
-
-
Method Details
-
getDataContext
Description copied from interface:HasDataComponents
Returns view'sDataContext
.- Specified by:
getDataContext
in interfaceHasDataComponents
-
getDataContextOrNull
Description copied from interface:HasDataComponents
Returns view'sDataContext
or null if it is not defined.- Specified by:
getDataContextOrNull
in interfaceHasDataComponents
-
setDataContext
Description copied from interface:HasDataComponents
SetsDataContext
instance for the view.- Specified by:
setDataContext
in interfaceHasDataComponents
-
getContainer
Description copied from interface:HasDataComponents
Returns a container by its id.- Specified by:
getContainer
in interfaceHasDataComponents
-
getLoader
Description copied from interface:HasDataComponents
Returns a loader by its id.- Specified by:
getLoader
in interfaceHasDataComponents
-
getContainerIds
Description copied from interface:HasDataComponents
Returns ids of all registered containers.- Specified by:
getContainerIds
in interfaceHasDataComponents
-
getLoaderIds
Description copied from interface:HasDataComponents
Returns ids of all registered loaders.- Specified by:
getLoaderIds
in interfaceHasDataComponents
-
registerContainer
Description copied from interface:HasDataComponents
Registers the given container- Specified by:
registerContainer
in interfaceHasDataComponents
-
registerLoader
Description copied from interface:HasDataComponents
Registers the given loader- Specified by:
registerLoader
in interfaceHasDataComponents
-
getOwnerId
-
loadAll
public void loadAll()Description copied from interface:HasDataComponents
PerformsDataLoader.load()
for all loaders registered in the view.- Specified by:
loadAll
in interfaceHasDataComponents
-
getContainers
-
getLoaders
-