leon.app.behavior
Class LySendObjectBehavior
java.lang.Object
leon.app.behavior.LyBehavior
leon.app.behavior.LyActionBehavior
leon.app.behavior.LyUserInputBehavior
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.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LySendObjectBehavior
public LySendObjectBehavior()
- Default constructor.
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 instanceaction
- 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 instanceaction
- 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.
Website: W4 S.A., contact us: support@w4global.com