|
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.LyDeleteController
public class LyDeleteController
This class describes the controller associated to a delete action. This class asks the user for a confirmation and accept single object or multiple objects deletion.
This class is associated to a LyDeleteBehaviorInterface, usually a LyClassBehavior instance.
The delete controller does not have any builder (no view is generated).
LyDeleteBehaviorInterface
,
LyClassBehavior
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 | |
---|---|
LyDeleteController(LySession session,
LyController parent,
LyAction action,
LyClassInfo classInfo,
LyObjectList objects)
Constructor. |
Method Summary | |
---|---|
void |
free()
Free this controller. |
java.lang.Class<?> |
getBehaviorInterface()
Method that gives the interface that must be implemented by the behavior associated to this controller. |
LyClassInfo |
getClassInfo()
Get class info of deleted object(s). |
LyContext |
getControllerContext()
Gets the controller context. |
LyObject |
getObject()
Access to current object being deleted. |
LyObjectList |
getObjects()
Access to controlled object list. |
LyView |
getView()
Accessor to the view that contains the component (getComponent) of the controller. |
LyViewController |
getViewController()
Accessor to the view controller (Frame or dialog controller) which is the container of this view. |
boolean |
isLast()
Indicates wether this is last object in list. |
void |
messageAnswer(int result,
java.lang.Object clientData)
Answer to a askQuestion request. |
void |
questionAnswer(boolean result,
java.lang.Object clientData)
Answer to a askQuestion request. |
void |
showView()
Make the view visible to the user. |
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, 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 LyDeleteController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList objects)
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
- kept for compatibility (introspection). Not used.objects
- current object list being deleted. Must be not null.getClassInfo()
Method Detail |
---|
public void free()
free
in class LyAreaController
LyAreaController.free(LyController)
public java.lang.Class<?> getBehaviorInterface()
getBehaviorInterface
in class LyAreaController
public void showView()
showView
in class LyAreaController
public void questionAnswer(boolean result, java.lang.Object clientData)
questionAnswer
in interface LyQuestionAnswerInterface
result
- one of the possible return code for LyViewManager : COMMAND_XXXclientData
- data specified in the askQuestion methodLyMessageAnswerInterface
public void messageAnswer(int result, java.lang.Object clientData)
messageAnswer
in interface LyMessageAnswerInterface
result
- one of the possible return code for LyViewManager : COMMAND_XXXclientData
- data specified in the askQuestion methodLyMessageAnswerInterface
public LyViewController getViewController()
getViewController
in class LyAreaController
public LyView getView()
getView
in class LyController
public LyObject getObject()
public boolean isLast()
public LyObjectList getObjects()
public LyClassInfo getClassInfo()
getClassInfo
in class LyAreaController
public LyContext getControllerContext()
getControllerContext
in interface LyControllerContextInterface
LyControllerContextInterface.getControllerContext()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |