|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Timer
Fires one or more Event after a specified
delay.
Timer is a special component that is invisible.
Notice that the timer won't fire any event until it is attached to a page.
| Field Summary |
|---|
| Fields inherited from interface org.zkoss.zk.ui.Component |
|---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
| Method Summary | |
|---|---|
int |
getDelay()
Returns the delay, the number of milliseconds between successive action events. |
boolean |
isRepeats()
Returns whether the timer shall send Event repeatly. |
boolean |
isRunning()
Returns whether this timer is running. |
void |
setDelay(int delay)
Sets the delay, the number of milliseconds between successive action events. |
void |
setRepeats(boolean repeats)
Sets whether the timer shall send Event repeatly. |
void |
setRunning(boolean running)
Start or stops the timer. |
void |
start()
Starts the timer. |
void |
stop()
Stops the timer. |
| Methods inherited from interface org.zkoss.zk.ui.api.HtmlBasedComponent |
|---|
focus, getHeight, getLeft, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZclass, getZindex, getZIndex, setDraggable, setDroppable, setFocus, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZclass, setZindex, setZIndex |
| Method Detail |
|---|
int getDelay()
Default: 0 (immediately).
void setDelay(int delay)
throws WrongValueException
WrongValueExceptionboolean isRepeats()
Default: false.
void setRepeats(boolean repeats)
boolean isRunning()
Default: true.
stop(),
start()void setRunning(boolean running)
void stop()
void start()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||