LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.app.behaviorinterface
Interface LyFormBehaviorInterface

All Superinterfaces:
LyActionBehaviorInterface, LyBehaviorInterface
All Known Subinterfaces:
LyChartBehaviorInterface, LyClassBehaviorInterface, LyConsultBehaviorInterface, LyCreateBehaviorInterface, LyOutlineBehaviorInterface, LySetBehaviorInterface
All Known Implementing Classes:
LyChartBehavior, LyClassBehavior, LyMetricsChartBehavior

public interface LyFormBehaviorInterface
extends LyActionBehaviorInterface

Generic interface for all behaviors that applies on form action.

See Also:
LyFormController

Field Summary
static java.lang.String __VERSION
          File version
 
Method Summary
 java.lang.String getImage(LyFormController formController, LyObject object)
          Gets the image associated to the given object for the given form.
 java.lang.Object getValue(LyFormController form, LyFieldInfo fieldInfo)
          Gets value of the given fieldInfo.
 boolean isDisplayed(LyFormController form, LyFieldInfo fieldInfo)
          Indicates if the given fieldInfo is displayed in the given form or not.
 
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

static final java.lang.String __VERSION
File version

See Also:
Constant Field Values
Method Detail

getImage

java.lang.String getImage(LyFormController formController,
                          LyObject object)
Gets the image associated to the given object for the given form.

Parameters:
formController - the form controller
object - object whose image is looked for
Returns:
Logical name of the image.

getValue

java.lang.Object getValue(LyFormController form,
                          LyFieldInfo fieldInfo)
Gets value of the given fieldInfo. This method must be efficient because it can be called frequently.

Parameters:
form - the current LyFormController instance.
fieldInfo - the fieldInfo that contains the value
Returns:
the value of the given fieldInfo as an Object

isDisplayed

boolean isDisplayed(LyFormController form,
                    LyFieldInfo fieldInfo)
Indicates if the given fieldInfo is displayed in the given form or not.

Parameters:
form - the current LyFormController instance.
fieldInfo - the fieldInfo which is tested for addition in the view.
Returns:
true if the field should be added, false if it should be skipped.

(c) January 2013 - W4 S.A.

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