LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control.form
Class LyDateFieldSetController

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

public class LyDateFieldSetController
extends LyFieldSetController

Default field controller for a modification.

See Also:
LySetController

Field Summary
static java.lang.String __VERSION
          File version
static java.lang.String DATE_TOOL
          Name of the tranverse date tool.
 
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
LyDateFieldSetController(LySetController parent, LyFieldInfo fieldInfo)
          Constructor.
 
Method Summary
 void actionDemand(LyActionDemand demand)
          Invoked when an action occurs.
 LyValue getFieldValue()
          Extract current value for the specified fieldInfo in the form.
 LyValue getFieldValue(java.lang.String timeZone)
           
 void setEditable(boolean editable)
          Changes current field status to (non-)editable.
 void unitChanged(java.lang.String newTimeZone, java.lang.String oldTimeZone)
          Internal method for propagating a unit change.
 
Methods inherited from class leon.control.form.LyFieldSetController
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, setEnabled, setFieldValue, setHidden, setInternal, setOptional, startValidate, update, updateFieldItem, updateViewContent, updateViewFromValues
 
Methods inherited from class leon.control.form.LyFieldConsultController
isHidden, propagate, setLabel
 
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
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
File version

See Also:
Constant Field Values

DATE_TOOL

public static final java.lang.String DATE_TOOL
Name of the tranverse date tool.

See Also:
Constant Field Values
Constructor Detail

LyDateFieldSetController

public LyDateFieldSetController(LySetController parent,
                                LyFieldInfo fieldInfo)
Constructor.

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

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 LyFieldSetController
Parameters:
demand - the action demand
See Also:
LyController.demandPerformed(leon.view.event.LyDemand)

setEditable

public void setEditable(boolean editable)
Description copied from class: LyFieldSetController
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)
See Also:
LyFieldSetController.setEditable(boolean)

unitChanged

public void unitChanged(java.lang.String newTimeZone,
                        java.lang.String oldTimeZone)
Internal method for propagating a unit change. This methods is called when the field unit has been changed by the user.

The LySetController additionaly impact the view using the setValid method.

Overrides:
unitChanged in class LyFieldSetController
Parameters:
newTimeZone - The new fieldinfo unit.
oldTimeZone - The old fieldinfo unit.

getFieldValue

public LyValue getFieldValue(java.lang.String timeZone)

getFieldValue

public LyValue getFieldValue()
Extract current value for the specified fieldInfo in the form.

Overrides:
getFieldValue in class LyFieldSetController
Returns:
current value, or null if not found or field is disabled.

(c) January 2013 - W4 S.A.

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