LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.app.behaviorinterface
Interface LyConsultBehaviorInterface

All Superinterfaces:
LyActionBehaviorInterface, LyBehaviorInterface, LyFormBehaviorInterface
All Known Subinterfaces:
LyClassBehaviorInterface, LyCreateBehaviorInterface, LySetBehaviorInterface
All Known Implementing Classes:
LyClassBehavior

public interface LyConsultBehaviorInterface
extends LyFormBehaviorInterface

Generic interface for all behaviors that applies on consult action.

See Also:
LyConsultController

Field Summary
static java.lang.String __VERSION
          File version
 
Method Summary
 boolean enableRelationHRef(LyConsultController consult, LyRelationFieldInfo relation, LyObject href)
          Enables the given href object on the given relation field info.
 LyAction getAction(LyConsultController consult, LyRelationFieldInfo relation, LyClassInfo classInfo)
          Gets action to use for consulting or editing the given relation with the specified class info selected on it.
 void setObject(LyConsultController consult, LyObject object)
          Method called when object shown in the form is changed.
 
Methods inherited from interface leon.app.behaviorinterface.LyFormBehaviorInterface
getImage, getValue, isDisplayed
 
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

getAction

LyAction getAction(LyConsultController consult,
                   LyRelationFieldInfo relation,
                   LyClassInfo classInfo)
Gets action to use for consulting or editing the given relation with the specified class info selected on it.

Parameters:
consult - the current LyConsultController instance.
relation - Edited relation
classInfo - Selected class info.
Returns:
The action to use, if null let controller decides.

setObject

void setObject(LyConsultController consult,
               LyObject object)
Method called when object shown in the form is changed.

Parameters:
consult - the current LyConsultController instance.
object - the object shown in the form.

enableRelationHRef

boolean enableRelationHRef(LyConsultController consult,
                           LyRelationFieldInfo relation,
                           LyObject href)
Enables the given href object on the given relation field info.
The default implementation always returns true.

Parameters:
consult - the current LyConsultController instance
relation - the relation that contains the href
href - the href to enabled
Returns:
true if the href is enabled on this relation, false otherwise

(c) January 2013 - W4 S.A.

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