LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.app.behavior
Class LyUserInputBehavior

java.lang.Object
  extended by leon.app.behavior.LyBehavior
      extended by leon.app.behavior.LyActionBehavior
          extended by leon.app.behavior.LyUserInputBehavior
All Implemented Interfaces:
LyActionBehaviorInterface, LyBehaviorInterface, LyUserInputBehaviorInterface, LyGetSessionInterface
Direct Known Subclasses:
LyChangePhotoBehavior, LyChatBehavior, LyCommonServiceBehavior, LyFindBehavior, LyMessageBehavior, LySendFileBehavior, LySendObjectBehavior, LyShareSessionBehavior, LyWebServiceBehavior

public class LyUserInputBehavior
extends LyActionBehavior
implements LyUserInputBehaviorInterface

This interface defines the default behavior when the data are submited.

See Also:
LyUserInputController

Field Summary
static java.lang.String __VERSION
          File version
 
Constructor Summary
LyUserInputBehavior()
           
 
Method Summary
 void cancel(LyController controller)
          Invoked when the user cancels the content of the input.
 void close(LyController controller)
          Invoked when the user closes the content of the input.
 void userInputDemand(LyController controller, LyDemand demand)
          Method invoked when the user validates the content of the input.
 boolean validate(LyController controller, LyParameterValues values)
          Method invoked when the user validates the content of the input.
 
Methods inherited from class leon.app.behavior.LyActionBehavior
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, getTitle, reset, startAction
 
Methods inherited from class leon.app.behavior.LyBehavior
free, getSession, handleDemand, 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, getTitle, reset, startAction
 
Methods inherited from interface leon.app.behaviorinterface.LyBehaviorInterface
free, handleDemand, init
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
File version

See Also:
Constant Field Values
Constructor Detail

LyUserInputBehavior

public LyUserInputBehavior()
Method Detail

userInputDemand

public void userInputDemand(LyController controller,
                            LyDemand demand)
Method invoked when the user validates the content of the input.
The default implementation, depending on the user validation:

Specified by:
userInputDemand in interface LyUserInputBehaviorInterface
Parameters:
controller - the current LyUserInputController instance
demand - demand parameters sent by the view component.

validate

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

Parameters:
controller - the current LyUserInputController instance
values - values set by the user.
Returns:
True if validation is successfull, false otherwise.

cancel

public void cancel(LyController controller)
Invoked when the user cancels the content of the input.
The default implementation does nothing.

Parameters:
controller - the current LyUserInputController instance

close

public void close(LyController controller)
Invoked when the user closes the content of the input.
The default implementation free the controller.

Parameters:
controller - the current LyUserInputController instance

(c) January 2013 - W4 S.A.

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