Interface DynamicScreenGenerator


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.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns an String of XML representing the generated screen.
  • Method Details

    • getScreen

      String getScreen(String id)
      Returns an 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.
      Parameters:
      id - The ID of the screen the framework is trying to obtain
      Returns:
      A String of XML representing the generated screen.