|
||||||||||
| 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.LoginForm
public class LoginForm
| Field Summary | |
|---|---|
protected JButton |
cancelButton
|
protected JButton |
loginButton
|
protected String |
name
|
protected static int |
nameCount
|
| Constructor Summary | |
|---|---|
LoginForm(GPSGui view,
GPSClientModel model)
The constructor creates a JPanel for the login information, and registers as a form on the view. |
|
LoginForm(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. |
void |
connectionUpdate(ConnectionState state)
Connection Update |
JComponent |
getFormComponent()
Gets the formComponent |
String |
getHostname()
Get the hostname value |
String |
getName()
Gets the name |
String |
getPassword()
Get password |
int |
getPort()
Get the active port |
String |
getUsername()
Get username |
void |
refreshView()
Invoked by FormManager right before this form is displayed. |
void |
setEnableControls(boolean enable)
|
void |
setStatusMsg(String msg)
Sets status message |
void |
showErrorDialog(String heading,
String warning)
Shows a warning dialog |
void |
showMain()
Shows the main form |
| Methods inherited from class triptracker.client.net.GPSSocketAdapter |
|---|
invalidMessage, routeCreated, routeList, 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 loginButton
protected final JButton cancelButton
| Constructor Detail |
|---|
public LoginForm(GPSGui view,
GPSClientModel model)
view.
view - JComponent form managermodel - GPS model
public LoginForm(GPSGui view,
String name,
GPSClientModel model)
view. The form name should be unique for
the given form manager.
view - parant JComponent form managername - unique form namemodel - GPS model| Method Detail |
|---|
public void addBtnListener(ActionListener listener)
listener - public JComponent getFormComponent()
getFormComponent in interface FormFormManagerpublic String getName()
getName in interface FormFormManagerpublic String getUsername()
public String getPassword()
public void setStatusMsg(String msg)
msg - the messagepublic void connectionUpdate(ConnectionState state)
connectionUpdate in interface SocketListenerconnectionUpdate in class GPSSocketAdapterstate - new connection statepublic int getPort()
public String getHostname()
public void showErrorDialog(String heading,
String warning)
heading - the heading for the dialogwarning - the warning to show in the dialogpublic void showMain()
public void refreshView()
FormFormManager right before this form is displayed.
refreshView in interface FormFormManagerpublic void setEnableControls(boolean enable)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||