org.objectweb.telosys.common
Class ScreenView

java.lang.Object
  extended byorg.objectweb.telosys.common.TelosysObject
      extended byorg.objectweb.telosys.common.ScreenView
All Implemented Interfaces:
View

public class ScreenView
extends TelosysObject
implements View

ScreenMap implementation of the View interface
To use a screenmap as a standard "MVC view" in a "navigation service"


Constructor Summary
ScreenView(java.lang.String sName, int iScreenContextId)
          ScreenMap View constructor
ScreenView(java.lang.String sName, int iScreenContextId, java.lang.String sScreenContextName)
          ScreenMap View constructor
ScreenView(java.lang.String sName, java.lang.String sType, int iScreenContextId)
          ScreenMap View constructor
ScreenView(java.lang.String sName, java.lang.String sType, int iScreenContextId, java.lang.String sScreenContextName)
          ScreenMap View constructor
 
Method Summary
 void generate(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse)
           
 java.lang.String getAction()
           
 int getId()
          Deprecated. use getScreenContextId
 java.lang.String getName()
          Returns the name of the ScreenMap ( name defined in "screens.xml" )
 int getScreenContextId()
          Returns the ScreenContext ID
 java.lang.String getScreenContextName()
          Returns the ScreenContext name
 ScreenMap getScreenMap()
           
 java.lang.String getTarget()
          Returns the target URL or URI of the View
 java.lang.String getType()
          Returns the type of the ScreenMap ( e.g.
 
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

ScreenView

public ScreenView(java.lang.String sName,
                  int iScreenContextId)
           throws TelosysException
ScreenMap View constructor

Parameters:
sName - : the name of the screen map ( name defined in "screens.xml" )
iScreenContextId - : the id of the ScreenContext associated with the screen map
Throws:
TelosysException

ScreenView

public ScreenView(java.lang.String sName,
                  java.lang.String sType,
                  int iScreenContextId)
           throws TelosysException
ScreenMap View constructor

Parameters:
sName - : the name of the screen map ( name defined in "screens.xml" )
sType - : the type of the screen map ( "html" or "xul" )
iScreenContextId - : the id of the ScreenContext associated with the screen map
Throws:
TelosysException

ScreenView

public ScreenView(java.lang.String sName,
                  int iScreenContextId,
                  java.lang.String sScreenContextName)
           throws TelosysException
ScreenMap View constructor

Parameters:
sName - : the name of the screen map ( name defined in "screens.xml" )
iScreenContextId - : the id of the ScreenContext associated with the screen map
sScreenContextName - : the name of the ScreenContext associated with the screen map
Throws:
TelosysException

ScreenView

public ScreenView(java.lang.String sName,
                  java.lang.String sType,
                  int iScreenContextId,
                  java.lang.String sScreenContextName)
           throws TelosysException
ScreenMap View constructor

Parameters:
sName - : the name of the screen map ( name defined in "screens.xml" )
sType - : the type of the screen map ( "html" or "xul" )
iScreenContextId - : the id of the ScreenContext associated with the screen map
sScreenContextName - : the name of the ScreenContext associated with the screen map
Throws:
TelosysException
Method Detail

getName

public java.lang.String getName()
Returns the name of the ScreenMap ( name defined in "screens.xml" )

Returns:

getType

public java.lang.String getType()
Returns the type of the ScreenMap ( e.g. "html", "xul" )

Returns:

getId

public int getId()
Deprecated. use getScreenContextId

Returns the ScreenContext ID

Returns:

getScreenContextId

public int getScreenContextId()
Returns the ScreenContext ID

Returns:

getScreenContextName

public java.lang.String getScreenContextName()
Returns the ScreenContext name

Returns:

getAction

public java.lang.String getAction()

getScreenMap

public ScreenMap getScreenMap()

getTarget

public java.lang.String getTarget()
Description copied from interface: View
Returns the target URL or URI of the View

Specified by:
getTarget in interface View
Returns:

generate

public void generate(javax.servlet.http.HttpServletRequest httpRequest,
                     javax.servlet.http.HttpServletResponse httpResponse)
              throws TelosysException
Specified by:
generate in interface View
Throws:
TelosysException