leon.control.form
Class LyChoiceFieldSetController
java.lang.Object
leon.control.LyController
leon.control.form.LyFieldController
leon.control.form.LyFieldConsultController
leon.control.form.LyFieldSetController
leon.control.form.LyChoiceFieldSetController
- All Implemented Interfaces:
- LyGetSessionInterface, LyControllerContextInterface, LyGuiListener, LyEvaluator, LyDemandListener
- Direct Known Subclasses:
- LyEditTableChoiceFieldSetController
public class LyChoiceFieldSetController
- extends LyFieldSetController
Field controller for modification of LyChoiceFieldInfo.
- See Also:
LySetController
Field Summary |
static java.lang.String |
__VERSION
File version |
Method Summary |
LyValue |
getFieldValue(LyUnit unit)
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 |
setOptional(boolean optional)
Changes current field status to (non-)optional. |
Methods inherited from class leon.control.form.LyFieldSetController |
actionDemand, addTempFilePath, cancel, checkIfModified, clear, commit, completeValue, control, endValidate, getControllerContext, getDefaultBuilder, getFieldValue, getFinalValue, getLastValue, getModel, getParentFieldController, getSetController, getTransverseActions, getUnit, getValue, isCreation, isEditable, isEnabled, isOptional, reset, resetFromValue, restore, save, setEditable, setEnabled, setFieldValue, setHidden, setInternal, startValidate, unitChanged, update, updateFieldItem, updateViewContent, updateViewFromValues |
Methods inherited from class leon.control.form.LyFieldController |
clearViewCache, free, getAction, getAreaController, getBehavior, getClassInfo, getComponent, getDefaultFieldUnit, getDefaultFieldUnit, getEnvironment, getFieldController, getFieldInfo, getFormController, getFormField, getFormField, getImage, getInfoLabel, getInfoLabel, getLabel, getObject, getState, getViewController, hasMark, invokeTransverseAction, 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
LyChoiceFieldSetController
public LyChoiceFieldSetController(LySetController parent,
LyChoiceFieldInfo fieldInfo)
- Constructor.
- Parameters:
parent
- parent set controllerfieldInfo
- choice field handled by this controller
getFieldValue
public LyValue getFieldValue(LyUnit unit)
- Extract current value for the specified fieldInfo in the form.
- Overrides:
getFieldValue
in class LyFieldSetController
- Parameters:
unit
- Unit of the value.
- 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. The method invokes LyClassBehavior.propagate which
may be used to implement specific impact on a value changed. This method is for internal use,
application should use setFieldValue instead.
- Overrides:
propagate
in class LyFieldConsultController
- Parameters:
value
- new Value of the field.- See Also:
LyClassBehavior.propagate(leon.control.LySetController, leon.data.LyFieldInfoValue)
setOptional
public void setOptional(boolean optional)
- Changes current field status to (non-)optional. An optional field may accêpt an empty (null)
value and its label is not shown as bold.
- Overrides:
setOptional
in class LyFieldSetController
- Parameters:
optional
- new fieldInfo status. (default is from the view description)
Website: W4 S.A., contact us: support@w4global.com