triptracker.client.gps.ui
Class GPSSettingsForm

java.lang.Object
  extended by triptracker.client.gps.ui.GPSSettingsForm
All Implemented Interfaces:
Form

public class GPSSettingsForm
extends Object
implements Form


Field Summary
protected  JButton cancelButton
           
protected  String name
           
protected static int nameCount
           
protected  JButton saveButton
           
 
Constructor Summary
GPSSettingsForm(GPSGui view, GPSClientModel model)
          The constructor creates a JPanel for the login information, and registers as a form on the view's FormManager.
GPSSettingsForm(GPSGui view, String name, GPSClientModel model)
          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.
 boolean getAutoTransfer()
          Checks if the autotransfer box is selected.
 boolean getCompression()
          Checks if the compressbox is selected
 JComponent getFormComponent()
          Returns the root JComponent object that this form operates on.
 String getName()
          Returns the name of this form.
 String getPort()
          Gets the selected port
 void refreshView()
          Invoked by FormManager right before this form is displayed.
 void setStatusMsg(String msg)
          Sets an status message.
 void showMain()
           
 void showRoutes()
          Show the route form
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nameCount

protected static int nameCount

name

protected final String name

saveButton

protected final JButton saveButton

cancelButton

protected final JButton cancelButton
Constructor Detail

GPSSettingsForm

public GPSSettingsForm(GPSGui view,
                       GPSClientModel model)
The constructor creates a JPanel for the login information, and registers as a form on the view's FormManager.

Parameters:
view - parent form manager view
model - main GPS model

GPSSettingsForm

public GPSSettingsForm(GPSGui view,
                       String name,
                       GPSClientModel model)
The constructor creates a JPanel for the login information, and registers as a form on the view. The form name should be unique for the given form manager.

Parameters:
view - parent JComponent form manager
name - unique form name
model - GPS model
Method Detail

addBtnListener

public void addBtnListener(ActionListener listener)
Register a listener on the login button.

Parameters:
listener -

getFormComponent

public JComponent getFormComponent()
Description copied from interface: Form
Returns the root JComponent object that this form operates on.

Specified by:
getFormComponent in interface Form
Returns:
root JComponent object
See Also:
FormManager

getName

public String getName()
Description copied from interface: Form
Returns the name of this form. This name should be unique for each form for a given instance of FormManager.

Specified by:
getName in interface Form
Returns:
form name
See Also:
FormManager

showMain

public void showMain()

refreshView

public void refreshView()
Invoked by FormManager right before this form is displayed.

Specified by:
refreshView in interface Form
See Also:
FormManager

getCompression

public boolean getCompression()
Checks if the compressbox is selected

Returns:
true if selected

getPort

public String getPort()
Gets the selected port

Returns:
the selected port as String.

getAutoTransfer

public boolean getAutoTransfer()
Checks if the autotransfer box is selected.

Returns:
true if selected

setStatusMsg

public void setStatusMsg(String msg)
Sets an status message.

Parameters:
msg - the status message

showRoutes

public void showRoutes()
Show the route form



Copyright © 2006 Team Trip Tracker. All Rights Reserved.