|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.kjava.Spotlet | +--monrovia.client.ui.ConnectDialog
This class displays a login dialog with text fields for login name, password, IP address and port. The user enters the connect information in the dialog box and chooses either the Connect or Quit button. The information is then fetched from the dialog if the Connect button was pressed.
Fields inherited from class com.sun.kjava.Spotlet |
CALCICON, KEY_HARD1, KEY_HARD2, KEY_HARD3, KEY_HARD4, KEY_POWER, MENUICON, NO_EVENT_OPTIONS, PAGEDOWN, PAGEUP, WANT_SYSTEM_KEYS |
Constructor Summary | |
ConnectDialog(com.sun.kjava.DialogOwner pDialogOwner,
int pX,
int pY,
int pW,
int pH,
java.lang.String pTitle,
java.lang.String pAddress,
java.lang.String pPort)
Constructor which saves the default values and a handle to the dialog owner. |
Method Summary | |
java.lang.String |
getAddress()
Fetch the IP address field value. |
java.lang.String |
getLogin()
Fetch the login field value. |
java.lang.String |
getPassword()
Fetch the password field value. |
int |
getPort()
Fetch the port field value. |
void |
keyDown(int pKeyCode)
This method is invoked if the user enters a character (e.g. |
void |
paint()
Paint the Dialog and set the input focus to the login field. |
void |
penDown(int pX,
int pY)
This method is invoked if the user places the pen on the display. |
void |
showDialog()
Show the Dialog: register it and paint it. |
boolean |
wasQuit()
Has the user pressed the Quit button? |
Methods inherited from class com.sun.kjava.Spotlet |
beamReceive, beamSend, dispatch, getFlashID, penMove, penUp, register, setPalmEventOptions, unknownEvent, unregister |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConnectDialog(com.sun.kjava.DialogOwner pDialogOwner, int pX, int pY, int pW, int pH, java.lang.String pTitle, java.lang.String pAddress, java.lang.String pPort)
pDialogOwner
- owner of this the dialogpX
- X coordinate of the upper left corder of the dialogpY
- Y coordinate of the upper left corder of the dialogpW
- width of the dialogpH
- height of the dialogpTitle
- name of the dialogpAddress
- default IP address of the serverpPort
- default port of the serverMethod Detail |
public void paint()
public java.lang.String getAddress()
public int getPort()
public java.lang.String getLogin()
public java.lang.String getPassword()
public boolean wasQuit()
public void penDown(int pX, int pY)
penDown
in class com.sun.kjava.Spotlet
x
- the x coordinate of the point at which the pen was placedy
- the y coordinate of the point at which the pen was placedpublic void keyDown(int pKeyCode)
keyDown
in class com.sun.kjava.Spotlet
keyCode
- the code of the key the user enteredpublic void showDialog()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |