leon.control.form
Class LyRelationAsLinkFieldSetController
java.lang.Object
leon.control.LyController
leon.control.form.LyFieldController
leon.control.form.LyFieldConsultController
leon.control.form.LyFieldSetController
leon.control.form.LyRelationFieldSetController
leon.control.form.LyRelationAsLinkFieldSetController
- All Implemented Interfaces:
- LyGetSessionInterface, LyControllerContextInterface, LyFormResultInterface, LyGuiListener, LyEvaluator, LyDemandListener
public class LyRelationAsLinkFieldSetController
- extends LyRelationFieldSetController
- implements LyFormResultInterface
Field controller for modification of a simple relation.
- See Also:
LySetController
Field Summary |
static java.lang.String |
__VERSION
File version |
Methods inherited from class leon.control.form.LyFieldSetController |
addTempFilePath, cancel, checkIfModified, clear, commit, completeValue, control, endValidate, getControllerContext, getDefaultBuilder, getFieldValue, getFieldValue, getFinalValue, getLastValue, getModel, getParentFieldController, getSetController, getTransverseActions, getUnit, getValue, isCreation, isEditable, isEnabled, isOptional, reset, resetFromValue, restore, save, setEnabled, setFieldValue, setHidden, setInternal, setOptional, startValidate, unitChanged, update, updateFieldItem, updateViewContent, updateViewFromValues |
Methods inherited from class leon.control.form.LyFieldController |
getAction, getAreaController, getBehavior, getClassInfo, getComponent, getDefaultFieldUnit, getDefaultFieldUnit, getEnvironment, getFieldController, getFieldInfo, getFormController, getFormField, 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 |
__VERSION
public static final java.lang.String __VERSION
- File version
- See Also:
- Constant Field Values
LyRelationAsLinkFieldSetController
public LyRelationAsLinkFieldSetController(LySetController parent,
LyRelationFieldInfo fieldInfo)
- Constructor.
- Parameters:
parent
- the parent controllerfieldInfo
- the relation field handled by this controller
updateValue
public void updateValue(java.lang.Object newValue,
java.lang.Object oldValue)
- Update the value of a fieldInfo shown in the view. The method is overriden for relation
fieldInfo (updateRelation) and file fieldInfo (updateFile)
- 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.
notifyFormResult
public void notifyFormResult(LyObject object,
LyRelationFieldInfo relationField)
- Internal use. When an object is created in a popup creation form for a relation, the child
controller invokes this method to set the newly created object as the current value of the
relation (if a new object is created we automatically select this value). This method is
never used by the application : use setFieldValue instead
- Specified by:
notifyFormResult
in interface LyFormResultInterface
- Overrides:
notifyFormResult
in class LyRelationFieldSetController
- Parameters:
object
- newly created object. The new value of the relation fieldInfo.relationField
- the relation
getStringValue
public java.lang.String getStringValue()
- Extract current value for the specified fieldInfo in the form.
- Overrides:
getStringValue
in class LyRelationFieldSetController
- Returns:
- current value, or null if not found or field is disabled.
actionDemand
public void actionDemand(LyActionDemand demand)
- 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 LyRelationFieldSetController
- Parameters:
demand
- the action demand- See Also:
LyController.demandPerformed(leon.view.event.LyDemand)
Website: W4 S.A., contact us: support@w4global.com