leon.control.form
Class LyCreateOrSetController
java.lang.Object
leon.control.LyController
leon.control.LyAreaController
leon.control.LyMultiAreaController
leon.control.LyFormController
leon.control.LyConsultController
leon.control.LySetController
leon.control.LyCreateController
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 |
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.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 |
__VERSION
public static final java.lang.String __VERSION
- File version
- See Also:
- Constant Field Values
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.
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.
Website: W4 S.A., contact us: support@w4global.com