Package com.isomorphic.servlet
Interface DynamicScreenGenerator
public interface DynamicScreenGenerator
DynamicScreenGenerator
s 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.-
Method Summary
-
Method Details
-
getScreen
Returns anString
of XML representing the generated screen. If you do not wish to provide an instance for the given ID, returnnull
and the system will go through its normal process for loading a screen. Please see the docs forScreenLoaderServlet.addDynamicScreenGenerator(DynamicScreenGenerator)
for an important warning about this.- Parameters:
id
- The ID of the screen the framework is trying to obtain- Returns:
- A String of XML representing the generated screen.
-