|
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.LyArrayFieldSetController
public class LyArrayFieldSetController
Field controller for modification of LyArrayFieldInfo.
LySetController
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
static java.lang.String |
MOVE_DOWN_TOOL
Name of the tranverse tool for moving down items in table. |
static java.lang.String |
MOVE_UP_TOOL
Name of the tranverse tool for moving up items in table. |
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 | |
---|---|
LyArrayFieldSetController(LySetController parent,
LyArrayFieldInfo fieldInfo)
Constructor. |
Method Summary | |
---|---|
void |
actionDemand(LyActionDemand demand)
Invoked when an action occurs. |
void |
cancel()
Method called when editions is cancelled. |
void |
clearViewCache()
Clear view cache. |
void |
commit()
Method called when all modifications are committed. |
short |
control()
Method called for controlling current edition. |
short |
endValidate()
Method called at the end of the parent form validation to complete the edition. |
void |
free()
Free this field controller. |
LyFieldController |
getFieldController(int index)
Get the field controller at the given index. |
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. |
void |
notifyFormResult(LyObject object,
LyRelationFieldInfo relation)
Notify object creation to parent. |
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. |
boolean |
objectStateChanged(LyAdvancedWorkSpaceEvent event)
Called when an object state is changed. |
boolean |
objectUserEvent(LyAdvancedWorkSpaceEvent event)
Called when an object user event occured. |
void |
resetFromValue(java.lang.Object value,
boolean freeOldValue,
boolean createNewValue)
Sets the field content from the specified value Any value modified by the user is the form is lost. |
void |
selectionDemand(LySelectionDemand demand)
Invoked when an selection notification is sent to this listener. |
void |
setEditable(boolean editable)
Changes current field status to (non-)editable. |
void |
setEnabled(boolean enabled)
Changes current field status to (non-)enabled. |
void |
setEnableInnerTool(boolean status)
Change the enable/disable status of the update tool. |
short |
startValidate()
Method called at the begining of the parent form validation to check if everything is ok before completing the edition. |
boolean |
workSpaceEventsGrouped(java.util.ArrayList<LyWorkSpaceEvent> events)
Called when grouped events are sent. |
Methods inherited from class leon.control.form.LyFieldSetController |
---|
addTempFilePath, checkIfModified, clear, completeValue, getControllerContext, getDefaultBuilder, getFinalValue, getLastValue, getModel, getParentFieldController, getSetController, getTransverseActions, getUnit, getValue, isCreation, isEditable, isEnabled, isOptional, reset, restore, save, setFieldValue, setHidden, setInternal, setOptional, unitChanged, update, updateFieldItem, updateViewContent, updateViewFromValues |
Methods inherited from class leon.control.form.LyFieldConsultController |
---|
isHidden, propagate, setLabel |
Methods inherited from class leon.control.form.LyFieldController |
---|
getAction, getAreaController, getBehavior, getClassInfo, getComponent, getDefaultFieldUnit, getDefaultFieldUnit, getEnvironment, 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, 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
public static final java.lang.String MOVE_UP_TOOL
public static final java.lang.String MOVE_DOWN_TOOL
Constructor Detail |
---|
public LyArrayFieldSetController(LySetController parent, LyArrayFieldInfo fieldInfo)
parent
- the parent set controllerfieldInfo
- array field handled by this controllerMethod Detail |
---|
public void free()
free
in class LyFieldController
public void clearViewCache()
clearViewCache
in class LyFieldController
public LyFieldController getFieldController(int index)
LyFieldController
getFieldController
in class LyFieldController
index
- an index
LyFieldController.getFieldController(int)
public void actionDemand(LyActionDemand demand)
actionDemand
in class LyFieldSetController
demand
- the action demandLyController.demandPerformed(leon.view.event.LyDemand)
public void selectionDemand(LySelectionDemand demand)
This method is called by demandPerformed and may be overriden in subclasses.
Default implementation makes nothing.
selectionDemand
in class LyController
demand
- demand parameters sent by the view component.LyController.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 void setEnableInnerTool(boolean status)
status
- new status of the toolpublic void setEditable(boolean editable)
setEditable
in class LyFieldSetController
editable
- new fieldInfo status.public void setEnabled(boolean enabled)
setEnabled
in class LyFieldSetController
enabled
- new fieldInfo status.public short startValidate()
startValidate
in class LyFieldSetController
LyFormInterface
public short endValidate()
endValidate
in class LyFieldSetController
LyFormInterface
public void commit()
commit
in class LyFieldSetController
public void cancel()
cancel
in class LyFieldSetController
public short control()
control
in class LyFieldSetController
LyFormInterface
public void resetFromValue(java.lang.Object value, boolean freeOldValue, boolean createNewValue)
resetFromValue
in class LyFieldSetController
value
- new value to set in the field.freeOldValue
- indicates if the old value should be freed (deleted) when it is an
objectcreateNewValue
- indicates if a new empty value should created when object is null and
when the value is an objectpublic void notifyFormResult(LyObject object, LyRelationFieldInfo relation)
notifyFormResult
in interface LyFormResultInterface
object
- Object created by the creation form.relation
- Relation for which the object was created.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 boolean objectStateChanged(LyAdvancedWorkSpaceEvent event)
objectStateChanged
in interface LyAdvancedWorkSpaceListener
event
- Event notifying object state change.
public boolean objectUserEvent(LyAdvancedWorkSpaceEvent event)
objectUserEvent
in interface LyAdvancedWorkSpaceListener
event
- Event notifying object user event.
public boolean workSpaceEventsGrouped(java.util.ArrayList<LyWorkSpaceEvent> events)
workSpaceEventsGrouped
in interface LyAdvancedWorkSpaceListener
events
- Sorted list of events.
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |