Package io.jmix.flowui.model.impl
Class ViewDataImpl
java.lang.Object
io.jmix.flowui.model.impl.ViewDataImpl
- All Implemented Interfaces:
ViewData
-
Field Summary
Modifier and TypeFieldDescriptionprotected Map<String,
InstanceContainer<?>> protected DataContext
protected Map<String,
DataLoader> protected String
-
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.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.void
loadAll()
PerformsDataLoader.load()
for all loaders registered in the view.void
registerContainer
(String id, InstanceContainer<?> container) Registers the given container in the view.void
registerLoader
(String id, DataLoader loader) Registers the given loader in the view.void
setDataContext
(DataContext dataContext) SetsDataContext
instance for the view.void
-
Field Details
-
viewId
-
dataContext
-
containers
-
loaders
-
-
Constructor Details
-
ViewDataImpl
public ViewDataImpl()
-
-
Method Details
-
getViewId
-
setViewId
-
getDataContext
Description copied from interface:ViewData
Returns view'sDataContext
.- Specified by:
getDataContext
in interfaceViewData
-
getDataContextOrNull
Description copied from interface:ViewData
Returns view'sDataContext
or null if it is not defined.- Specified by:
getDataContextOrNull
in interfaceViewData
-
setDataContext
Description copied from interface:ViewData
SetsDataContext
instance for the view.- Specified by:
setDataContext
in interfaceViewData
-
getContainer
Description copied from interface:ViewData
Returns a container by its id.- Specified by:
getContainer
in interfaceViewData
-
getLoader
Description copied from interface:ViewData
Returns a loader by its id. -
getContainerIds
Description copied from interface:ViewData
Returns ids of all registered containers.- Specified by:
getContainerIds
in interfaceViewData
-
getLoaderIds
Description copied from interface:ViewData
Returns ids of all registered loaders.- Specified by:
getLoaderIds
in interfaceViewData
-
loadAll
public void loadAll()Description copied from interface:ViewData
PerformsDataLoader.load()
for all loaders registered in the view. -
registerContainer
Description copied from interface:ViewData
Registers the given container in the view.- Specified by:
registerContainer
in interfaceViewData
-
registerLoader
Description copied from interface:ViewData
Registers the given loader in the view.- Specified by:
registerLoader
in interfaceViewData
-