|
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.LyAreaController
leon.control.LyPanelController
leon.control.LySimpleTableController
leon.control.LyTableController
leon.control.LyMultiPageTableController
leon.control.LyEditTableController
leon.control.form.LyRelationTableController
public class LyRelationTableController
The function of this controller is to manage consultation and set of a relation of type COMPOSITION. This controller is always included in a form controller. The consultation and setting is done in a table.
LyRelationFieldInfo
,
LyMultiCompositionFieldConsultController
,
LyMultiCompositionFieldSetController
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
static java.lang.String |
DEMAND_MOVE_DOWN
Demand id : Move selection down. |
static java.lang.String |
DEMAND_MOVE_UP
Demand id : Move selection up. |
Fields inherited from class leon.control.LyEditTableController |
---|
DEMAND_ALT_ADD, DEMAND_ALT_DOWN, DEMAND_ALT_LEFT, DEMAND_ALT_RIGHT, DEMAND_ALT_UP, DEMAND_CANCEL_ROW, DEMAND_COPY_CELLS, DEMAND_PASTE_CELLS, DEMAND_RESTORE, DEMAND_VALIDATE_ROW, MAX_COLUMN_WIDTH, TOOLBAR_FOR_UNCHANGED_OBJECTS |
Fields inherited from class leon.control.LyMultiPageTableController |
---|
IMPACT_OUTSIDE_OF_CURRENT_VIEW, SELECT_PAGE |
Fields inherited from class leon.control.LyTableController |
---|
MAX_OBJECTS_COUNT_FOR_CONTEXT_FILTER |
Fields inherited from class leon.control.LyAreaController |
---|
DEFAULT_MENU_ITEM_IMAGE_SIZE, DEMAND_APPLY, DEMAND_CANCEL, DEMAND_CLOSE, DEMAND_CREATE_CHART, DEMAND_DELETE_CHART, DEMAND_DELETE_OBJECTINFOS, DEMAND_DELETE_PREFERENCE, DEMAND_UPDATE_VIEW, DEMAND_VALIDATE |
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 |
Method Summary | |
---|---|
void |
actionDemand(LyActionDemand demand)
Internal use. |
void |
cancel()
Internal use. |
boolean |
canChange(LyFieldInfo fieldInfo)
Check if the fieldInfo can be edited |
boolean |
checkIfModified()
Check if modified. |
void |
commit()
Internal use. |
short |
control()
Controls current edition. |
void |
dragDropDemand(LyDragDropDemand demand)
Invoked when a Drag & Drop occurs. |
short |
endValidate()
Internal use. |
void |
free(LyController controller)
Free this controller. |
LyArrayFieldInfo |
getArray()
Retunrs array controlled by this controller. |
LyContext |
getControllerContext()
Gets the controller context. |
LyEnvironment |
getEnvironment()
Accessor to the current Environment instance This method returns the environment of the current Action or, if the previous one is null, the parent form environment. |
LyValue |
getFieldValue(LyFieldInfo fieldInfo)
Extract current value for the specified fieldInfo in the form. |
LyObjectList |
getNewObjects()
Return the list of newly created objects. |
LyObjectList |
getOldObjects()
Return the list of deleted objects. |
LyRelationFieldInfo |
getRelation()
Retunrs relation controlled by this controller. |
LyObjectList |
getSelection()
Gets selected objects. |
LyViewController |
getViewController()
Overriden to always return parent view controller. |
boolean |
isConsult()
Is this table in a form consult or not. |
boolean |
isIdle()
Check idle status of the field controller. |
boolean |
isOrdered()
Checks if this controller manages an ordered relation or not. |
void |
notifyFormResult(LyObject object,
LyRelationFieldInfo relationField)
Internal use. |
boolean |
objectAdded(LyWorkSpaceEvent event)
Called when an object is added in the dynamic object list. |
boolean |
objectChanged(LyWorkSpaceEvent event)
Called when an object is modified in the dynamic object list. |
boolean |
objectRemoved(LyWorkSpaceEvent event)
Called when an object is removed from the dynamic object list. |
void |
reset(boolean full)
Reset all the content of the view. |
boolean |
setContext(LyWorkSpace context)
Set the current context for the controller. |
LyEditTableSetController |
setControllerFactory(LyObject object)
Utility method (factory) to create setControllers related to objects being modified This method is overriden to mark the controller as local. |
void |
setLastModified(long time)
Accessor to set the last modification date of this controller. |
void |
showError(LyObject object,
LyError error)
Show an error for the specified object. |
short |
startValidate()
Internal use. |
boolean |
workSpaceEventsGrouped(java.util.ArrayList<LyWorkSpaceEvent> events)
Called when grouped events are sent. |
Methods inherited from class leon.control.LyMultiPageTableController |
---|
getLastPage, getPage, isDisplayNextPreviousTools, isDisplayPagesNumber, isPaginated, selectRow, setClassFilter, setPrintMode, setSort |
Methods inherited from class leon.control.LyTableController |
---|
completeMessages, print, selectObject, selectObjects |
Methods inherited from class leon.control.LyPanelController |
---|
buildFilter, closeBorderPanel, endFilter, getFilter, getFilterController, getFilterEditorController, getPreference, getRefreshTime, isFilterActive, isHorizontal, objectUserEvent, setFilter, setIdle, setRefreshTime, updatePreferencesMenu |
Methods inherited from class leon.control.LyController |
---|
activateViewDemand, demandPerformed, getApplication, getClassInfo, getComponent, getId, getImage, getImage, getImage, getImage, getImageFromPrefix, getImageFromPrefix, getImageFromPrefix, getName, getObjectId, getSession, getUserData, getView, getViewManager, helpDemand, hideView, isFreed, setBuilder, setBuilderClass, setName, setUserData, showError, showWarning, updateViewFromValues |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface leon.control.LyFormInterface |
---|
setEditable, setEnabled |
Methods inherited from interface leon.control.LyContextInterface |
---|
getContext |
Methods inherited from interface leon.data.LyAdvancedWorkSpaceListener |
---|
objectUserEvent |
Methods inherited from interface leon.control.LyFilterEndInterface |
---|
endFilter, getFilter |
Methods inherited from interface leon.control.LyFastFilterEndInterface |
---|
getFilter |
Field Detail |
---|
public static final java.lang.String __VERSION
public static final java.lang.String DEMAND_MOVE_UP
public static final java.lang.String DEMAND_MOVE_DOWN
Method Detail |
---|
public void setLastModified(long time)
setLastModified
in class LyMultiPageTableController
time
- the new modificaion timepublic void free(LyController controller)
free
in class LyEditTableController
controller
- parent controllerLyAreaController.free()
public final LyRelationFieldInfo getRelation()
public final LyArrayFieldInfo getArray()
public final boolean isOrdered()
public LyEditTableSetController setControllerFactory(LyObject object)
setControllerFactory
in class LyEditTableController
object
- current object being modified
public LyViewController getViewController()
getViewController
in class LyAreaController
public LyEnvironment getEnvironment()
getEnvironment
in class LyAreaController
public LyObjectList getNewObjects()
public LyObjectList getOldObjects()
public void notifyFormResult(LyObject object, LyRelationFieldInfo relationField)
notifyFormResult
in interface LyFormResultInterface
object
- newly created object. The new value of the relation fieldInfo.relationField
- the relation (null in this case)public short startValidate()
startValidate
in interface LyFormInterface
startValidate
in class LyEditTableController
LyFormInterface
public short endValidate()
endValidate
in interface LyFormInterface
endValidate
in class LyEditTableController
LyFormInterface
public void commit()
commit
in interface LyFormInterface
public void cancel()
cancel
in interface LyFormInterface
public boolean checkIfModified()
checkIfModified
in interface LyFormInterface
public LyValue getFieldValue(LyFieldInfo fieldInfo)
getFieldValue
in interface LyFormInterface
fieldInfo
- fieldInfo associated to the requested value
public boolean setContext(LyWorkSpace context)
setContext
in interface LyContextInterface
setContext
in class LyEditTableController
context
- Current context, or null if no context is set for the view
LyContextInterface.getContext()
public void reset(boolean full)
reset
in class LyEditTableController
full
- Boolean indicating if a full reset (including reset of datas) is requiered or not
(only reset graphical area).public void actionDemand(LyActionDemand demand)
actionDemand
in class LyEditTableController
demand
- Action event created from the view.LyController.demandPerformed(leon.view.event.LyDemand)
public LyObjectList getSelection()
getSelection
in class LySimpleTableController
public boolean objectAdded(LyWorkSpaceEvent event)
objectAdded
in interface LyWorkSpaceListener
objectAdded
in class LyEditTableController
event
- LyWorkSpace event
LyWorkSpaceListener.objectAdded(leon.data.LyWorkSpaceEvent)
public boolean objectChanged(LyWorkSpaceEvent event)
objectChanged
in interface LyWorkSpaceListener
objectChanged
in class LySimpleTableController
event
- LyWorkSpace event
LyWorkSpaceListener.objectAdded(leon.data.LyWorkSpaceEvent)
public boolean objectRemoved(LyWorkSpaceEvent event)
objectRemoved
in interface LyWorkSpaceListener
objectRemoved
in class LyEditTableController
event
- LyWorkSpace event
LyWorkSpaceListener.objectRemoved(leon.data.LyWorkSpaceEvent)
public boolean workSpaceEventsGrouped(java.util.ArrayList<LyWorkSpaceEvent> events)
workSpaceEventsGrouped
in interface LyAdvancedWorkSpaceListener
workSpaceEventsGrouped
in class LyPanelController
events
- Sorted list of events.
LyAdvancedWorkSpaceListener.workSpaceEventsGrouped(java.util.ArrayList)
public LyContext getControllerContext()
getControllerContext
in interface LyControllerContextInterface
LyControllerContextInterface.getControllerContext()
public boolean canChange(LyFieldInfo fieldInfo)
fieldInfo
- the fieldInfo
public short control()
control
in interface LyFormInterface
public boolean isIdle()
isIdle
in interface LyGuiListener
isIdle
in class LyController
public boolean isConsult()
public void dragDropDemand(LyDragDropDemand demand)
dragDropDemand
in class LySimpleTableController
demand
- drag-drop demandpublic void showError(LyObject object, LyError error)
showError
in class LyEditTableController
object
- The object in errorerror
- The error o showLyController.showError(String)
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |