|
RSE Release 3.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.rse.ui.dialogs.SystemPromptDialog
org.eclipse.rse.ui.dialogs.SystemPasswordPromptDialog
public final class SystemPasswordPromptDialog
Prompt user for password. This class is final due to the sensitive nature of the information being prompted for.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.jface.window.Window |
|---|
Window.IExceptionHandler |
| Field Summary |
|---|
| 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 | |
|---|---|
SystemPasswordPromptDialog(Shell shell,
boolean requiresUserId,
boolean requiresPassword)
Constructor for SystemPasswordPromptDialog |
|
| Method Summary | |
|---|---|
protected Control |
createInner(Composite parent)
Creates the dialog controls. |
boolean |
getForceToUpperCase()
Call this to query the force-to-uppercase setting |
protected Control |
getInitialFocusControl()
Return the Control to be given initial focus. |
boolean |
getIsSavePassword()
Return true if the user elected to save the password |
boolean |
getIsUserIdChanged()
Return true if the user changed the user id |
boolean |
getIsUserIdChangePermanent()
Return true if the user elected to make the changed user Id a permanent change. |
String |
getPassword()
Return the password entered by user |
String |
getUserId()
Return the userId entered by user |
protected boolean |
processOK()
Called when user presses OK button. |
void |
setForceToUpperCase(boolean force)
Sets the option to force the userId and password to uppercase. |
void |
setPassword(String password)
Sets the password, may be null if no password is available. |
void |
setPasswordValidator(ISystemValidator v)
Sets the validator for the password. |
void |
setSavePassword(boolean save)
Preselect the save password checkbox. |
void |
setSignonValidator(ICredentialsValidator v)
Sets the validator for the signon. |
void |
setSystemInput(IConnectorService connectorService)
Set the connector service from which the user is attempting to do a connect action. |
void |
setUserIdValidator(ISystemValidator v)
Sets the validator for the userId. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.rse.ui.dialogs.ISystemPasswordPromptDialog |
|---|
getShell, open, setBlockOnOpen, wasCancelled |
| Constructor Detail |
|---|
public SystemPasswordPromptDialog(Shell shell,
boolean requiresUserId,
boolean requiresPassword)
shell - The shell in which to base this dialog.requiresUserId - true if the userid field of the dialog must not be empty.
Used only if there is no validator specified for
setUserIdValidator(ISystemValidator).requiresPassword - true if the password field of the dialog must not be empty.
Used only if there is no password validator specified using
setPasswordValidator(ISystemValidator).| Method Detail |
|---|
public void setSystemInput(IConnectorService connectorService)
This must be called prior to opening this dialog.
setSystemInput in interface ISystemPasswordPromptDialogconnectorService - the connector service associated with this dialogpublic void setUserIdValidator(ISystemValidator v)
This must be called prior to opening this dialog if something other than the default is needed.
setUserIdValidator in interface ISystemPasswordPromptDialogv - a validatorpublic void setPasswordValidator(ISystemValidator v)
This must be called prior to opening this dialog if something other than the default is needed.
setPasswordValidator in interface ISystemPasswordPromptDialogv - a validatorpublic void setSignonValidator(ICredentialsValidator v)
This must be called prior to opening this dialog if something other than the default is needed.
setSignonValidator in interface ISystemPasswordPromptDialogv - a signon validatorpublic void setForceToUpperCase(boolean force)
The default is false. This must be called prior to opening this dialog if something other than the default is needed.
setForceToUpperCase in interface ISystemPasswordPromptDialogforce - true if the user id and password are to be forced to uppercasepublic boolean getForceToUpperCase()
getForceToUpperCase in interface ISystemPasswordPromptDialogprotected Control createInner(Composite parent)
createInner in class SystemPromptDialogparent - the containing composite control in which our controls will be created. It is assumed
to have a grid layout.
SystemPromptDialog.createInner(Composite)protected Control getInitialFocusControl()
SystemPromptDialog
getInitialFocusControl in class SystemPromptDialogSystemPromptDialog.getInitialFocusControl()public String getUserId()
ISystemPasswordPromptDialog
getUserId in interface ISystemPasswordPromptDialogpublic String getPassword()
ISystemPasswordPromptDialog
getPassword in interface ISystemPasswordPromptDialogpublic void setPassword(String password)
setPassword in interface ISystemPasswordPromptDialogpassword - the password to provide for the password field.public boolean getIsUserIdChanged()
ISystemPasswordPromptDialog
getIsUserIdChanged in interface ISystemPasswordPromptDialogpublic boolean getIsUserIdChangePermanent()
ISystemPasswordPromptDialog
getIsUserIdChangePermanent in interface ISystemPasswordPromptDialogpublic boolean getIsSavePassword()
ISystemPasswordPromptDialog
getIsSavePassword in interface ISystemPasswordPromptDialogpublic void setSavePassword(boolean save)
setSavePassword in interface ISystemPasswordPromptDialogsave - true if the save password box should be checked.protected boolean processOK()
processOK in class SystemPromptDialog
|
RSE Release 3.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||