| java.lang.Object com.javujavu.javux.wings.WingTimer
WingTimer | public class WingTimer implements Runnable(Code) | | This class posts ActionEvent s at specified
intervals.
ActionEvents posted by WingTimer can be dispatched on thread AWT EventDispatchThread
and on thread WingTimer.thread.
Create timer with postOnEventThread=false for time critical timer events.
This is one of the core WingS classes required by all the components
This class is thread safe.
|
Constructor Summary | |
public | WingTimer(int delay, boolean repeat, WingComponent target) Creates a WingTimer with the specified delay time,
repeat mode, and target component. | public | WingTimer(int delay, boolean repeat, WingComponent target, boolean postOnEventThread) Creates a WingTimer with the specified delay time,
repeat mode, and target component. |
WingTimer | public WingTimer(int delay, boolean repeat, WingComponent target)(Code) | | Creates a WingTimer with the specified delay time,
repeat mode, and target component.
Parameters: delay - milliseconds for the delay Parameters: repeat - specify false to make the timerstop after sending its first action event Parameters: target - target component |
WingTimer | public WingTimer(int delay, boolean repeat, WingComponent target, boolean postOnEventThread)(Code) | | Creates a WingTimer with the specified delay time,
repeat mode, and target component.
Parameters: delay - milliseconds for the delay Parameters: repeat - specify false to make the timerstop after sending its first action event Parameters: target - target component Parameters: postOnEventThread - specifies whether the events are posted on event thread |
setDelay | public void setDelay(int delay)(Code) | | |
setTarget | public void setTarget(WingComponent target)(Code) | | Sets target component
Parameters: target - target component |
start | public void start()(Code) | | Starts the timer
|
stop | public void stop()(Code) | | Stops the timer
|
|
|