leon.control.form
Class LyMultiCompositionArrayFieldSetController
java.lang.Object
leon.control.LyController
leon.control.form.LyFieldController
leon.control.form.LyFieldConsultController
leon.control.form.LyFieldSetController
leon.control.form.LyCompositionFieldSetController
leon.control.form.LyMultiCompositionFieldSetController
leon.control.form.LyMultiCompositionArrayFieldSetController
- All Implemented Interfaces:
- LyGetSessionInterface, LyControllerContextInterface, LyFormResultInterface, LyGetArrayInterface, LyGuiListener, LyEvaluator, LyDemandListener
public class LyMultiCompositionArrayFieldSetController
- extends LyMultiCompositionFieldSetController
- implements LyGetArrayInterface
Field controller for a modification of an array of composition relation in edit table mode.
- See Also:
LyFieldSetController
Field Summary |
static java.lang.String |
__VERSION
File version |
Method Summary |
boolean |
checkIfModified()
Checks if the value for the fieldInfo has been modified. |
LyArrayFieldInfo |
getArray()
Get the array fieldInfo associated to the controller. |
LyValue |
getFieldValue()
Extract current value for the specified fieldInfo in the form. |
void |
propagate(java.lang.Object value)
Impact of a value change of a fieldInfo. |
void |
setFieldValue(java.lang.Object value,
boolean propagate)
Sets the value of a fieldInfo. |
void |
updateFieldItem(java.lang.Object newValue,
java.lang.Object oldValue,
boolean propagate)
Internal use : update the value of a fieldInfo in the form. |
Methods inherited from class leon.control.form.LyCompositionFieldSetController |
actionDemand, endValidate, getAreaController, getFieldValue, invokeTransverseAction, notifyFormResult, reset, resetFromValue, setEditable, setEnabled, startValidate |
Methods inherited from class leon.control.form.LyFieldSetController |
addTempFilePath, completeValue, getControllerContext, getDefaultBuilder, getFinalValue, getLastValue, getModel, getParentFieldController, getSetController, getTransverseActions, getUnit, getValue, isCreation, isEditable, isEnabled, isOptional, setFieldValue, setHidden, setInternal, setOptional, unitChanged, update, updateViewContent, updateViewFromValues |
Methods inherited from class leon.control.form.LyFieldController |
getAction, getBehavior, getClassInfo, getComponent, getDefaultFieldUnit, getDefaultFieldUnit, getEnvironment, getFieldController, getFieldInfo, getFormController, getFormField, getFormField, getImage, getInfoLabel, getInfoLabel, getLabel, getObject, getState, getViewController, hasMark, isIdle, menuDemand, setAreaNoScroll, 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 |
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
LyMultiCompositionArrayFieldSetController
public LyMultiCompositionArrayFieldSetController(LySetController parent,
LyArrayFieldInfo array,
LyRelationFieldInfo relation)
- Constructor.
- Parameters:
parent
- parent controllerarray
- array field handled by this controllerrelation
- relation field of the array
getFieldValue
public LyValue getFieldValue()
- Extract current value for the specified fieldInfo in the form.
- Overrides:
getFieldValue
in class LyCompositionFieldSetController
- Returns:
- current value, or null if not found or field is disabled.
propagate
public void propagate(java.lang.Object value)
- Impact of a value change of a fieldInfo.
- Overrides:
propagate
in class LyFieldConsultController
- Parameters:
value
- new Value of the field.- See Also:
LyClassBehavior.propagate(leon.control.LySetController, leon.data.LyFieldInfoValue)
checkIfModified
public boolean checkIfModified()
- Checks if the value for the fieldInfo has been modified.
- Overrides:
checkIfModified
in class LyCompositionFieldSetController
- Returns:
- true if the value has been modified, false otherwise.
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.
updateFieldItem
public void updateFieldItem(java.lang.Object newValue,
java.lang.Object oldValue,
boolean propagate)
- Internal use : update the value of a fieldInfo in the form. Application should use
setFieldValue instead. For relation fieldInfo, this method invokes updateRelation
(specialization). For choice fieldInfo, this method invokes updateChoice (specialization).
- Overrides:
updateFieldItem
in class LyFieldSetController
- 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()propagate
- Indicates whether the change is notified (propagated) to other fields or
not. This is useless if you reset all fields for instance.- See Also:
setFieldValue(java.lang.Object, boolean)
setFieldValue
public void setFieldValue(java.lang.Object value,
boolean propagate)
- Sets the value of a fieldInfo.
- Overrides:
setFieldValue
in class LyFieldController
- Parameters:
value
- the new value of the field. This value may be null, a LyValue instance or
the internal value associated to the fieldInfo. See LyValue.getValue()propagate
- Indicates whether the change is notified (propagated) to other fields or
not. This is useless if you reset all fields for instance.- See Also:
getFieldValue()
,
LyValue.getValue()
Website: W4 S.A., contact us: support@w4global.com