public class Poller
extends java.lang.Object
implements java.awt.event.ActionListener
| Modifier and Type | Field and Description | 
|---|---|
private static int | 
delay  | 
private javax.swing.Timer | 
timer  | 
| Constructor and Description | 
|---|
Poller()
Initializes the poller with a certain poll interval and uses the ServerProxy
 passed as the object to poll 
 | 
Poller(int delay)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
actionPerformed(java.awt.event.ActionEvent event)  | 
void | 
beginPolling()
Polls the server at the interval specified at the instantiation of the Poller. 
 | 
void | 
stopPolling()
Causes the client to stop polling the server. 
 | 
private static final int delay
private javax.swing.Timer timer
public Poller()
pollInterval - The period of polling, in millisecondsserverProxy - The ServerProxy object to pollpublic Poller(int delay)
public void beginPolling()
public void stopPolling()
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed in interface java.awt.event.ActionListener