|
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.LyWaitController
public class LyWaitController
This class implements a wait controller. This controller waits for a given amount of time, before executing a new action. It is associated with a builder (LyWaitBuilder) and a behavior that implements LyWaitBehaviorInterface. Usually, this behavior is an instance of LyWaitBehavior
LyWaitBuilder
,
LyWaitBehaviorInterface
,
LyWaitBehavior
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 | |
---|---|
LyWaitController(LySession session,
LyController parent,
LyAction action,
int min,
int max,
int nCols,
int nRows)
Default constructor. |
|
LyWaitController(LySession session,
LyController parent,
LyAction action,
LyClassInfo classInfo,
LyObjectList context)
Constructor. |
Method Summary | |
---|---|
boolean |
canClose(boolean showMessage)
Wait panel is closable only when action has a commands bar. |
void |
endWait(boolean ok)
This method is called when the wait is over If the ok parameter is 'true', this method invoke the next action. |
void |
free(LyController controller)
Free this controller. |
java.lang.Class<?> |
getBehaviorInterface()
Method that gives the interface that must be implemented by the behavior associated to this controller. |
LyGauge |
getGaugeComponent()
Accessor to the Gauge component. |
LyIcon |
getIconComponent()
Accessor to the Icon component. |
LyLabel |
getLabelComponent()
Accessor to the Label component. |
int |
getNCols()
Accessor to current number of columns. |
int |
getNMax()
Accessor to current maximum value. |
int |
getNMin()
Accessor to current minimum value. |
int |
getNRows()
Accessor to current number of rows. |
LyController[] |
invokeNextActions()
Proceed to next actions after a login (login should be valid at that point). |
boolean |
isViewResizable()
Indicates if the view for this wait controller is resizable. |
void |
reset()
Reset all. |
void |
run()
Implementation of the runnable interface Periodic check of the client : invoke free to stop. |
void |
setUpdateDelay(long delay)
Set periodic update delay on client. |
void |
showView()
Show the view and start the waiting thread. |
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 LyWaitController(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. If an action is specified, the controller uses action
parameters (action name, action specific XML view description ...)classInfo
- related classInfo.context
- current context (may be null if the view is not contextual to a list of
objects).public LyWaitController(LySession session, LyController parent, LyAction action, int min, int max, int nCols, int nRows)
session
- current sessionparent
- window controlleraction
- associated to the wait window.min
- minimum value.max
- maximum value.nCols
- preferred number of columns -chars- in notice. -1 (default) is auto-size.nRows
- preferred number of rows -lines- in notice. -1 (default) is auto-size.Method Detail |
---|
public java.lang.Class<?> getBehaviorInterface()
getBehaviorInterface
in class LyAreaController
public void reset()
reset
in class LyAreaController
LyAreaController.reset(boolean)
public void showView()
showView
in class LyAreaController
public void endWait(boolean ok)
ok
- true if the wait was successullpublic LyController[] invokeNextActions()
public void free(LyController controller)
free
in class LyAreaController
controller
- parent controllerLyAreaController.free()
public void run()
run
in interface java.lang.Runnable
public boolean isViewResizable()
isViewResizable
in class LyAreaController
public LyGauge getGaugeComponent()
public LyIcon getIconComponent()
public LyLabel getLabelComponent()
public void setUpdateDelay(long delay)
delay
- refresh interval (in ms)public int getNMin()
public int getNMax()
public int getNRows()
public int getNCols()
public boolean canClose(boolean showMessage)
canClose
in class LyAreaController
showMessage
- indicates if a message must be shown
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |