LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.app.behavior
Class LyShareSessionBehavior

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.LyShareSessionBehavior
All Implemented Interfaces:
LyActionBehaviorInterface, LyBehaviorInterface, LyUserInputBehaviorInterface, LyGetSessionInterface, LyAnswerInterface, LyQuestionAnswerInterface

public class LyShareSessionBehavior
extends LyUserInputBehavior
implements LyQuestionAnswerInterface

This class implements the default behavior for a share session controller.


Field Summary
 
Fields inherited from class leon.app.behavior.LyUserInputBehavior
__VERSION
 
Fields inherited from interface leon.view.setinterface.LyQuestionAnswerInterface
__VERSION
 
Constructor Summary
LyShareSessionBehavior()
          Default constructor.
 
Method Summary
 void free()
          Free this behavior.
 void init(LyController controller)
          Initializes information used within this behavior and is called immediately after its construction.
 void questionAnswer(boolean result, java.lang.Object clientData)
          Answer to a askQuestion request.
 boolean startAction(LyAreaController areaController, LyAction action)
          Starts an action for the given controller.
 boolean validate(LyController controller, LyParameterValues values)
          Method invoked when the user validates the content of the input.
 
Methods inherited from class leon.app.behavior.LyUserInputBehavior
cancel, close, userInputDemand
 
Methods inherited from class leon.app.behavior.LyActionBehavior
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, getTitle, reset
 
Methods inherited from class leon.app.behavior.LyBehavior
getSession, handleDemand
 
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, getTitle, reset
 
Methods inherited from interface leon.app.behaviorinterface.LyBehaviorInterface
handleDemand
 

Constructor Detail

LyShareSessionBehavior

public LyShareSessionBehavior()
Default constructor.

Method Detail

init

public void init(LyController controller)
Initializes information used within this behavior and is called immediately after its construction.
The default implementation does nothing.

Specified by:
init in interface LyBehaviorInterface
Overrides:
init in class LyBehavior
Parameters:
controller - The controller that requested the creation of this behavior.

startAction

public boolean startAction(LyAreaController areaController,
                           LyAction action)
Description copied from class: LyActionBehavior
Starts an action for the given controller. This method is the right place to allocate specific resources requiered for the given action. The default implementation does nothing and returns true.

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

free

public void free()
Description copied from class: LyBehavior
Free this behavior. This method is provided to allow behavior to unregister itself from object sources or workspaces if needed. It should be called only by the controller that built this behavior.
The default implementation does nothing.

Specified by:
free in interface LyBehaviorInterface
Overrides:
free in class LyBehavior

validate

public boolean validate(LyController controller,
                        LyParameterValues values)
Method invoked when the user validates the content of the input.
The default implementation does nothing.

Overrides:
validate in class LyUserInputBehavior
Parameters:
controller - the current LyUserInputController instance
values - values set by the user.
Returns:
True if validation is successful, false otherwise.

questionAnswer

public void questionAnswer(boolean result,
                           java.lang.Object clientData)
Description copied from interface: LyQuestionAnswerInterface
Answer to a askQuestion request.

Specified by:
questionAnswer in interface LyQuestionAnswerInterface
Parameters:
result - true if the user has clicked on Yes or Ok
See Also:
LyQuestionAnswerInterface

(c) January 2013 - W4 S.A.

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