|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.util.Poller
public abstract class Poller
Class to handle polling.
| Field Summary | |
|---|---|
static boolean |
debug
Debug flag |
protected long |
interval
interval for polling (milliseconds) |
protected ActionListener |
listener
listener for polling events |
protected boolean |
running
flag for running |
| Constructor Summary | |
|---|---|
Poller(ActionListener listener,
long interval)
Create a Poller |
|
Poller(long interval)
Create a Poller |
|
| Method Summary | |
|---|---|
protected abstract void |
doPoll()
This method does the work. |
long |
getInterval()
Get the polling interval |
void |
init()
Initialize. |
void |
run()
Run the poller |
void |
stopRunning()
Stop polling. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean debug
protected ActionListener listener
protected long interval
protected boolean running
| Constructor Detail |
|---|
public Poller(long interval)
interval - polling interval
public Poller(ActionListener listener,
long interval)
listener - listener for eventsinterval - polling interval| Method Detail |
|---|
public void init()
public void run()
run in interface Runnableprotected abstract void doPoll()
public void stopRunning()
public long getInterval()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||