| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttriptracker.client.net.GPSSocketAdapter
triptracker.client.gps.ui.RoutesForm
public class RoutesForm
| Field Summary | |
|---|---|
protected  JButton | 
cancelButton
 | 
protected  String | 
name
 | 
protected static int | 
nameCount
 | 
protected  JButton | 
newButton
 | 
protected  JButton | 
trackButton
 | 
| Constructor Summary | |
|---|---|
RoutesForm(GPSGui view,
           GPSClientModel model,
           Form mainForm)
The constructor creates a JPanel for the login information, and registers as a form on the view. | 
|
RoutesForm(GPSGui view,
           String name,
           GPSClientModel model,
           Form mainForm)
The constructor creates a JPanel for the login information, and registers as a form on the view. | 
|
| Method Summary | |
|---|---|
 void | 
addBtnListener(ActionListener listener)
Register a listener on the login button.  | 
 JComponent | 
getFormComponent()
Returns the root JComponent object that this form operates on. | 
 String | 
getName()
Returns the name of this form.  | 
 Route | 
getNewRoute()
Gets the new route  | 
 String | 
getNewRouteDesc()
Gets the description of the new route created  | 
 Route | 
getRoute()
Returns selected element in routeBox  | 
 void | 
refreshView()
Invoked by FormManager right before this form is displayed. | 
 void | 
routeCreated(int rId)
Invoked when a route creation confirmation is received.  | 
 void | 
routeList(List<Route> routes)
Invoked when a list of routes is received.  | 
 void | 
setRouteBox(List<Route> routes)
Adds route elements to routeBox  | 
 void | 
setStatusMsg(String msg)
Sets the status msg  | 
 void | 
showInfoDialog(String head,
               String info)
Creates an info dialog with the give heading and info  | 
 void | 
showMain()
 | 
 boolean | 
transferBufferedDialog()
Dialog created to ask if transfer buffered coordinates  | 
| Methods inherited from class triptracker.client.net.GPSSocketAdapter | 
|---|
connectionUpdate, invalidMessage, socketError | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected static int nameCount
protected final String name
protected final JButton trackButton
protected final JButton cancelButton
protected final JButton newButton
| Constructor Detail | 
|---|
public RoutesForm(GPSGui view,
                  GPSClientModel model,
                  Form mainForm)
view.
view - JComponent form managermodel - GPS model
public RoutesForm(GPSGui view,
                  String name,
                  GPSClientModel model,
                  Form mainForm)
view. The form name should be unique for
 the given form manager.
view - parent JComponent form managername - unique form namemodel - GPS model| Method Detail | 
|---|
public void addBtnListener(ActionListener listener)
listener - public JComponent getFormComponent()
FormJComponent object that this form operates on.
getFormComponent in interface FormFormManagerpublic String getName()
FormFormManager.
getName in interface FormFormManagerpublic void showMain()
public void refreshView()
FormFormManager right before this form is displayed.
refreshView in interface FormFormManagerpublic void routeList(List<Route> routes)
GPSSocketAdapter
routeList in interface GPSSocketListenerrouteList in class GPSSocketAdapterroutes - list of routespublic void routeCreated(int rId)
GPSSocketAdapter
routeCreated in interface GPSSocketListenerrouteCreated in class GPSSocketAdapterrId - ID of new routepublic void setRouteBox(List<Route> routes)
public Route getRoute()
public void setStatusMsg(String msg)
msg - msg in the statusbarpublic boolean transferBufferedDialog()
public void showInfoDialog(String head,
                           String info)
head - the header of the dialoginfo - the info message to givepublic String getNewRouteDesc()
public Route getNewRoute()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||