LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control.form
Class LyCompositionArrayFieldSetController

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.LyCompositionArrayFieldSetController
All Implemented Interfaces:
LyGetSessionInterface, LyControllerContextInterface, LyFormResultInterface, LyGetArrayInterface, LyGuiListener, LyEvaluator, LyDemandListener

public class LyCompositionArrayFieldSetController
extends LyCompositionFieldSetController
implements LyGetArrayInterface

Field controller for a modification of an array of composition relation.

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
LyCompositionArrayFieldSetController(LySetController parent, LyArrayFieldInfo array, LyStructFieldInfo relation)
          Constructor.
 
Method Summary
 void actionDemand(LyActionDemand demand)
          Invoked when an action occurs.
 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.
 LyFormField getFormField()
          Accessor to the formField (View component) associated to the fieldInfo.
 void propagate(java.lang.Object value)
          Impact of a value change 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
cancel, clearViewCache, commit, control, endValidate, free, getAreaController, getFieldType, getFieldValue, invokeTransverseAction, notifyFormResult, reset, resetFromValue, restore, save, setEditable, setEnabled, startValidate
 
Methods inherited from class leon.control.form.LyFieldSetController
addTempFilePath, clear, 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, getImage, getInfoLabel, getInfoLabel, getLabel, getObject, getState, getViewController, hasMark, isIdle, menuDemand, setAreaNoScroll, 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
 
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

LyCompositionArrayFieldSetController

public LyCompositionArrayFieldSetController(LySetController parent,
                                            LyArrayFieldInfo array,
                                            LyStructFieldInfo relation)
Constructor.

Parameters:
parent - parent set controllert
array - array field
relation - relationfield
Method Detail

actionDemand

public void actionDemand(LyActionDemand demand)
Description copied from class: LyCompositionFieldSetController
Invoked when an action occurs. At this level, the implementation manages
DEMAND_VALIDATE demands. (demand.getType = LyActionDemand.TYPE_ACTION AND demand.getSource() = LyController.DEMAND_VALIDATE)
DEMAND_APPLY demands. (demand.getType = LyActionDemand.TYPE_ACTION AND demand.getSource() = LyController.DEMAND_APPLY)
Default action (double click)
Default action (double click)
VALUE_CHANGED demands. (demand.getType = LyActionDemand.TYPE_VALUE_CHANGED

Overrides:
actionDemand in class LyCompositionFieldSetController
Parameters:
demand - the action demand
See Also:
LyCompositionFieldSetController.actionDemand(leon.view.event.LyActionDemand)

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

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:
LyFieldSetController.setFieldValue(leon.data.LyValue, boolean)

(c) January 2013 - W4 S.A.

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