LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control.form
Class LyEditTableChoiceFieldSetController

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.LyChoiceFieldSetController
                      extended by leon.control.form.LyEditTableChoiceFieldSetController
All Implemented Interfaces:
LyGetSessionInterface, LyControllerContextInterface, LyGuiListener, LyEvaluator, LyDemandListener

public class LyEditTableChoiceFieldSetController
extends LyChoiceFieldSetController

Field controler for a modification of a LyChoiceFieldInfo in an editable table.

See Also:
LyEditTableSetController

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
LyEditTableChoiceFieldSetController(LyEditTableSetController parent, LyChoiceFieldInfo fieldInfo)
          Constructor.
 
Method Summary
 LyBuilder getDefaultBuilder()
          Factory of the default builder for a controller.
 LyFormField getFormField(LyFieldInfo fieldInfo)
          Accessor to the formField (View component) associated to the fieldInfo.
 boolean isEnabled()
          Accessor to the enabled/disabled status for a field in the form.
 boolean isOptional()
          Accessor to the optional status for a field in the form.
 void setEditable(boolean editable)
          Changes current field status to (non-)editable.
 void setEnabled(boolean enabled)
          Changes current field status to (non-)enabled.
 
Methods inherited from class leon.control.form.LyChoiceFieldSetController
getFieldValue, propagate, setOptional
 
Methods inherited from class leon.control.form.LyFieldSetController
actionDemand, addTempFilePath, cancel, checkIfModified, clear, commit, completeValue, control, endValidate, getControllerContext, getFieldValue, getFinalValue, getLastValue, getModel, getParentFieldController, getSetController, getTransverseActions, getUnit, getValue, isCreation, isEditable, reset, resetFromValue, restore, save, setFieldValue, setHidden, setInternal, startValidate, unitChanged, update, updateFieldItem, updateViewContent, updateViewFromValues
 
Methods inherited from class leon.control.form.LyFieldConsultController
isHidden, setLabel
 
Methods inherited from class leon.control.form.LyFieldController
clearViewCache, free, getAction, getAreaController, getBehavior, getClassInfo, getComponent, getDefaultFieldUnit, getDefaultFieldUnit, getEnvironment, getFieldController, getFieldInfo, getFormController, 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
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
File version

See Also:
Constant Field Values
Constructor Detail

LyEditTableChoiceFieldSetController

public LyEditTableChoiceFieldSetController(LyEditTableSetController parent,
                                           LyChoiceFieldInfo fieldInfo)
Constructor.

Parameters:
parent - parent controller
fieldInfo - choice field handled by this controller
Method Detail

getDefaultBuilder

public LyBuilder getDefaultBuilder()
Description copied from class: LyController
Factory of the default builder for a controller. The application should never invoke this method directly (internal use only : use getBuilder instead). This method is specialized in subclasses of LyController to return a valid builder instance.

Overrides:
getDefaultBuilder in class LyFieldSetController
Returns:
the builder which creates the XML description of the view
See Also:
LyFieldSetController.getDefaultBuilder()

getFormField

public LyFormField getFormField(LyFieldInfo fieldInfo)
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
Parameters:
fieldInfo - the fieldInfo which is associated to the view component.
Returns:
the formField corresponding to the given fieldInfo

isOptional

public boolean isOptional()
Accessor to the optional status for a field in the form.

Overrides:
isOptional in class LyFieldSetController
Returns:
current field status

setEditable

public void setEditable(boolean editable)
Changes current field status to (non-)editable. If the field is not editable, the value is read-only but however submited with all other values. A disabled field is not submited with all other values and is just ignored.

Overrides:
setEditable in class LyFieldSetController
Parameters:
editable - new fieldInfo status. (default is true or obtained from the view description)

setEnabled

public void setEnabled(boolean enabled)
Changes current field status to (non-)enabled. If the field is not editable, and not submited with all other values.

Overrides:
setEnabled in class LyFieldSetController
Parameters:
enabled - new fieldInfo status. (default is true or obtained from the view description)

isEnabled

public boolean isEnabled()
Accessor to the enabled/disabled status for a field in the form.

Overrides:
isEnabled in class LyFieldSetController
Returns:
current field status

(c) January 2013 - W4 S.A.

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