|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.control.LyController
leon.control.form.LyFieldController
leon.control.form.LyFieldConsultController
leon.control.form.LyFieldSetController
leon.control.form.LyCompositionFieldUnitSetController
public class LyCompositionFieldUnitSetController
Field controller for a modification of a simple composition relation.
LySetController
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 | |
---|---|
LyCompositionFieldUnitSetController(LySetController parent,
LyRelationFieldInfo fieldInfo)
Constructor. |
Method Summary | |
---|---|
void |
actionDemand(LyActionDemand demand)
Invoked when an action occurs. |
void |
cancel()
Method called when editions is cancelled. |
boolean |
checkIfModified()
Checks if the value for the fieldInfo has been modified. |
void |
clearViewCache()
Clear view cache. |
void |
commit()
Method called when all modifications are committed. |
short |
control()
Controls current edition. |
short |
endValidate()
Method called at the end of the parent form validation to complete the edition. |
void |
free()
Free this controller. |
LyAreaController |
getAreaController()
Gets the specific areaController for the given field info. |
LyClassInfo |
getFieldType()
Gets the classInfo of the object pointed by the relation in the current form. |
LyValue |
getFieldValue()
Extract current value for the specified fieldInfo in the form. |
LyValue |
getFieldValue(LyUnit unit)
Extract current value for the specified fieldInfo in the form. |
LyUnit |
getUnit()
Get current unit for the specified fieldInfo in the form. |
void |
invokeTransverseAction(LyAction action,
LyClassInfo classInfo)
Internal method to invoke on a relation a transverse action for a given classInfo. |
void |
notifyFormResult(LyObject object,
LyRelationFieldInfo relation)
Internal use. |
boolean |
objectAdded(LyWorkSpaceEvent event)
Called when an object is added in the workspace. |
boolean |
objectChanged(LyWorkSpaceEvent event)
Called when an object has changed in the workspace. |
boolean |
objectRemoved(LyWorkSpaceEvent event)
Called when an object is removed from the workspace. |
void |
setEditable(boolean editable)
Changes current field status to (non-)editable. |
void |
setEnabled(boolean enabled)
Changes current field status to (non-)enabled. |
void |
setFormField(LyFormField formField)
Sets formField. |
short |
startValidate()
Method called at the begining of the parent form validation to check if everything is ok before completing the edition. |
void |
unitChanged(java.lang.String newUnitId,
java.lang.String oldUnitId)
Internal method for propagating a unit change. |
Methods inherited from class leon.control.form.LyFieldSetController |
---|
addTempFilePath, clear, completeValue, getControllerContext, getDefaultBuilder, getFinalValue, getLastValue, getModel, getParentFieldController, getSetController, getTransverseActions, getValue, isCreation, isEditable, isEnabled, isOptional, reset, resetFromValue, restore, save, setFieldValue, setHidden, setInternal, setOptional, update, updateFieldItem, updateViewContent, updateViewFromValues |
Methods inherited from class leon.control.form.LyFieldConsultController |
---|
isHidden, propagate, setLabel |
Methods inherited from class leon.control.form.LyFieldController |
---|
getAction, getBehavior, getClassInfo, getComponent, getDefaultFieldUnit, getDefaultFieldUnit, getEnvironment, getFieldController, getFieldInfo, getFormController, getFormField, getFormField, getImage, getInfoLabel, getInfoLabel, getLabel, getObject, getState, getViewController, hasMark, isIdle, menuDemand, setAreaNoScroll, setFieldValue, 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 |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyCompositionFieldUnitSetController(LySetController parent, LyRelationFieldInfo fieldInfo)
parent
- parent set controllerfieldInfo
- relation field handled by this controllerMethod Detail |
---|
public void free()
free
in class LyFieldController
public void clearViewCache()
clearViewCache
in class LyFieldController
public void actionDemand(LyActionDemand demand)
actionDemand
in class LyFieldSetController
demand
- the action demandLyController.demandPerformed(leon.view.event.LyDemand)
public LyValue getFieldValue(LyUnit unit)
getFieldValue
in class LyFieldSetController
unit
- Unit of the value.
public LyValue getFieldValue()
getFieldValue
in class LyFieldSetController
public short startValidate()
startValidate
in class LyFieldSetController
LyFormInterface
public short endValidate()
endValidate
in class LyFieldSetController
LyFormInterface
public void setFormField(LyFormField formField)
setFormField
in class LyFieldController
formField
- the form fieldpublic void unitChanged(java.lang.String newUnitId, java.lang.String oldUnitId)
The LySetController additionaly impact the view using the setValid method.
unitChanged
in class LyFieldSetController
newUnitId
- The new fieldinfo unit.oldUnitId
- The old fieldinfo unit.public LyUnit getUnit()
getUnit
in class LyFieldSetController
public void invokeTransverseAction(LyAction action, LyClassInfo classInfo)
invokeTransverseAction
in class LyFieldController
action
- Transverse action.classInfo
- Class info on which the action is applied.public void notifyFormResult(LyObject object, LyRelationFieldInfo relation)
notifyFormResult
in interface LyFormResultInterface
object
- newly created object. The new value of the relation fieldInfo.relation
- the relationpublic LyAreaController getAreaController()
getAreaController
in class LyFieldController
public LyClassInfo getFieldType()
public void setEditable(boolean editable)
setEditable
in class LyFieldSetController
editable
- new fieldInfo status. (default is true or obtained from the view
description)public void setEnabled(boolean enabled)
setEnabled
in class LyFieldSetController
enabled
- new fieldInfo status. (default is true or obtained from the view
description)public void commit()
commit
in class LyFieldSetController
public void cancel()
cancel
in class LyFieldSetController
public boolean checkIfModified()
checkIfModified
in class LyFieldSetController
public boolean objectAdded(LyWorkSpaceEvent event)
objectAdded
in interface LyWorkSpaceListener
event
- Event notifying object add.
public boolean objectRemoved(LyWorkSpaceEvent event)
objectRemoved
in interface LyWorkSpaceListener
event
- Event notifying object remove.
public boolean objectChanged(LyWorkSpaceEvent event)
Note that object position may also change if one of the modified fields is one of the fields specified in the list sort.
objectChanged
in interface LyWorkSpaceListener
event
- Event notifying object change.
public short control()
control
in class LyFieldSetController
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |