|
RSE Release 3.4 |
|||||||||
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 |
void |
handleEvent(Event e)
Handles events generated by controls on this page. |
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 ISystemPasswordPromptDialog
connectorService
- 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 ISystemPasswordPromptDialog
v
- 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 ISystemPasswordPromptDialog
v
- 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 ISystemPasswordPromptDialog
v
- 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 ISystemPasswordPromptDialog
force
- true if the user id and password are to be forced to uppercasepublic boolean getForceToUpperCase()
getForceToUpperCase
in interface ISystemPasswordPromptDialog
protected Control createInner(Composite parent)
createInner
in class SystemPromptDialog
parent
- 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 SystemPromptDialog
SystemPromptDialog.getInitialFocusControl()
public String getUserId()
ISystemPasswordPromptDialog
getUserId
in interface ISystemPasswordPromptDialog
public String getPassword()
ISystemPasswordPromptDialog
getPassword
in interface ISystemPasswordPromptDialog
public void setPassword(String password)
setPassword
in interface ISystemPasswordPromptDialog
password
- the password to provide for the password field.public boolean getIsUserIdChanged()
ISystemPasswordPromptDialog
getIsUserIdChanged
in interface ISystemPasswordPromptDialog
public boolean getIsUserIdChangePermanent()
ISystemPasswordPromptDialog
getIsUserIdChangePermanent
in interface ISystemPasswordPromptDialog
public boolean getIsSavePassword()
ISystemPasswordPromptDialog
getIsSavePassword
in interface ISystemPasswordPromptDialog
public void setSavePassword(boolean save)
setSavePassword
in interface ISystemPasswordPromptDialog
save
- true if the save password box should be checked.protected boolean processOK()
processOK
in class SystemPromptDialog
public void handleEvent(Event e)
SystemPromptDialog
handleEvent
in interface Listener
handleEvent
in class SystemPromptDialog
|
RSE Release 3.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |