public class IstiPasswordDialog extends IstiDialogPopup implements PasswordAuthenticator
IstiDialogPopup.CloseListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LOGIN_DIALOG_CANCEL_OPTION_STRING
Cancel button-option string for login dialog.
|
static java.lang.String |
LOGIN_DIALOG_DEFAULT_OPTION_STRING
Default button-option string for login dialog.
|
static java.lang.String |
LOGIN_DIALOG_DEFAULT_TITLE_STRING
Default title string to login dialog.
|
CANCEL_OPTION, CLOSED_OPTION, DEFAULT_OPTION, DISPOSE_ON_CLOSE, disposeDialogOnButtonFlag, dlgObj, DO_NOTHING_ON_CLOSE, enforceDispatchThreadFlag, ERROR_MESSAGE, HIDE_ON_CLOSE, hideDialogOnButtonFlag, INFORMATION_MESSAGE, initialFocusCompObj, initialFocusFlag, maxHeightLimitFlag, messageString, NO_AUTOBUTTONS_OPTION, NO_OPTION, OK_CANCEL_OPTION, OK_OPTION, optionsArr, packNeededFlag, paneObj, parentHeightLimitFlag, PLAIN_MESSAGE, QUESTION_MESSAGE, repackCheckLocationObj, repackNeededFlag, staticEnforceDispatchThreadFlag, staticMaxHeightLimitFlag, staticParentHeightLimitFlag, waitingForShowFlag, WARNING_MESSAGE, YES_NO_CANCEL_OPTION, YES_NO_OPTION, YES_OPTION
Modifier | Constructor and Description |
---|---|
|
IstiPasswordDialog(java.awt.Component parentComp)
Creates a password dialog with restricted character input for the
username.
|
|
IstiPasswordDialog(java.awt.Component parentComp,
java.lang.String titleStr)
Creates a password dialog with restricted character input for the
username.
|
|
IstiPasswordDialog(java.awt.Component parentComp,
java.lang.String titleStr,
IstiPasswordPanel passwordPanel)
Creates a password dialog.
|
protected |
IstiPasswordDialog(java.awt.Component parentComp,
java.lang.String titleStr,
IstiPasswordPanel passwordPanel,
javax.swing.JButton okButton,
javax.swing.JButton cancelButton)
Creates a password dialog.
|
|
IstiPasswordDialog(java.awt.Component parentComp,
java.lang.String titleStr,
java.lang.String panelPromptStr)
Creates a password dialog with restricted character input for the
username.
|
Modifier and Type | Method and Description |
---|---|
char[] |
getPassword()
Return the password.
|
java.net.PasswordAuthentication |
getPasswordAuthentication()
Get the password authentication and clear this dialog's password.
|
IstiPasswordPanel |
getPasswordPanel()
Gets the password panel.
|
java.lang.String |
getUsernameText()
Return the username text.
|
void |
setPassword(char[] password)
Sets the password.
|
void |
setUsernameAsInitalFocus()
Sets the "username" field to have the initial focus.
|
void |
setUsernameText(java.lang.String usernameText)
Sets the username text.
|
addCloseListener, addComponentListener, addPropertyChangeListener, addPropertyChangeListener, addWindowListener, allowDialogClose, allowDialogClose, close, close, closeWithWait, closeWithWait, createDialog, createDialog, dispose, doDelayedRepack, doPack, doSetDialogVisible, doSetVisible, getBackground, getDialogObj, getDisposeDialogOnButtonFlag, getEnforceDispatchThreadFlag, getForeground, getHideDialogOnButtonFlag, getInputValue, getMaxHeightLimit, getMessageObj, getMessageStr, getOptionPaneObj, getParentHeightLimit, getPreferredSize, getRepackNeededFlag, getStaticEnforceDispatchThreadFlag, getStaticMaxHeightLimit, getStaticParentHeightLimit, getTitleStr, getUserMessageString, getValue, getWindowForComponent, hide, invalidate, isClosed, isModal, isShowIfNotClosed, isShowing, isVisible, pack, removeCloseListener, removeComponentListener, removePropertyChangeListener, removePropertyChangeListener, removeWindowListener, repaint, requestFocus, selectAndShow, setBackground, setDefaultCloseOperation, setDisposeDialogOnButtonFlag, setEnforceDispatchThreadFlag, setForeground, setHideDialogOnButtonFlag, setInitialFocus, setInitialFocusComponent, setLocation, setLocation, setLocationRelativeTo, setMaxHeightLimit, setMessageObj, setMessageStr, setMinimumSize, setModal, setOptionPaneValue, setParentHeightLimit, setPreferredSize, setRepackNeededFlag, setResizable, setShowIfNotClosed, setSize, setSize, setStaticEnforceDispatchThreadFlag, setStaticMaxHeightLimit, setStaticParentHeightLimit, setTitleStr, setUserMessageString, setVisible, setVisibleViaInvokeLater, show, showAndReturnIndex, showAndWait, showMessageDialog, showMessageDialog, showOptionDialog, showOptionDialog, showOptionDialog, showOptionDialog, showOptionDialog, showOptionDialog, showOptionDialog, showOptionDialog, validate, waitForDialogVisible
public static java.lang.String LOGIN_DIALOG_DEFAULT_TITLE_STRING
public static java.lang.String LOGIN_DIALOG_DEFAULT_OPTION_STRING
public static java.lang.String LOGIN_DIALOG_CANCEL_OPTION_STRING
public IstiPasswordDialog(java.awt.Component parentComp)
parentComp
- the parent component for the popup.public IstiPasswordDialog(java.awt.Component parentComp, java.lang.String titleStr)
parentComp
- the parent component for the popup.titleStr
- the title string for popup window.public IstiPasswordDialog(java.awt.Component parentComp, java.lang.String titleStr, java.lang.String panelPromptStr)
parentComp
- the parent component for the popup.titleStr
- the title string for popup window.panelPromptStr
- the "prompt" text to be shown on the panel,
or null for none.public IstiPasswordDialog(java.awt.Component parentComp, java.lang.String titleStr, IstiPasswordPanel passwordPanel)
parentComp
- the parent component for the popup.titleStr
- the title string for popup window.passwordPanel
- the password panel.protected IstiPasswordDialog(java.awt.Component parentComp, java.lang.String titleStr, IstiPasswordPanel passwordPanel, javax.swing.JButton okButton, javax.swing.JButton cancelButton)
parentComp
- the parent component for the popup.titleStr
- the title string for popup window.passwordPanel
- the password panel.okButton
- the ok button.cancelButton
- the cancel button.public IstiPasswordPanel getPasswordPanel()
public char[] getPassword()
public java.lang.String getUsernameText()
public void setPassword(char[] password)
passwordText
- the password.public void setUsernameText(java.lang.String usernameText)
usernameText
- the username text.public void setUsernameAsInitalFocus()
public java.net.PasswordAuthentication getPasswordAuthentication()
getPasswordAuthentication
in interface PasswordAuthenticator