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
FieldsModifier and TypeFieldDescriptionprotected Map<String,InstanceContainer<?>> protected DataContextprotected Map<String,DataLoader> -
Constructor Summary
Constructors -
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'sDataContextor null if it is not defined.<T extends DataLoader>
TReturns a loader by its id.Returns ids of all registered loaders.voidloadAll()PerformsDataLoader.load()for all loaders registered in the screen.voidregisterContainer(String id, InstanceContainer<?> container) Registers the given container in the screen.voidregisterLoader(String id, DataLoader loader) Registers the given loader in the screen.voidsetDataContext(DataContext dataContext) SetsDataContextinstance for the screen.
-
Field Details
-
dataContext
-
containers
-
loaders
-
-
Constructor Details
-
ScreenDataImpl
public ScreenDataImpl()
-
-
Method Details
-
getDataContext
Description copied from interface:ScreenDataReturns screen'sDataContext.- Specified by:
getDataContextin interfaceScreenData
-
getDataContextOrNull
Description copied from interface:ScreenDataReturns screen'sDataContextor null if it is not defined.- Specified by:
getDataContextOrNullin interfaceScreenData
-
setDataContext
Description copied from interface:ScreenDataSetsDataContextinstance for the screen.- Specified by:
setDataContextin interfaceScreenData
-
getContainer
Description copied from interface:ScreenDataReturns a container by its id.- Specified by:
getContainerin interfaceScreenData
-
getLoader
Description copied from interface:ScreenDataReturns a loader by its id.- Specified by:
getLoaderin interfaceScreenData
-
getContainerIds
Description copied from interface:ScreenDataReturns ids of all registered containers.- Specified by:
getContainerIdsin interfaceScreenData
-
getLoaderIds
Description copied from interface:ScreenDataReturns ids of all registered loaders.- Specified by:
getLoaderIdsin interfaceScreenData
-
loadAll
public void loadAll()Description copied from interface:ScreenDataPerformsDataLoader.load()for all loaders registered in the screen.- Specified by:
loadAllin interfaceScreenData
-
registerContainer
Description copied from interface:ScreenDataRegisters the given container in the screen.- Specified by:
registerContainerin interfaceScreenData
-
registerLoader
Description copied from interface:ScreenDataRegisters the given loader in the screen.- Specified by:
registerLoaderin interfaceScreenData
-