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

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getScreen(java.lang.String id)` Returns an `String` of XML representing the generated screen.

- - ### Method Detail

    - #### getScreen

          java.lang.String getScreen(java.lang.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.