java.lang.Object | |
↳ | com.google.gwt.user.client.Timer |
A simplified, browser-safe timer class. This class serves the same purpose as
java.util.Timer, but is simplified because of the single-threaded
environment.
To schedule a timer, simply create a subclass of it (overriding run()
)
and call schedule(int)
or scheduleRepeating(int)
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Cancels this timer.
| |||||||||||
This method will be called when a timer fires.
| |||||||||||
Schedules a timer to elapse in the future.
| |||||||||||
Schedules a timer that elapses repeatedly.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Cancels this timer.
This method will be called when a timer fires. Override it to implement the timer's logic.
Schedules a timer to elapse in the future.
delayMillis | how long to wait before the timer elapses, in milliseconds |
---|
Schedules a timer that elapses repeatedly.
periodMillis | how long to wait before the timer elapses, in milliseconds, between each repetition |
---|