|
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.LyMultiAreaController
leon.control.LyCompoundAreaController
public class LyCompoundAreaController
A compound area controller is associated to a compound action.
This controller is a view which gather two views controllers (subcontrollers) in the same 'area'.
The compoundAreaController provides the following services :
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
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 |
Constructor Summary | |
---|---|
LyCompoundAreaController(LySession session,
LyController parent,
LyAction action,
LyClassInfo classInfo,
LyObjectList context)
Constructor. |
Method Summary | |
---|---|
void |
actionDemand(LyActionDemand demand)
Invoked when an action occurs. |
void |
free(LyController controller)
Free this controller. |
LyAreaController |
getContextClient()
Accessor to the area controller which is the client context for the other area controller. |
void |
reset(boolean full)
Reset the entire view : everything is rebuilt. |
void |
setAction(LyAction action)
Deprecated. Use setAction(LyAction, boolean) |
void |
setAction(LyAction action,
boolean deleteOnClose)
Change client context action (or second action if no action is used for context). |
void |
setAction(LyAction action,
LyObjectList context,
short index,
boolean deleteOnClose)
Change action at the given position. |
void |
setAction(LyAction action,
short index)
Deprecated. Use setAction(LyAction, short, boolean) |
void |
setAction(LyAction action,
short index,
boolean deleteOnClose)
Change action at the given position. |
boolean |
setContext(LyWorkSpace context)
Set current controller context. |
void |
setContextClient(LyAreaController controller)
Accessor to set another area controller which will receive contextual notification when something occur on this area controller. |
Methods inherited from class leon.control.LyController |
---|
activateViewDemand, demandPerformed, dragDropDemand, getApplication, getClassInfo, getComponent, getId, getImage, getImage, getImage, getImage, getImageFromPrefix, getImageFromPrefix, getImageFromPrefix, getName, getObjectId, getSession, getUserData, getView, getViewManager, helpDemand, hideView, isFreed, isIdle, selectionDemand, setBuilder, setBuilderClass, setLastModified, setName, setUserData, showError, showError, showWarning, updateViewFromValues |
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 LyCompoundAreaController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList context)
session
- current session associated to the controller. The controller automatically
registers on the specified session.parent
- parent controller (or null for 'root' controller). Controller hierarchy
indicates a child controller (for example a dialog created from a main view)action
- related action. The action should be an instance of LyCompoundAction. If an
action is specified, the controller uses action parameters (action name,
action specific XML view description ...)classInfo
- classInfo : useless in this controller, should be null. Kept for
compatibility.context
- current context (may be null if the view is not contextual to a list of
objects).Method Detail |
---|
public void free(LyController controller)
free
in class LyMultiAreaController
controller
- controller instance which requested the freeing of this controller. If the
controller is the parent, this controller is freed otherwise the method
does nothing.LyAreaController.free()
public void reset(boolean full)
reset
in class LyAreaController
full
- Boolean indicating if a full reset (including reset of datas) is requiered or not
(only reset graphical area).public boolean setContext(LyWorkSpace context)
setContext
in interface LyContextInterface
setContext
in class LyMultiAreaController
context
- context or null if none is specified
LyContextInterface.setContext(leon.data.LyWorkSpace)
public LyAreaController getContextClient()
getContextClient
in class LyAreaController
public void setContextClient(LyAreaController controller)
Method is overrident to take the internal sub-controller structure into account.
setContextClient
in class LyMultiAreaController
controller
- the contextual controller, or null if no client definedpublic void setAction(LyAction action, boolean deleteOnClose)
setAction
in class LyMultiAreaController
action
- New action added in compound area.deleteOnClose
- Delete controller when action is changed.public final void setAction(LyAction action)
action
- New action added in compound area.public void setAction(LyAction action, LyObjectList context, short index, boolean deleteOnClose)
action
- New action added in compound area.context
- The context of the new action.index
- Index of the replaced action.deleteOnClose
- Delete controller when action is changed.public void setAction(LyAction action, short index, boolean deleteOnClose)
action
- New action added in compound area.index
- Index of the replaced action.deleteOnClose
- Delete controller when action is changed.public final void setAction(LyAction action, short index)
action
- New action added in compound area.index
- Index of the replaced action.public void actionDemand(LyActionDemand demand)
actionDemand
in class LyMultiAreaController
demand
- demand parameters sent by the view component.LyController.demandPerformed(leon.view.event.LyDemand)
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |