|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.control.LyController
leon.control.LyAreaController
leon.control.LyMultiAreaController
leon.control.LyFormController
leon.control.LyConsultController
public class LyConsultController
This class describes the controller associated to a consultation form. This class implements a 'read-only' LyFormController and specializes method from its parent.
This form controller is always associated to an object or a list of objects.
This class uses a LyFormBehavior (LyClassBehavior) instance which may implement specific application logic, automatic field calculation... or dynamic impact on value changes...
LySetController
,
LyCreateController
,
LyFormBehaviorInterface
,
LyClassBehavior
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
Fields inherited from class leon.control.LyFormController |
---|
DEMAND_APPLY, DEMAND_NEXT_OBJECT, DEMAND_NEXT_STEP, DEMAND_PREVIOUS_OBJECT, DEMAND_PREVIOUS_STEP, DEMAND_SAVE, DEMAND_SELECTION, DEMAND_VALIDATE, FORM_FIELD_SEP |
Fields inherited from class leon.control.LyAreaController |
---|
DEFAULT_MENU_ITEM_IMAGE_SIZE, DEMAND_CANCEL, DEMAND_CLOSE, DEMAND_CREATE_CHART, DEMAND_DELETE_CHART, DEMAND_DELETE_OBJECTINFOS, DEMAND_DELETE_PREFERENCE, DEMAND_UPDATE_VIEW |
Fields inherited from class leon.control.LyController |
---|
_nbControllers, _nextId, CONTROLLER_ID_SEP, DEFAULT_IMAGE_FORMAT, DEMAND_HELP, ID_SEP |
Constructor Summary | |
---|---|
LyConsultController(LySession session,
LyController parent,
LyAction action,
LyClassInfo classInfo,
LyObjectList objects)
Constructor. |
Method Summary | |
---|---|
void |
execRule(LyRule rule,
boolean checked)
Exec given rule inside this controller. |
LyFieldController |
fieldControllerFactory(LyFieldInfo fieldInfo,
boolean forceConsult)
Factory for constructing the field controller of a field info. |
LyConsultBehaviorInterface |
getConsultBehavior()
Accessor to controler behavior : shortcut to (LyConsultBehaviorInterface)getBehavior(). |
LyContext |
getControllerContext()
Gets the controller context. |
boolean |
isHidden(LyFieldInfo fieldInfo)
Accessor to the hidden status of a field in the form. |
void |
menuDemand(LyMenuDemand demand)
Invoked when an menu item notification is sent to this listener. |
void |
setHidden(LyFieldInfo fieldInfo,
boolean hidden)
Changes current field status to (non-)hidden. |
void |
setIdle(boolean idle)
Sets idle mode on this controller. |
void |
setLabel(LyFieldInfo fieldInfo,
LyInfoLabel label,
boolean labelSet)
Changes the label for the specified fieldinfo. |
void |
updateObjectFromCompositionRelation(LyRelationFieldInfo relationField)
Update object values. |
Methods inherited from class leon.control.LyController |
---|
activateViewDemand, demandPerformed, dragDropDemand, getApplication, getClassInfo, getComponent, getId, getImage, getImage, getImage, getImageFromPrefix, getImageFromPrefix, getImageFromPrefix, getName, getObjectId, getSession, getUserData, getView, getViewManager, helpDemand, hideView, isFreed, isIdle, selectionDemand, setBuilder, setBuilderClass, setLastModified, setName, setUserData, showError, showWarning, updateViewFromValues |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface leon.control.LyContextInterface |
---|
getContext, setContext |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyConsultController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList objects)
session
- current session associated to the controller. The controller automatically
registers on the specified session.parent
- parent controller (or null for 'root' controller). Controller hierarchy
indicates a child controller (for example a dialog created from a main view)action
- related action. If an action is specified, the controller uses action
parameters (action name, action specific XML view description ...)classInfo
- This parameter is not used. Kept from introspection compatibility. The
classInfo is always the classInfo of the specified objects.objects
- current list of objects being shown in the consultation form. One Object is
shown, but the user may navigate between the object list through the GUI.Method Detail |
---|
public LyFieldController fieldControllerFactory(LyFieldInfo fieldInfo, boolean forceConsult)
fieldControllerFactory
in class LyFormController
fieldInfo
- Field info fo which a controller is built.forceConsult
- true to force consult
public LyConsultBehaviorInterface getConsultBehavior()
LyAreaController.getBehavior()
public void updateObjectFromCompositionRelation(LyRelationFieldInfo relationField)
relationField
- The composition relation field.public void menuDemand(LyMenuDemand demand)
menuDemand
in class LyFormController
demand
- demand parameters sent by the view component.LyController.demandPerformed(leon.view.event.LyDemand)
public LyContext getControllerContext()
getControllerContext
in interface LyControllerContextInterface
LyControllerContextInterface.getControllerContext()
public void execRule(LyRule rule, boolean checked)
rule
- Rule to apply.checked
- True if the rule is checked, false if unchecked.public void setHidden(LyFieldInfo fieldInfo, boolean hidden)
fieldInfo
- the field which should be set hiddenhidden
- new fieldInfo visibility. (default is true)public boolean isHidden(LyFieldInfo fieldInfo)
fieldInfo
- the specified field
public void setIdle(boolean idle)
LyMultiAreaController
setIdle
in class LyMultiAreaController
idle
- the idle statuspublic void setLabel(LyFieldInfo fieldInfo, LyInfoLabel label, boolean labelSet)
fieldInfo
- the fieldInfolabel
- the new labellabelSet
- indicates if the label apply to set form
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |