java.lang.Objectorg.objectweb.telosys.common.TelosysObject
org.objectweb.telosys.uil.screenmap.ScreenConventions
This class contains the "conventions" to use by default ( for "Convention Over Configuration" ).
It provides all the attributes loaded from the "screen_conventions" tag of the "screens.xml" file.
It allows to build a ScreenDefinition by applying the conventions
There's one instance of this class ( held by ScreenDefinitions )
Constructor Summary | |
protected |
ScreenConventions()
Constructor |
Method Summary | |
protected ScreenDefinition |
buildScreenDefinition(javax.servlet.ServletContext servletContext,
java.lang.String sScreenName,
ScreenDefRootDir rootDir)
Build a ScreenDefinition replacing the SCREENNAME by the given screen name parameter The screen existence is checked here, if the required resources for the screen are not found this method returns null |
java.lang.String |
getBody()
Returns the default "body resource" to use by convention |
java.lang.String |
getContextAction()
Returns the default "context action" |
java.lang.String |
getContextId()
Returns the default "context id" |
java.lang.String |
getContextName()
Returns the default "context name" |
java.lang.String |
getCss()
Returns the default "CSS resource" to use by convention |
java.lang.String |
getScript()
Returns the default "javascript resource" to use by convention |
java.lang.String |
getTemplate()
Returns the default "template resource" to use by convention |
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 |
protected ScreenConventions()
Method Detail |
public java.lang.String getBody()
public java.lang.String getScript()
public java.lang.String getCss()
public java.lang.String getTemplate()
public java.lang.String getContextId()
public java.lang.String getContextName()
public java.lang.String getContextAction()
protected ScreenDefinition buildScreenDefinition(javax.servlet.ServletContext servletContext, java.lang.String sScreenName, ScreenDefRootDir rootDir)
servletContext
- sScreenName
- rootDir
-