public interface ScreenData
Modifier and Type | Method and Description |
---|---|
<T extends InstanceContainer> |
getContainer(java.lang.String id)
Returns a container by its id.
|
java.util.Set<java.lang.String> |
getContainerIds()
Returns ids of all registered containers.
|
DataContext |
getDataContext()
Returns screen's
DataContext . |
LoadBeforeShowStrategy |
getLoadBeforeShowStrategy()
Returns a strategy to load data before showing the screen.
|
<T extends DataLoader> |
getLoader(java.lang.String id)
Returns a loader by its id.
|
java.util.Set<java.lang.String> |
getLoaderIds()
Returns ids of all registered loaders.
|
void |
loadAll()
Performs
DataLoader.load() for all loaders registered in the screen. |
void |
registerContainer(java.lang.String id,
InstanceContainer container)
Registers the given container in the screen.
|
void |
registerLoader(java.lang.String id,
DataLoader loader)
Registers the given loader in the screen.
|
void |
setDataContext(DataContext dataContext)
Sets
DataContext instance for the screen. |
void |
setLoadBeforeShowStrategy(LoadBeforeShowStrategy strategy)
Sets a strategy to load data before showing the screen.
|
DataContext getDataContext()
DataContext
.void setDataContext(DataContext dataContext)
DataContext
instance for the screen.LoadBeforeShowStrategy getLoadBeforeShowStrategy()
void setLoadBeforeShowStrategy(LoadBeforeShowStrategy strategy)
void loadAll()
DataLoader.load()
for all loaders registered in the screen.<T extends InstanceContainer> T getContainer(java.lang.String id)
java.lang.IllegalArgumentException
- if there is no such container in the screen<T extends DataLoader> T getLoader(java.lang.String id)
java.lang.IllegalArgumentException
- if there is no such loader in the screenjava.util.Set<java.lang.String> getContainerIds()
java.util.Set<java.lang.String> getLoaderIds()
void registerContainer(java.lang.String id, InstanceContainer container)
void registerLoader(java.lang.String id, DataLoader loader)