LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control.form
Class LyCompositionArrayFieldConsultController

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.LyCompositionFieldConsultController
                  extended by leon.control.form.LyMultiCompositionFieldConsultController
                      extended by 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
 
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
LyCompositionArrayFieldConsultController(LyFormController parent, LyArrayFieldInfo array, LyRelationFieldInfo relation)
          Constructor.
 
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.LyMultiCompositionFieldConsultController
clearViewCache, free, getFieldType
 
Methods inherited from class leon.control.form.LyCompositionFieldConsultController
getAreaController
 
Methods inherited from class leon.control.form.LyFieldConsultController
getDefaultBuilder, getFieldValue, getTransverseActions, isHidden, propagate, setHidden, setLabel, update
 
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
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
File version

See Also:
Constant Field Values
Constructor Detail

LyCompositionArrayFieldConsultController

public LyCompositionArrayFieldConsultController(LyFormController parent,
                                                LyArrayFieldInfo array,
                                                LyRelationFieldInfo relation)
Constructor.

Parameters:
parent - parent form controller
array - array field
relation - relation field
Method Detail

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.

(c) January 2013 - W4 S.A.

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