com.isti.util.gui
Class IstiPasswordDialog

java.lang.Object
  extended by com.isti.util.gui.IstiDialogPopup
      extended by com.isti.util.gui.IstiPasswordDialog
All Implemented Interfaces:
IstiDialogInterface, PasswordAuthenticator, javax.swing.WindowConstants

public class IstiPasswordDialog
extends IstiDialogPopup
implements PasswordAuthenticator

Class IstiPasswordDialog defines a password dialog.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.isti.util.gui.IstiDialogPopup
IstiDialogPopup.CloseListener
 
Field Summary
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.
 
Fields inherited from class com.isti.util.gui.IstiDialogPopup
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
 
Fields inherited from interface javax.swing.WindowConstants
EXIT_ON_CLOSE
 
Constructor Summary
  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.
 
Method Summary
 java.net.PasswordAuthentication getPasswordAuthentication()
          Get the password authentication and clear this dialog's password.
 IstiPasswordPanel getPasswordPanel()
          Gets the password panel.
 java.lang.String getPasswordText()
          Return the password text.
 java.lang.String getUsernameText()
          Return the username text.
 void setPasswordText(java.lang.String passwordText)
          Sets the password text.
 void setUsernameAsInitalFocus()
          Sets the "username" field to have the initial focus.
 void setUsernameText(java.lang.String usernameText)
          Sets the username text.
 
Methods inherited from class com.isti.util.gui.IstiDialogPopup
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, getRepackNeededFlag, getStaticEnforceDispatchThreadFlag, getStaticMaxHeightLimit, getStaticParentHeightLimit, getTitleStr, getUserMessageString, getValue, getWindowForComponent, hide, invalidate, isModal, 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, setModal, setOptionPaneValue, setParentHeightLimit, setRepackNeededFlag, setResizable, setSize, setSize, setStaticEnforceDispatchThreadFlag, setStaticMaxHeightLimit, setStaticParentHeightLimit, setTitleStr, setUserMessageString, setVisible, setVisibleViaInvokeLater, show, showAndReturnIndex, showAndWait, showMessageDialog, showMessageDialog, showOptionDialog, showOptionDialog, showOptionDialog, showOptionDialog, showOptionDialog, showOptionDialog, showOptionDialog, showOptionDialog, validate, waitForDialogVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGIN_DIALOG_DEFAULT_TITLE_STRING

public static java.lang.String LOGIN_DIALOG_DEFAULT_TITLE_STRING
Default title string to login dialog.


LOGIN_DIALOG_DEFAULT_OPTION_STRING

public static java.lang.String LOGIN_DIALOG_DEFAULT_OPTION_STRING
Default button-option string for login dialog.


LOGIN_DIALOG_CANCEL_OPTION_STRING

public static java.lang.String LOGIN_DIALOG_CANCEL_OPTION_STRING
Cancel button-option string for login dialog.

Constructor Detail

IstiPasswordDialog

public IstiPasswordDialog(java.awt.Component parentComp)
Creates a password dialog with restricted character input for the username.

Parameters:
parentComp - the parent component for the popup.

IstiPasswordDialog

public IstiPasswordDialog(java.awt.Component parentComp,
                          java.lang.String titleStr)
Creates a password dialog with restricted character input for the username.

Parameters:
parentComp - the parent component for the popup.
titleStr - the title string for popup window.

IstiPasswordDialog

public IstiPasswordDialog(java.awt.Component parentComp,
                          java.lang.String titleStr,
                          java.lang.String panelPromptStr)
Creates a password dialog with restricted character input for the username.

Parameters:
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.

IstiPasswordDialog

public IstiPasswordDialog(java.awt.Component parentComp,
                          java.lang.String titleStr,
                          IstiPasswordPanel passwordPanel)
Creates a password dialog.

Parameters:
parentComp - the parent component for the popup.
titleStr - the title string for popup window.
passwordPanel - the password panel.

IstiPasswordDialog

protected IstiPasswordDialog(java.awt.Component parentComp,
                             java.lang.String titleStr,
                             IstiPasswordPanel passwordPanel,
                             javax.swing.JButton okButton,
                             javax.swing.JButton cancelButton)
Creates a password dialog.

Parameters:
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.
Method Detail

getPasswordPanel

public IstiPasswordPanel getPasswordPanel()
Gets the password panel.

Returns:
the password panel.

getPasswordText

public java.lang.String getPasswordText()
Return the password text.

Returns:
the password text.

getUsernameText

public java.lang.String getUsernameText()
Return the username text.

Returns:
the username text.

setPasswordText

public void setPasswordText(java.lang.String passwordText)
Sets the password text.

Parameters:
passwordText - the password text.

setUsernameText

public void setUsernameText(java.lang.String usernameText)
Sets the username text.

Parameters:
usernameText - the username text.

setUsernameAsInitalFocus

public void setUsernameAsInitalFocus()
Sets the "username" field to have the initial focus.


getPasswordAuthentication

public java.net.PasswordAuthentication getPasswordAuthentication()
Get the password authentication and clear this dialog's password.

Specified by:
getPasswordAuthentication in interface PasswordAuthenticator
Returns:
the password authentication or null if none.