|
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.LyViewController
public abstract class LyViewController
This class implements the basis of all view controller.
LyController
,
LyFrameController
,
LyDialogController
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File Version |
static java.lang.String |
DEMAND_ABOUT
Show about. |
static java.lang.String |
DEMAND_CLOSE
Closing view (deletes window and associated controller). |
static java.lang.String |
DEMAND_EXIT
Identifier of a action in the view : Application end. |
static java.lang.String |
DEMAND_HIDE
Hiding view. |
static java.lang.String |
DEMAND_LOG
Show log. |
static java.lang.String |
DEMAND_UPDATE
Update. |
static java.lang.String |
DEMAND_VERSION
Show version. |
static int |
LEVEL_PRIMARY
Indicates the primary level controller, the view controller if the view is simple (Table, Tree, Map) or the main controller in the case of multi view. |
static int |
LEVEL_ROOT
Indicates the root level controller, usually a "Frame" (generic). |
static int |
LEVEL_SECONDARY
Indicates the secondary level controller. |
static int |
LEVEL_THIRD
Third level controller. |
Fields inherited from class leon.control.LyController |
---|
_nbControllers, _nextId, CONTROLLER_ID_SEP, DEFAULT_IMAGE_FORMAT, DEMAND_HELP, ID_SEP |
Constructor Summary | |
---|---|
LyViewController(LySession session,
LyController parent)
Default constructor. |
|
LyViewController(LySession session,
LyController parent,
LyAreaController areaController)
Default constructor. |
Method Summary | |
---|---|
void |
actionDemand(LyActionDemand demand)
Invoked when an action occurs. |
void |
clearViewCache()
Clears all cached data for this controller (especially the view and the component). |
void |
close()
Close this controller If a print thread is in progress, ask the user if the print must be cancelled. |
void |
demandPerformed(LyDemand demand)
Invoked when a notification is sent to this listener. |
void |
exit()
Exit. |
void |
free()
Free this controller. |
LyAreaController |
getAreaController()
Get Accessor to the associated area controller. |
LyWorkSpace |
getContext()
Get current controller context. |
java.util.Stack<LyViewController> |
getControllerStack()
Accessor to popup view controller stack (internal use). |
LyEnvironment |
getEnvironment()
Accessor to the current Environment instance This method returns the environment of the area controller displayed by this view controller. |
boolean |
getFreeOnClose()
Returns boolean indicating if this controller is freed on close. |
long |
getLastModified()
To get the last modification date of this controller. |
LyViewController |
getSon(int index)
Get the son controller at the given position. |
int |
getSonsCount()
Number of son controller. |
LyView |
getView()
Creates a root view which contains the view. |
LyArea |
getViewArea()
Get view area. |
LyViewController |
getViewController()
Returns view controller that contains this controller. |
boolean |
hasPrintThread()
Indicates if there is a printing thread registered on this controller. |
boolean |
hasSonShowing()
Check if this controller as son window showing (may decide if we free it or not). |
void |
hideView(boolean free)
Hides the Window which contains the view. |
void |
initialize()
Initializes this area controller. |
void |
interruptPrintThread()
Interrupts printing thread registered on this controller. |
boolean |
isInShowProcess()
|
boolean |
isShown()
Tests if controlled view is shown or not. |
void |
questionAnswer(boolean result,
java.lang.Object clientData)
Answer to a askQuestion request. |
void |
setAreaController(LyAreaController areaController)
Set Accessor to the associated area controller. |
boolean |
setContext(LyWorkSpace context)
Set current controller context. |
void |
setControllerStack(java.util.Stack<LyViewController> controllerStack)
Accessor to popup view controller stack (internal use). |
void |
setFreeOnClose(boolean freeOnClose)
Sets boolean indicating if this controller is freed on close. |
void |
setIdle(boolean idle)
Sets idle mode on this controller. |
void |
setInShowProcess(boolean showProcess)
|
void |
setName(java.lang.String name)
Sets view name. |
void |
setPrintThread(java.lang.Thread thread)
Sets the printing thread for this controller. |
void |
setViewArea(LyArea area)
Set view area. |
void |
showView()
Shows the Window which contains the view. |
Methods inherited from class leon.control.LyController |
---|
activateViewDemand, dragDropDemand, getApplication, getBehavior, getBehaviorInterface, getBuilder, getClassInfo, getComponent, getId, getImage, getImage, getImage, getImage, getImageFromPrefix, getImageFromPrefix, getImageFromPrefix, getKeyValue, getName, getObjectId, getParent, getSession, getUserData, getViewManager, hasViewController, helpDemand, hideView, isFreed, isIdle, menuDemand, selectionDemand, setBuilder, setBuilderClass, setLastModified, setUserData, showError, showError, showWarning, toString, 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
public static final int LEVEL_ROOT
public static final int LEVEL_PRIMARY
public static final int LEVEL_SECONDARY
public static final int LEVEL_THIRD
public static final java.lang.String DEMAND_EXIT
public static final java.lang.String DEMAND_CLOSE
public static final java.lang.String DEMAND_HIDE
public static final java.lang.String DEMAND_VERSION
public static final java.lang.String DEMAND_ABOUT
public static final java.lang.String DEMAND_LOG
public static final java.lang.String DEMAND_UPDATE
Constructor Detail |
---|
public LyViewController(LySession session, LyController parent)
session
- session for the controllerparent
- the parent controllerpublic LyViewController(LySession session, LyController parent, LyAreaController areaController)
session
- session for the controllerparent
- the parent controllerareaController
- the associated area controllerMethod Detail |
---|
public LyAreaController getAreaController()
public void setAreaController(LyAreaController areaController)
areaController
- the area controllerpublic void initialize()
public void free()
free
in class LyController
LyController.free()
public int getSonsCount()
public LyViewController getSon(int index)
index
- the position of the controller to get
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 LyViewController getViewController()
getViewController
in class LyController
public LyView getView()
getView
in class LyController
LyController.getView()
public void showView()
showView
in class LyController
public void hideView(boolean free)
hideView
in class LyController
free
- true if this controller must be freedLyController.hideView()
public boolean isShown()
public void close()
public void exit()
public void demandPerformed(LyDemand demand)
demandPerformed
in interface LyDemandListener
demandPerformed
in class LyController
demand
- demand parameters sent by the view component.LyController.demandPerformed(leon.view.event.LyDemand)
public void actionDemand(LyActionDemand demand)
actionDemand
in class LyController
demand
- action demandLyController.demandPerformed(leon.view.event.LyDemand)
public boolean getFreeOnClose()
public void setFreeOnClose(boolean freeOnClose)
freeOnClose
- true if this controller must be freed on closepublic LyArea getViewArea()
public void setViewArea(LyArea area)
area
- the view areapublic long getLastModified()
getLastModified
in class LyController
public boolean setContext(LyWorkSpace context)
setContext
in interface LyContextInterface
context
- current context or null if none is specified
LyContextInterface.getContext()
public LyWorkSpace getContext()
getContext
in interface LyContextInterface
LyContextInterface.getContext()
public void clearViewCache()
This method may be invoked for memory optimization, but the controller is still valid and may be used. (Unlike free) Further usage, needs to rebuild internal component & view which may be time consuming.
clearViewCache
in class LyController
public void interruptPrintThread()
public void setPrintThread(java.lang.Thread thread)
thread
- printing threadpublic boolean hasPrintThread()
public LyEnvironment getEnvironment()
getEnvironment
in class LyController
public void setIdle(boolean idle)
setIdle
in class LyController
idle
- the desired idle modepublic boolean hasSonShowing()
public boolean isInShowProcess()
public void setInShowProcess(boolean showProcess)
showProcess
- The _inShowProcess to set.public java.util.Stack<LyViewController> getControllerStack()
public void setControllerStack(java.util.Stack<LyViewController> controllerStack)
controllerStack
- the sub controller stackpublic void setName(java.lang.String name)
setName
in class LyController
name
- The name of the controller may be displayed to the user in a view.
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |