LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control.form
Class LyMultiCompositionArrayFieldSetController

java.lang.Object
  extended by leon.control.LyController
      extended by leon.control.form.LyFieldController
          extended by leon.control.form.LyFieldConsultController
              extended by leon.control.form.LyFieldSetController
                  extended by leon.control.form.LyCompositionFieldSetController
                      extended by leon.control.form.LyMultiCompositionFieldSetController
                          extended by 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
 
Fields inherited from class leon.control.form.LyFieldSetController
STANDARD_ARRAY_TOOL, STANDARD_CLASSINFO, TRANSVERSE_ACTION_SEP
 
Fields inherited from class leon.control.form.LyFieldController
FORM_FIELD_SEP, OLD_FORM_FIELD_SEP
 
Fields inherited from class leon.control.LyController
_nbControllers, _nextId, CONTROLLER_ID_SEP, DEFAULT_IMAGE_FORMAT, DEMAND_HELP, ID_SEP
 
Constructor Summary
LyMultiCompositionArrayFieldSetController(LySetController parent, LyArrayFieldInfo array, LyRelationFieldInfo relation)
          Constructor.
 
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.LyMultiCompositionFieldSetController
cancel, clear, clearViewCache, commit, control, free, getFieldType, restore, save
 
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.LyFieldConsultController
isHidden, setLabel
 
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
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
File version

See Also:
Constant Field Values
Constructor Detail

LyMultiCompositionArrayFieldSetController

public LyMultiCompositionArrayFieldSetController(LySetController parent,
                                                 LyArrayFieldInfo array,
                                                 LyRelationFieldInfo relation)
Constructor.

Parameters:
parent - parent controller
array - array field handled by this controller
relation - relation field of the array
Method Detail

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()

(c) January 2013 - W4 S.A.

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