public interface DynamicScreenGenerator
DynamicScreenGenerators can be registered with the SmartClient Server framework via
the ScreenLoaderServlet.addDynamicScreenGenerator(DynamicScreenGenerator)
method. The framework will call the getScreen method of registered
DynamicScreenGenerators whenever it needs to obtain a screen, giving user code
a means of generating screen definitions at runtime, rather than (or as well as)
providing them as .ui.xml files in the filesystem.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getScreen(java.lang.String id)
Returns an
String of XML representing the generated screen. |
java.lang.String getScreen(java.lang.String id)
String of XML representing the generated screen. If you do
not wish to provide an instance for the given ID, return null and the system will
go through its normal process for loading a screen. Please see the docs for
ScreenLoaderServlet.addDynamicScreenGenerator(DynamicScreenGenerator)
for an important warning about this.id - The ID of the screen the framework is trying to obtain