LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control.form
Class LyCreateOrSetController

java.lang.Object
  extended by leon.control.LyController
      extended by leon.control.LyAreaController
          extended by leon.control.LyMultiAreaController
              extended by leon.control.LyFormController
                  extended by leon.control.LyConsultController
                      extended by leon.control.LySetController
                          extended by leon.control.LyCreateController
                              extended by leon.control.form.LyCreateOrSetController
All Implemented Interfaces:
LyGetSessionInterface, LyContextInterface, LyControllerContextInterface, LyFormInterface, LyFormResultInterface, LyGetActionInterface, LySelectFileListenerInterface, LyTransverseInterface, LyAdvancedWorkSpaceListener, LyContextListener, LyGuiListener, LyWorkSpaceListener, LyGetClassInfoInterface, LyInfoListener, LyEvaluator, LyDemandListener, LySubmitTab, LyAnswerInterface, LyQuestionAnswerInterface

public class LyCreateOrSetController
extends LyCreateController

This class implements a set controller used by the LyEditTableController This class is for internal use only.

See Also:
LyEditTableController

Field Summary
static java.lang.String __VERSION
          File version
 
Fields inherited from class leon.control.LySetController
_valueChange
 
Fields inherited from class leon.control.LyFormController
DEMAND_APPLY, DEMAND_NEXT_OBJECT, DEMAND_NEXT_STEP, DEMAND_PREVIOUS_OBJECT, DEMAND_PREVIOUS_STEP, DEMAND_SAVE, DEMAND_SELECTION, DEMAND_VALIDATE, FORM_FIELD_SEP
 
Fields inherited from class leon.control.LyAreaController
DEFAULT_MENU_ITEM_IMAGE_SIZE, DEMAND_CANCEL, DEMAND_CLOSE, DEMAND_CREATE_CHART, DEMAND_DELETE_CHART, DEMAND_DELETE_OBJECTINFOS, DEMAND_DELETE_PREFERENCE, DEMAND_UPDATE_VIEW
 
Fields inherited from class leon.control.LyController
_nbControllers, _nextId, CONTROLLER_ID_SEP, DEFAULT_IMAGE_FORMAT, DEMAND_HELP, ID_SEP
 
Fields inherited from interface leon.control.LyFormInterface
STATUS_CANCEL, STATUS_IGNORE, STATUS_KO, STATUS_OK
 
Constructor Summary
LyCreateOrSetController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList objects)
          Constructor.
 
Method Summary
 LyAction getAction()
          Accessor to the action associated to this controller.
 boolean isCreation()
          Returns a boolean indicating if the action is or not a creation.
 boolean isIdle()
          Check idle status of the field controller.
 void setCreation(boolean creation)
          Internal use : sets if the action is or not a creation.
 boolean setObject(LyObject object)
          Sets current model for the creation.
 
Methods inherited from class leon.control.LyCreateController
checkIfModified, commit, contextEnded, control, endValidate, free, getBehaviorInterface, getLastCreatedObject, getModel, getObjectList, getParent, isCreateIfModified, objectRemoved, resetFieldInfoErrors, resetFromObject, setContext, setCreateIfModified, showError, startValidate, subFormsCommit, updateObject, validate
 
Methods inherited from class leon.control.LySetController
actionDemand, addTempFilePath, apply, cancel, cancelChanges, canClose, canFree, clear, clearViewCache, computeFieldValue, execRule, fieldControllerFactory, getControllerContext, getFields, getFieldValue, getFormSave, getSetBehavior, getState, getUnit, getValue, isApplied, isConsult, isDisplayed, isEditable, isEditable, isEnabled, isHidden, isOptional, isValid, needUpdate, notifyFormResult, objectChanged, questionAnswer, reset, restore, save, setContextInternal, setEditable, setEditable, setEnabled, setEnabled, setFastEditedField, setFieldValue, setFieldValue, setFieldValue, setHidden, setLabel, setObjectInternal, setOptional, setRelationParent, setValid, showError, subFormsCancel, update, update, updateValues, updateViewContent, updateViewFromValues, valueChanged
 
Methods inherited from class leon.control.LyConsultController
getConsultBehavior, menuDemand, setIdle, updateObjectFromCompositionRelation
 
Methods inherited from class leon.control.LyFormController
contains, findFormField, getAreaController, getClassInfo, getCompositionRelation, getContent, getDefaultFieldUnit, getEnvironment, getFieldController, getFieldMarks, getFieldValue, getFormField, getImage, getImage, getKeyValue, getObject, getSelection, getState, getTabs, isChangingObject, isComposition, isViewResizable, objectAdded, objectStateChanged, objectUserEvent, reset, resetFormContent, setActiveField, setCompositionRelation, setFieldMarks, setObjects, setState, workSpaceEventsGrouped
 
Methods inherited from class leon.control.LyMultiAreaController
addAreaController, addAreaControllerStack, getAreaController, getAreaController, getAreaControllersCount, getAreaControllerStack, getAreaControllerStackCount, getFinalAreaControllers, getLastModified, openSubAreaController, removeAreaController, removeAreaControllerStack, setAction, setContextClient, setViewController
 
Methods inherited from class leon.control.LyAreaController
completeMenuBar, completeMessages, free, getAreaStackController, getBehavior, getBuilder, getContext, getContextClient, getContextTitle, getDefaultAction, getFastEditionAction, getHelpFile, getImageTooltip, getInfoLabel, getInfoLabel, getLabel, getMenuItemImage, getName, getParameter, getParameter, getParameterMarks, getParent, getParentAreaController, getRefreshTime, getShortLabel, getTarget, getTitle, getViewController, getViewController, hasMark, hasNotMark, hasViewController, hideView, infoEvent, initialize, isInitialized, isOutlined, reset, selectFileDemand, setContext, setPreference, showView, showView, testParameter, toString, updateTitleBar
 
Methods inherited from class leon.control.LyController
activateViewDemand, demandPerformed, dragDropDemand, getApplication, getClassInfo, getComponent, getId, getImage, getImage, getImage, getImageFromPrefix, getImageFromPrefix, getImageFromPrefix, getName, getObjectId, getSession, getUserData, getView, getViewManager, helpDemand, hideView, isFreed, selectionDemand, setBuilder, setBuilderClass, setLastModified, setName, setUserData, showWarning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface leon.control.LyContextInterface
getContext
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
File version

See Also:
Constant Field Values
Constructor Detail

LyCreateOrSetController

public LyCreateOrSetController(LySession session,
                               LyController parent,
                               LyAction action,
                               LyClassInfo classInfo,
                               LyObjectList objects)
Constructor. Creation or modification of one object. ClassInfo parameter is ignored, kept for compatibility and introspection capabilities.

Parameters:
session - current session associated to the controller. The controller automatically registers on the specified session.
parent - parent controller (or null for 'root' controller).
action - related action. If an action is specified, the controller uses action parameters (action name, action specific XML view description ...)
classInfo - this parameter is kept for introspection and compatibility. not used.
objects - list of objects currently being modified.
Method Detail

setObject

public boolean setObject(LyObject object)
Sets current model for the creation.

Reset default values of the form.

Overrides:
setObject in class LyCreateController
Parameters:
object - new object being modified.
Returns:
true if the object change was successful, false otherwise.
See Also:
LySetController.questionAnswer(boolean, java.lang.Object)

isCreation

public boolean isCreation()
Returns a boolean indicating if the action is or not a creation.

Overrides:
isCreation in class LyCreateController
Returns:
true if in creation mode

setCreation

public void setCreation(boolean creation)
Internal use : sets if the action is or not a creation.

Parameters:
creation - the creation mode

getAction

public LyAction getAction()
Accessor to the action associated to this controller.

Specified by:
getAction in interface LyGetActionInterface
Overrides:
getAction in class LyAreaController
Returns:
The reference to associated action

isIdle

public boolean isIdle()
Check idle status of the field controller.

Specified by:
isIdle in interface LyGuiListener
Overrides:
isIdle in class LyController
Returns:
boolean indicating if the idle mode is on or off.

(c) January 2013 - W4 S.A.

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