java.lang.Objectorg.objectweb.telosys.common.TelosysObject
org.objectweb.telosys.uil.screenmap.ScreenDefinitions
An instance of this class contains all the screen definitions loaded from the "screens.xml" file.
It's the ScreenMap provider.
The screens definitions (and the default configuration values) are used to build
all the elements composing a ScreenMap ( body, script, css, template, and so on )
Constructor Summary | |
ScreenDefinitions()
Constructor |
Method Summary | |
ScreenDefConfig |
getConfig()
Returns the instance containing the attributes of the |
ScreenDefRootDir |
getHtmlRootDir()
Returns the |
ScreenDefRootDir |
getRootDir(java.lang.String sScreenTypeParam)
Returns the |
ScreenConventions |
getScreenConventions()
Returns the instance containing the attributes of the |
int |
getScreenDefCount()
Returns the current number of screen definitions it can evolve if the Convention over Configuration is used ( see |
ScreenDefinition |
getScreenDefinition(java.lang.String sScreenName)
Returns the screen definition for the given screen name, or null if none |
ScreenMap |
getScreenMap(javax.servlet.ServletContext servletContext,
java.lang.String sScreenName,
java.lang.String sScreenType,
int iScreenContextId,
java.lang.String sScreenContextName,
java.lang.String sScreenContextAction)
Creates a ScreenMap instance for the given screen informations ( name, type, context id, context name ) |
java.util.Iterator |
getScreenNames()
Returns an iterator for all the screen names currently defined |
java.lang.String[] |
getScreenNamesArray()
Returns an array of all the screen names currently defined |
ScreenDefRootDir |
getXulRootDir()
Returns the |
Methods inherited from class org.objectweb.telosys.common.TelosysObject |
error, error, error, getFlagTrace, info, setFlagTrace, trace, warn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ScreenDefinitions()
Method Detail |
public ScreenDefConfig getConfig()
public ScreenConventions getScreenConventions()
public ScreenDefRootDir getHtmlRootDir()
public ScreenDefRootDir getXulRootDir()
public ScreenDefRootDir getRootDir(java.lang.String sScreenTypeParam)
sScreenTypeParam
- "html" or "xul" ( not case sensitive )
public ScreenMap getScreenMap(javax.servlet.ServletContext servletContext, java.lang.String sScreenName, java.lang.String sScreenType, int iScreenContextId, java.lang.String sScreenContextName, java.lang.String sScreenContextAction)
servletContext
- sScreenName
- cannot be nullsScreenType
- can be nulliScreenContextId
- can be UNDEFINED_CONTEXT_ID ( same as null )sScreenContextName
- can be null (if null the screen name is used)sScreenContextAction
- can be null (if null the default action is used)
public ScreenDefinition getScreenDefinition(java.lang.String sScreenName)
sScreenName
-
public java.util.Iterator getScreenNames()
public java.lang.String[] getScreenNamesArray()
public int getScreenDefCount()