Package io.jmix.flowui.model.impl
Class ScreenDataImpl
java.lang.Object
io.jmix.flowui.model.impl.ScreenDataImpl
- All Implemented Interfaces:
ScreenData
@Component("flowui_ScreenData")
@Scope("prototype")
public class ScreenDataImpl
extends Object
implements ScreenData
-
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.Returns screen'sDataContext
.Returns screen'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 screen.void
registerContainer
(String id, InstanceContainer<?> container) Registers the given container in the screen.void
registerLoader
(String id, DataLoader loader) Registers the given loader in the screen.void
setDataContext
(DataContext dataContext) SetsDataContext
instance for the screen.
-
Field Details
-
dataContext
-
containers
-
loaders
-
-
Constructor Details
-
ScreenDataImpl
public ScreenDataImpl()
-
-
Method Details
-
getDataContext
Description copied from interface:ScreenData
Returns screen'sDataContext
.- Specified by:
getDataContext
in interfaceScreenData
-
getDataContextOrNull
Description copied from interface:ScreenData
Returns screen'sDataContext
or null if it is not defined.- Specified by:
getDataContextOrNull
in interfaceScreenData
-
setDataContext
Description copied from interface:ScreenData
SetsDataContext
instance for the screen.- Specified by:
setDataContext
in interfaceScreenData
-
getContainer
Description copied from interface:ScreenData
Returns a container by its id.- Specified by:
getContainer
in interfaceScreenData
-
getLoader
Description copied from interface:ScreenData
Returns a loader by its id.- Specified by:
getLoader
in interfaceScreenData
-
getContainerIds
Description copied from interface:ScreenData
Returns ids of all registered containers.- Specified by:
getContainerIds
in interfaceScreenData
-
getLoaderIds
Description copied from interface:ScreenData
Returns ids of all registered loaders.- Specified by:
getLoaderIds
in interfaceScreenData
-
loadAll
public void loadAll()Description copied from interface:ScreenData
PerformsDataLoader.load()
for all loaders registered in the screen.- Specified by:
loadAll
in interfaceScreenData
-
registerContainer
Description copied from interface:ScreenData
Registers the given container in the screen.- Specified by:
registerContainer
in interfaceScreenData
-
registerLoader
Description copied from interface:ScreenData
Registers the given loader in the screen.- Specified by:
registerLoader
in interfaceScreenData
-