LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.app.behavior
Class LyWebServiceBehavior

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.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
 
Constructor Summary
LyWebServiceBehavior()
           
 
Method Summary
 void close(LyController controller)
          Invoked when the user closes the content of the input.
 int getFieldInfoType(java.lang.String name)
          Here you can specify the type of a field info.
 boolean handleDemand(LyController controller, LyDemand demand)
          Method invoked when a demand is sent to this listener.
 LyFieldInfo updateFieldInfo(LyFieldInfo fieldInfo)
          Here you can update the given field info.
 void userInputDemand(LyController controller, LyDemand demand)
          Method invoked when the user validates the content of the input.
 
Methods inherited from class leon.app.behavior.LyUserInputBehavior
cancel, validate
 
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, 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, init
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
File version

See Also:
Constant Field Values
Constructor Detail

LyWebServiceBehavior

public LyWebServiceBehavior()
Method Detail

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 instance
demand - 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)

(c) January 2013 - W4 S.A.

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