leon.control.form
Class LyCompositionArrayFieldConsultController
java.lang.Object
leon.control.LyController
leon.control.form.LyFieldController
leon.control.form.LyFieldConsultController
leon.control.form.LyCompositionFieldConsultController
leon.control.form.LyMultiCompositionFieldConsultController
leon.control.form.LyCompositionArrayFieldConsultController
- All Implemented Interfaces:
- LyGetSessionInterface, LyGetArrayInterface, LyGuiListener, LyEvaluator, LyDemandListener
public class LyCompositionArrayFieldConsultController
- extends LyMultiCompositionFieldConsultController
- implements LyGetArrayInterface
Field controller for consultation of an array of composition relation.
- See Also:
LyConsultController
Field Summary |
static java.lang.String |
__VERSION
File version |
Method Summary |
LyArrayFieldInfo |
getArray()
Get the array fieldInfo associated to the controller. |
LyFormField |
getFormField()
Accessor to the formField (View component) associated to the fieldInfo. |
void |
updateFieldItem(java.lang.Object newValue,
java.lang.Object oldValue,
boolean propagate)
Update the value of a fieldInfo shown in the view. |
void |
updateValue(java.lang.Object newValue,
java.lang.Object oldValue)
Internal use : update the value of a fieldInfo in the form. |
Methods inherited from class leon.control.form.LyFieldController |
actionDemand, getAction, getBehavior, getClassInfo, getComponent, getDefaultFieldUnit, getDefaultFieldUnit, getEnvironment, getFieldController, getFieldInfo, getFormController, getFormField, getImage, getInfoLabel, getInfoLabel, getLabel, getObject, getState, getViewController, hasMark, invokeTransverseAction, isIdle, menuDemand, resetFromValue, restore, save, setAreaNoScroll, setFieldValue, setFieldValue, setFormField, setState, toString |
Methods inherited from class leon.control.LyController |
activateViewDemand, demandPerformed, dragDropDemand, getApplication, getBehaviorInterface, getBuilder, getClassInfo, getId, getImage, getImage, getImage, getImageFromPrefix, getImageFromPrefix, getImageFromPrefix, getKeyValue, getLastModified, getName, getObjectId, getParent, getSession, getUserData, getView, getViewManager, hasViewController, helpDemand, hideView, hideView, isFreed, selectionDemand, setBuilder, setBuilderClass, setIdle, setLastModified, setName, setUserData, showError, showError, showView, showWarning, updateViewFromValues |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
__VERSION
public static final java.lang.String __VERSION
- File version
- See Also:
- Constant Field Values
LyCompositionArrayFieldConsultController
public LyCompositionArrayFieldConsultController(LyFormController parent,
LyArrayFieldInfo array,
LyRelationFieldInfo relation)
- Constructor.
- Parameters:
parent
- parent form controllerarray
- array fieldrelation
- relation field
getFormField
public LyFormField getFormField()
- Accessor to the formField (View component) associated to the fieldInfo. The formField
contains a caption (label of the fieldInfo), a fieldItem (value of the fieldInfo) and the
constraints definition (how the component are shown in the view).
- Overrides:
getFormField
in class LyFieldController
- Returns:
- the formField corresponding to the given fieldInfo
updateFieldItem
public void updateFieldItem(java.lang.Object newValue,
java.lang.Object oldValue,
boolean propagate)
- Description copied from class:
LyFieldConsultController
- Update the value of a fieldInfo shown in the view. The method is overriden for relation
fieldInfo (updateRelation) and file fieldInfo (updateFile)
- Overrides:
updateFieldItem
in class LyFieldConsultController
- Parameters:
newValue
- the new value of the field.oldValue
- former value of the field,or null if unknown. This parameter is not used
within generic code.propagate
- Indicates whether the change is notified (propagated) to other fields or
not. Parameter not used at this level- See Also:
LyFieldConsultController.updateFieldItem(java.lang.Object, java.lang.Object, boolean)
updateValue
public void updateValue(java.lang.Object newValue,
java.lang.Object oldValue)
- Description copied from class:
LyMultiCompositionFieldConsultController
- Internal use : update the value of a fieldInfo in the form.
- Parameters:
newValue
- the new value of the field. This value may be null, a LyValue instance or the
internal value associated to thge fieldInfo. See LyValue.getValue()oldValue
- the latest value of the field. This value may be null, a LyValue instance or
the internal value associated to thge fieldInfo. See LyValue.getValue()- See Also:
LyMultiCompositionFieldConsultController.updateValue(java.lang.Object, java.lang.Object)
getArray
public LyArrayFieldInfo getArray()
- Get the array fieldInfo associated to the controller.
- Specified by:
getArray
in interface LyGetArrayInterface
- Returns:
- The array fieldInfo associated to the controller.
Website: W4 S.A., contact us: support@w4global.com