|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object triptracker.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 modelpublic 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 modelMethod Detail |
---|
public void addBtnListener(ActionListener listener)
listener
- public JComponent getFormComponent()
Form
JComponent
object that this form operates on.
getFormComponent
in interface Form
FormManager
public String getName()
Form
FormManager
.
getName
in interface Form
FormManager
public void showMain()
public void refreshView()
Form
FormManager
right before this form is displayed.
refreshView
in interface Form
FormManager
public void routeList(List<Route> routes)
GPSSocketAdapter
routeList
in interface GPSSocketListener
routeList
in class GPSSocketAdapter
routes
- list of routespublic void routeCreated(int rId)
GPSSocketAdapter
routeCreated
in interface GPSSocketListener
routeCreated
in class GPSSocketAdapter
rId
- 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 |