LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.app.behavior
Class LySendObjectBehavior

java.lang.Object
  extended by leon.app.behavior.LyBehavior
      extended by leon.app.behavior.LyActionBehavior
          extended by leon.app.behavior.LyUserInputBehavior
              extended by leon.app.behavior.LySendObjectBehavior
All Implemented Interfaces:
LyActionBehaviorInterface, LyBehaviorInterface, LyUserInputBehaviorInterface, LyGetSessionInterface

public class LySendObjectBehavior
extends LyUserInputBehavior

Implements the send object action. This class handles the build of the userInput and sends an object to the selected users.


Field Summary
 
Fields inherited from class leon.app.behavior.LyUserInputBehavior
__VERSION
 
Constructor Summary
LySendObjectBehavior()
          Default constructor.
 
Method Summary
 java.lang.String getTitle(LyAreaController areaController, LyAction action)
          Gets title corresponding to the given action.
 boolean handleDemand(LyController controller, LyDemand demand)
          Method invoked when a demand is sent to this listener.
 boolean startAction(LyAreaController areaController, LyAction action)
          This method build dynamically the content of the message view.
 
Methods inherited from class leon.app.behavior.LyUserInputBehavior
cancel, close, userInputDemand, validate
 
Methods inherited from class leon.app.behavior.LyActionBehavior
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, reset
 
Methods inherited from class leon.app.behavior.LyBehavior
free, getSession, init
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface leon.app.behaviorinterface.LyActionBehaviorInterface
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, reset
 
Methods inherited from interface leon.app.behaviorinterface.LyBehaviorInterface
free, init
 

Constructor Detail

LySendObjectBehavior

public LySendObjectBehavior()
Default constructor.

Method Detail

getTitle

public java.lang.String getTitle(LyAreaController areaController,
                                 LyAction action)
Description copied from class: LyActionBehavior
Gets title corresponding to the given action.
The default implementation returns the action name.

Specified by:
getTitle in interface LyActionBehaviorInterface
Overrides:
getTitle in class LyActionBehavior
Parameters:
areaController - the current LyAreaController instance
action - the action that was executed
Returns:
the given action name

startAction

public boolean startAction(LyAreaController areaController,
                           LyAction action)
This method build dynamically the content of the message view. It always add a content text field If we cannot find users in the context of the controller, we add a relation field displaying currently connected users.

Specified by:
startAction in interface LyActionBehaviorInterface
Overrides:
startAction in class LyActionBehavior
Parameters:
areaController - the current LyAreaController instance
action - the action that will be executed
Returns:
true

handleDemand

public boolean handleDemand(LyController controller,
                            LyDemand demand)
Description copied from class: LyBehavior
Method invoked when a demand is sent to this listener.
The default implementation does nothing and return false.

Specified by:
handleDemand in interface LyBehaviorInterface
Overrides:
handleDemand in class LyBehavior
Parameters:
controller - controller that routed the demand.
demand - demand parameters sent by the view component.
Returns:
Return true if the demand was handled, false otherwise. If false, the demand is transmitted to the controller to try to handle it.

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com