org.objectweb.telosys.screen.core
Class StandardScreenActions

java.lang.Object
  extended byorg.objectweb.telosys.common.TelosysObject
      extended byorg.objectweb.telosys.screen.core.StandardScreenActions
All Implemented Interfaces:
ScreenActions

public class StandardScreenActions
extends TelosysObject
implements ScreenActions

This class is the default implementation of the ScreenActions interface.
This is the standard behavior of a screen context.
This is a "composite" using external "components" :
. ScreenManager
. ScreenTriggers
. ScreenProcedures


Constructor Summary
StandardScreenActions(ScreenManager manager, ScreenTriggers triggers, ScreenProcedures procedures)
          Constructor
 
Method Summary
 void actionClear(ScreenContext screen, ScreenRequest request, ScreenResponse response)
          "CLEAR" action ( to clear the ScreenContext )
 void actionDelete(ScreenContext screen, ScreenRequest request, ScreenResponse response)
          "DELETE" action ( to delete informations in the database )
 void actionDeleteCurrent(ScreenContext screen, ScreenRequest request, ScreenResponse response)
          "DELETE_CURRENT" action ( to delete current informations in the database )
 void actionExec(ScreenContext screenContext, ScreenRequest screenRequest, ScreenResponse screenResponse)
          "EXEC" action ( to execute a specific "procedure" )
 void actionGet(ScreenContext screen, ScreenRequest request, ScreenResponse response)
          "GET" action ( to get informations from the ScreenContext )
 void actionInsert(ScreenContext screenContext, ScreenRequest screenRequest, ScreenResponse screenResponse)
          "INSERT" action ( to insert informations in the database )
 void actionListAdd(ScreenContext screen, ScreenRequest request, ScreenResponse response)
          "LIST_ADD" action ( to add an item at the end of a list )
 void actionListClear(ScreenContext screen, ScreenRequest request, ScreenResponse response)
          "LIST_CLEAR" action ( to clear a list )
 void actionListInsert(ScreenContext screen, ScreenRequest request, ScreenResponse response)
          "LIST_INSERT" action ( to insert an item in a list )
 void actionListRemove(ScreenContext screen, ScreenRequest request, ScreenResponse response)
          "LIST_REMOVE" action ( to remove an item from a list )
 void actionListSelect(ScreenContext screen, ScreenRequest request, ScreenResponse response)
          "LIST_SELECT" action ( to select an item in a list )
 void actionListSort(ScreenContext screen, ScreenRequest request, ScreenResponse response)
          "LIST_SORT" action ( to sort a list )
 void actionLoad(ScreenContext screen, ScreenRequest request, ScreenResponse response)
          "LOAD" action ( to load informations from the database )
 void actionSave(ScreenContext screenContext, ScreenRequest screenRequest, ScreenResponse screenResponse)
          "SAVE" action ( to save informations in the database )
 void actionSaveCurrent(ScreenContext screenContext, ScreenRequest screenRequest, ScreenResponse screenResponse)
          "SAVE_CURRENT" action ( to save current informations in the database )
 void actionSet(ScreenContext screen, ScreenRequest request, ScreenResponse response)
          "SET" action ( to set informations in the ScreenContext )
 void actionUpdate(ScreenContext screenContext, ScreenRequest screenRequest, ScreenResponse screenResponse)
          "UPDATE" action ( to update informations in the database )
 void eventCreate(ScreenContext screenContext, ScreenRequestParameters params, ScreenSession screenSession)
          Event fired when the screen context has just been created by
- a screenmap request with "open" action - a screenmap request with "use" action on a non existent screen context
- an "open" screen action sent by the client-side ( in this case no parameters )
 void eventReuse(ScreenContext screenContext, ScreenRequestParameters params, ScreenSession screenSession)
          Event fired when the screen context is reused
protected  ScreenManager getScreenManager()
          Returns the ScreenManager if any
NB : just for backward compatibility
In future version this method will become 'private'
 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

StandardScreenActions

public StandardScreenActions(ScreenManager manager,
                             ScreenTriggers triggers,
                             ScreenProcedures procedures)
Constructor

Parameters:
manager -
triggers -
procedures -
Method Detail

getScreenManager

protected ScreenManager getScreenManager()
                                  throws TelosysException
Returns the ScreenManager if any
NB : just for backward compatibility
In future version this method will become 'private'

Returns:
Throws:
TelosysException

eventCreate

public void eventCreate(ScreenContext screenContext,
                        ScreenRequestParameters params,
                        ScreenSession screenSession)
                 throws TelosysException
Description copied from interface: ScreenActions
Event fired when the screen context has just been created by
- a screenmap request with "open" action - a screenmap request with "use" action on a non existent screen context
- an "open" screen action sent by the client-side ( in this case no parameters )

Specified by:
eventCreate in interface ScreenActions
Parameters:
screenContext - the ScreenContext instance created
params -
screenSession -
Throws:
TelosysException

eventReuse

public void eventReuse(ScreenContext screenContext,
                       ScreenRequestParameters params,
                       ScreenSession screenSession)
                throws TelosysException
Description copied from interface: ScreenActions
Event fired when the screen context is reused

Specified by:
eventReuse in interface ScreenActions
Parameters:
screenContext -
params -
screenSession -
Throws:
TelosysException

actionSet

public void actionSet(ScreenContext screen,
                      ScreenRequest request,
                      ScreenResponse response)
               throws TelosysException
Description copied from interface: ScreenActions
"SET" action ( to set informations in the ScreenContext )

Specified by:
actionSet in interface ScreenActions
Parameters:
screen -
request -
response -
Throws:
TelosysException

actionGet

public void actionGet(ScreenContext screen,
                      ScreenRequest request,
                      ScreenResponse response)
               throws TelosysException
Description copied from interface: ScreenActions
"GET" action ( to get informations from the ScreenContext )

Specified by:
actionGet in interface ScreenActions
Parameters:
screen -
request -
response -
Throws:
TelosysException

actionClear

public void actionClear(ScreenContext screen,
                        ScreenRequest request,
                        ScreenResponse response)
                 throws TelosysException
Description copied from interface: ScreenActions
"CLEAR" action ( to clear the ScreenContext )

Specified by:
actionClear in interface ScreenActions
Parameters:
screen -
request -
response -
Throws:
TelosysException

actionLoad

public void actionLoad(ScreenContext screen,
                       ScreenRequest request,
                       ScreenResponse response)
                throws TelosysException
Description copied from interface: ScreenActions
"LOAD" action ( to load informations from the database )

Specified by:
actionLoad in interface ScreenActions
Parameters:
screen -
request -
response -
Throws:
TelosysException

actionSave

public void actionSave(ScreenContext screenContext,
                       ScreenRequest screenRequest,
                       ScreenResponse screenResponse)
                throws TelosysException
Description copied from interface: ScreenActions
"SAVE" action ( to save informations in the database )

Specified by:
actionSave in interface ScreenActions
Parameters:
screenContext -
screenRequest -
screenResponse -
Throws:
TelosysException

actionSaveCurrent

public void actionSaveCurrent(ScreenContext screenContext,
                              ScreenRequest screenRequest,
                              ScreenResponse screenResponse)
                       throws TelosysException
Description copied from interface: ScreenActions
"SAVE_CURRENT" action ( to save current informations in the database )

Specified by:
actionSaveCurrent in interface ScreenActions
Parameters:
screenContext -
screenRequest -
screenResponse -
Throws:
TelosysException

actionInsert

public void actionInsert(ScreenContext screenContext,
                         ScreenRequest screenRequest,
                         ScreenResponse screenResponse)
                  throws TelosysException
Description copied from interface: ScreenActions
"INSERT" action ( to insert informations in the database )

Specified by:
actionInsert in interface ScreenActions
Parameters:
screenContext -
screenRequest -
screenResponse -
Throws:
TelosysException

actionUpdate

public void actionUpdate(ScreenContext screenContext,
                         ScreenRequest screenRequest,
                         ScreenResponse screenResponse)
                  throws TelosysException
Description copied from interface: ScreenActions
"UPDATE" action ( to update informations in the database )

Specified by:
actionUpdate in interface ScreenActions
Parameters:
screenContext -
screenRequest -
screenResponse -
Throws:
TelosysException

actionDelete

public void actionDelete(ScreenContext screen,
                         ScreenRequest request,
                         ScreenResponse response)
                  throws TelosysException
Description copied from interface: ScreenActions
"DELETE" action ( to delete informations in the database )

Specified by:
actionDelete in interface ScreenActions
Parameters:
screen -
request -
response -
Throws:
TelosysException

actionDeleteCurrent

public void actionDeleteCurrent(ScreenContext screen,
                                ScreenRequest request,
                                ScreenResponse response)
                         throws TelosysException
Description copied from interface: ScreenActions
"DELETE_CURRENT" action ( to delete current informations in the database )

Specified by:
actionDeleteCurrent in interface ScreenActions
Parameters:
screen -
request -
response -
Throws:
TelosysException

actionListSelect

public void actionListSelect(ScreenContext screen,
                             ScreenRequest request,
                             ScreenResponse response)
                      throws TelosysException
Description copied from interface: ScreenActions
"LIST_SELECT" action ( to select an item in a list )

Specified by:
actionListSelect in interface ScreenActions
Parameters:
screen -
request -
response -
Throws:
TelosysException

actionListInsert

public void actionListInsert(ScreenContext screen,
                             ScreenRequest request,
                             ScreenResponse response)
                      throws TelosysException
Description copied from interface: ScreenActions
"LIST_INSERT" action ( to insert an item in a list )

Specified by:
actionListInsert in interface ScreenActions
Parameters:
screen -
request -
response -
Throws:
TelosysException

actionListAdd

public void actionListAdd(ScreenContext screen,
                          ScreenRequest request,
                          ScreenResponse response)
                   throws TelosysException
Description copied from interface: ScreenActions
"LIST_ADD" action ( to add an item at the end of a list )

Specified by:
actionListAdd in interface ScreenActions
Parameters:
screen -
request -
response -
Throws:
TelosysException

actionListRemove

public void actionListRemove(ScreenContext screen,
                             ScreenRequest request,
                             ScreenResponse response)
                      throws TelosysException
Description copied from interface: ScreenActions
"LIST_REMOVE" action ( to remove an item from a list )

Specified by:
actionListRemove in interface ScreenActions
Parameters:
screen -
request -
response -
Throws:
TelosysException

actionListClear

public void actionListClear(ScreenContext screen,
                            ScreenRequest request,
                            ScreenResponse response)
                     throws TelosysException
Description copied from interface: ScreenActions
"LIST_CLEAR" action ( to clear a list )

Specified by:
actionListClear in interface ScreenActions
Parameters:
screen -
request -
response -
Throws:
TelosysException

actionListSort

public void actionListSort(ScreenContext screen,
                           ScreenRequest request,
                           ScreenResponse response)
                    throws TelosysException
Description copied from interface: ScreenActions
"LIST_SORT" action ( to sort a list )

Specified by:
actionListSort in interface ScreenActions
Parameters:
screen -
request -
response -
Throws:
TelosysException

actionExec

public void actionExec(ScreenContext screenContext,
                       ScreenRequest screenRequest,
                       ScreenResponse screenResponse)
                throws TelosysException
Description copied from interface: ScreenActions
"EXEC" action ( to execute a specific "procedure" )

Specified by:
actionExec in interface ScreenActions
Parameters:
screenContext -
screenRequest -
screenResponse -
Throws:
TelosysException

toString

public java.lang.String toString()