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)
          Generates the response page (the ScreenMap or any other resource page)
 java.lang.String getAction()
          Returns the ScreenContext action
 int getId()
          Deprecated. use getScreenContextId
 java.lang.String getName()
          Returns the name of the ScreenMap ( logical name defined in "screens.xml" or by convention )
 int getScreenContextId()
          Returns the ScreenContext ID
 java.lang.String getScreenContextName()
          Returns the ScreenContext name (can be null)
 java.lang.String getType()
          Returns the type of the ScreenMap ( e.g.
 java.lang.String toString()
           
 
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, 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 ( logical name defined in "screens.xml" or by convention )

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 (can be null)

Returns:

getAction

public java.lang.String getAction()
Returns the ScreenContext action

Returns:

toString

public java.lang.String toString()

generate

public void generate(javax.servlet.http.HttpServletRequest httpRequest,
                     javax.servlet.http.HttpServletResponse httpResponse)
              throws TelosysException
Description copied from interface: View
Generates the response page (the ScreenMap or any other resource page)

Specified by:
generate in interface View
Parameters:
httpRequest -
httpResponse -
Throws:
TelosysException