|
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.app.behavior.LyBehavior
leon.app.behavior.LyActionBehavior
leon.app.behavior.LyWaitBehavior
public class LyWaitBehavior
Basic implementation of the wait behavior.
LyWaitController
,
LyWaitBehaviorInterface
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
static long |
MIN_DURATION
Minimum duration for the waiting view before closing (in milliseconds). |
static boolean |
WAIT_FOR_DISPLAY
Indicates if the program has to wait for screen update when a value is modified. |
Constructor Summary | |
---|---|
LyWaitBehavior()
Default construtor. |
Method Summary | |
---|---|
void |
endWaiting(LyWaitController controller)
Method invoked at the end of the wait, when it is over. |
java.lang.String |
getWaitIcon(LyWaitController controller)
Gets the current icon for the waiting view. |
java.lang.String |
getWaitLabel(LyWaitController controller)
Gets the current label for the waiting view. |
int |
getWaitValue(LyWaitController controller)
Gets the current progress value. |
void |
increaseOffset(LyWaitController controller)
Increases the current offset. |
void |
setWaitIcon(LyWaitController controller,
java.lang.String icon)
Sets the icon if the waiting view. |
void |
setWaitLabel(LyWaitController controller,
java.lang.String label)
Sets the label of the waiting view. |
void |
setWaitValue(LyWaitController controller,
int value)
Sets the value of the waiting view progress. |
void |
startWaiting(LyWaitController controller)
Method called when the waiting starts. |
Methods inherited from class leon.app.behavior.LyActionBehavior |
---|
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, getTitle, reset, startAction |
Methods inherited from class leon.app.behavior.LyBehavior |
---|
free, getSession, handleDemand, init |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface leon.app.behaviorinterface.LyActionBehaviorInterface |
---|
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, getTitle, reset, startAction |
Methods inherited from interface leon.app.behaviorinterface.LyBehaviorInterface |
---|
free, handleDemand, init |
Field Detail |
---|
public static final java.lang.String __VERSION
public static long MIN_DURATION
public static boolean WAIT_FOR_DISPLAY
Constructor Detail |
---|
public LyWaitBehavior()
current value
to 0, the offset value
too, sets the _waitingForDisplay
attribute to false and
store the current date into _startTime
.
Method Detail |
---|
public int getWaitValue(LyWaitController controller)
_waitingForDisplay
to false)
and computes the progress value depending on the controller maximum
and minimum
values, the current
progress value
and the offset value
.
getWaitValue
in interface LyWaitBehaviorInterface
controller
- the current LyWaitController instance
public java.lang.String getWaitLabel(LyWaitController controller)
wait label
.
getWaitLabel
in interface LyWaitBehaviorInterface
controller
- the current LyWaitController instance
public java.lang.String getWaitIcon(LyWaitController controller)
wait icon
.
getWaitIcon
in interface LyWaitBehaviorInterface
controller
- the current LyWaitController instance
public void increaseOffset(LyWaitController controller)
_offsetValue
.
increaseOffset
in interface LyWaitBehaviorInterface
controller
- the current LyWaitController instancepublic void startWaiting(LyWaitController controller)
startWaiting
in interface LyWaitBehaviorInterface
controller
- current LyWaitController instancepublic void endWaiting(LyWaitController controller)
endWaiting
in interface LyWaitBehaviorInterface
controller
- the current LyWaitController instancepublic void setWaitValue(LyWaitController controller, int value)
waitForDisplay(value)
and set the current progress value
with the given value.
controller
- the current LyWaitController instancevalue
- new progress valuepublic void setWaitLabel(LyWaitController controller, java.lang.String label)
controller
- the current LyWaitController instancelabel
- new label to displaypublic void setWaitIcon(LyWaitController controller, java.lang.String icon)
controller
- the current LyWaitController instanceicon
- new icon to display
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |