Package com.isomorphic.xml
Class Screen
java.lang.Object
com.isomorphic.xml.Screen
- All Implemented Interfaces:
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
Modifier and TypeMethodDescriptionstatic String
getLoadScript
(String screenName) Returns JavaScript code to load and create a Screen by name.static String
getLoadScript
(String screenName, String ownerId) Returns JavaScript code to load and create a Screen by name.
-
Method Details
-
getLoadScript
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:
Exception
-
getLoadScript
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:
Exception
-