com.isomorphic.xml

## Class Screen

- java.lang.Object
- - com.isomorphic.xml.Screen

- All Implemented Interfaces:
    IToJSON

      public class Screen
      extends java.lang.Object
      implements IToJSON

  Encapsulates a Reify, Mockups, or hand-coded screen (i.e. what typically goes into a .ui.xml file or element - essentially a set of UI components)

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static java.lang.String` | `getLoadScript(java.lang.String screenName)` Returns JavaScript code to load and create a Screen by name.
    `static java.lang.String` | `getLoadScript(java.lang.String screenName, java.lang.String ownerId)` Returns JavaScript code to load and create a Screen by name.

    - ### Methods inherited from interface com.isomorphic.js.IToJSON

      `toJSON`

- - ### Method Detail

    - #### getLoadScript

          public static java.lang.String getLoadScript(java.lang.String screenName)
                                                throws java.lang.Exception

      Returns JavaScript code to load and create a Screen by name.
      Parameters:
        `screenName` - The name of the Screen to load. For Screens coming from the filesystem, the name is everything before any file extension. So for example if you have a Foo.ui.xml file, the name you would provide to this method should be "Foo".
      Throws:
        `java.lang.Exception`

    - #### getLoadScript

          public static java.lang.String getLoadScript(java.lang.String screenName,
                                                       java.lang.String ownerId)
                                                throws java.lang.Exception

      Returns JavaScript code to load and create a Screen by name.
      Parameters:
        `screenName` - The name of the Screen to load. For Screens coming from the filesystem, the name is everything before any file extension. So for example if you have a Foo.ui.xml file, the name you would provide to this method should be "Foo".
        `ownerId` - The owner of the specified screen. Only applicable if screen source supports owner identification.
      Throws:
        `java.lang.Exception`