|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.jface.dialogs.TrayDialog
org.eclipse.rse.connectorservice.ssh.UserValidationDialog
A dialog for prompting for a username and password
| Nested Class Summary |
|---|
| Nested classes inherited from class org.eclipse.jface.window.Window |
|---|
Window.IExceptionHandler |
| Field Summary | |
|---|---|
protected boolean |
allowCaching
|
protected Button |
allowCachingButton
|
protected String |
defaultUsername
|
protected String |
domain
|
protected boolean |
isUsernameMutable
|
protected Image |
keyLockImage
|
protected String |
message
|
protected String |
password
|
protected Text |
passwordField
|
protected String |
username
|
protected Text |
usernameField
|
| Fields inherited from class org.eclipse.jface.dialogs.Dialog |
|---|
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS |
| Fields inherited from class org.eclipse.jface.window.Window |
|---|
CANCEL, OK |
| Constructor Summary | |
|---|---|
UserValidationDialog(Shell parentShell,
String location,
String defaultName,
String message)
Creates a new UserValidationDialog. |
|
| Method Summary | |
|---|---|
boolean |
close()
|
protected void |
configureShell(Shell newShell)
|
void |
create()
|
protected Control |
createDialogArea(Composite parent)
|
protected void |
createPasswordFields(Composite parent)
Creates the three widgets that represent the password entry area. |
protected void |
createUsernameFields(Composite parent)
Creates the three widgets that represent the user name entry area. |
boolean |
getAllowCaching()
Returns true if the save password checkbox was selected. |
String |
getPassword()
Returns the password entered by the user, or null if the user canceled. |
String |
getUsername()
Returns the username entered by the user, or null if the user canceled. |
protected void |
okPressed()
Notifies that the ok button of this dialog has been pressed. |
void |
setUsernameMutable(boolean value)
Sets whether or not the username field should be mutable. |
| Methods inherited from class org.eclipse.jface.dialogs.TrayDialog |
|---|
closeTray, createButtonBar, createHelpControl, getLayout, getTray, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Text usernameField
protected Text passwordField
protected Button allowCachingButton
protected String domain
protected String defaultUsername
protected String password
protected boolean allowCaching
protected Image keyLockImage
protected boolean isUsernameMutable
protected String username
protected String message
| Constructor Detail |
public UserValidationDialog(Shell parentShell,
String location,
String defaultName,
String message)
parentShell - the parent shelllocation - the locationdefaultName - the default user namemessage - a mesage to display to the user| Method Detail |
protected void configureShell(Shell newShell)
Window.configureShell(org.eclipse.swt.widgets.Shell)public void create()
Window.create()protected Control createDialogArea(Composite parent)
Dialog.createDialogArea(org.eclipse.swt.widgets.Composite)protected void createPasswordFields(Composite parent)
parent - the parent of the widgetsprotected void createUsernameFields(Composite parent)
parent - the parent of the widgetspublic String getPassword()
public String getUsername()
public boolean getAllowCaching()
true if the save password checkbox was selected.
true if the save password checkbox was selected and false
otherwise.protected void okPressed()
The default implementation of this framework method sets
this dialog's return code to Window.OK
and closes the dialog. Subclasses may override.
public void setUsernameMutable(boolean value)
value - whether the username is mutablepublic boolean close()
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||