leon.app.behavior
Class LyWebServiceBehavior
java.lang.Object
leon.app.behavior.LyBehavior
leon.app.behavior.LyActionBehavior
leon.app.behavior.LyUserInputBehavior
leon.app.behavior.LyWebServiceBehavior
- All Implemented Interfaces:
- LyActionBehaviorInterface, LyBehaviorInterface, LyUserInputBehaviorInterface, LyWebServicesBehaviorInterface, LyGetSessionInterface
public class LyWebServiceBehavior
- extends LyUserInputBehavior
- implements LyWebServicesBehaviorInterface
The default behavior for web services
Field Summary |
static java.lang.String |
__VERSION
File version |
Methods inherited from class leon.app.behavior.LyActionBehavior |
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, getTitle, reset, startAction |
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 |
__VERSION
public static final java.lang.String __VERSION
- File version
- See Also:
- Constant Field Values
LyWebServiceBehavior
public LyWebServiceBehavior()
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.
- See Also:
LyBehavior.handleDemand(leon.control.LyController, leon.view.event.LyDemand)
userInputDemand
public void userInputDemand(LyController controller,
LyDemand demand)
- Description copied from class:
LyUserInputBehavior
- 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
- Overrides:
userInputDemand
in class LyUserInputBehavior
- Parameters:
controller
- the current LyUserInputController instancedemand
- demand parameters sent by the view component.- See Also:
LyUserInputBehavior.userInputDemand(leon.control.LyController, leon.view.event.LyDemand)
close
public void close(LyController controller)
- Description copied from class:
LyUserInputBehavior
- Invoked when the user closes the content of the input.
The default implementation free the controller.
- Overrides:
close
in class LyUserInputBehavior
- Parameters:
controller
- the current LyUserInputController instance- See Also:
LyUserInputBehavior.close(leon.control.LyController)
updateFieldInfo
public LyFieldInfo updateFieldInfo(LyFieldInfo fieldInfo)
- Description copied from interface:
LyWebServicesBehaviorInterface
- Here you can update the given field info.
Use only for response containing complex type.
- Specified by:
updateFieldInfo
in interface LyWebServicesBehaviorInterface
- Parameters:
fieldInfo
- a fieldinfo
- Returns:
- fieldInfo an updated fieldInfo
- See Also:
LyWebServicesBehaviorInterface.updateFieldInfo(leon.info.LyFieldInfo)
getFieldInfoType
public int getFieldInfoType(java.lang.String name)
- Description copied from interface:
LyWebServicesBehaviorInterface
- Here you can specify the type of a field info.
Use only for response containing complex type.
- Specified by:
getFieldInfoType
in interface LyWebServicesBehaviorInterface
- Returns:
- the type of the field
- See Also:
LyWebServicesBehaviorInterface.getFieldInfoType(java.lang.String)
Website: W4 S.A., contact us: support@w4global.com