|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gui.dialog.DialogContentPane gui.dialog.PasswordContentPane
public class PasswordContentPane
Nested Class Summary | |
---|---|
private class |
PasswordContentPane.CapsLockAdapter
Shows a warning when the caps lock key is pressed while entering passwords. |
private class |
PasswordContentPane.SetFocusComponentAdapter
|
Nested classes/interfaces inherited from class gui.dialog.DialogContentPane |
---|
DialogContentPane.CheckError, DialogContentPane.IWizardSuitable, DialogContentPane.IWizardSuitableNoWizardButtons, DialogContentPane.Layout |
Field Summary | |
---|---|
private static int |
FIELD_LENGTH
|
private javax.swing.JPasswordField |
m_currentPopup
|
private javax.swing.JLabel |
m_lblNew1
|
private javax.swing.JLabel |
m_lblNew2
|
private javax.swing.JLabel |
m_lblOld
|
private int |
m_minLength
|
private char[] |
m_oldPasswd
|
private char[] |
m_passwd
|
private javax.swing.JPopupMenu |
m_popup
|
private javax.swing.JPasswordField |
m_textConfirmPasswd
|
private javax.swing.JPasswordField |
m_textNewPasswd
|
private javax.swing.JPasswordField |
m_textOldPasswd
|
private int |
m_type
|
private static java.lang.String |
MSG_CAPS_LOCK_PRESSED
|
private static java.lang.String |
MSG_CONFIRM_LBL
|
static java.lang.String |
MSG_ENTER_LBL
|
private static java.lang.String |
MSG_ENTER_NEW_LBL
|
private static java.lang.String |
MSG_ENTER_OLD_LBL
|
static java.lang.String |
MSG_ENTER_PASSWORD_TITLE
|
private static java.lang.String |
MSG_INSERT_FROM_CLIP
|
private static java.lang.String |
MSG_PASSWORDS_DONT_MATCH
|
private static java.lang.String |
MSG_TOO_SHORT
|
private static java.lang.String |
MSG_WRONG_PASSWORD
|
static int |
NO_MINIMUM_LENGTH
|
static int |
PASSWORD_CHANGE
Replace an old password by a new one. |
static int |
PASSWORD_ENTER
Enter a single password |
static int |
PASSWORD_NEW
Enter a new password and a confirmation. |
Constructor Summary | |
---|---|
PasswordContentPane(JAPDialog a_parentDialog,
DialogContentPane a_previousContentPane,
int a_type,
java.lang.String a_strMessage)
|
|
PasswordContentPane(JAPDialog a_parentDialog,
DialogContentPane a_previousContentPane,
int a_type,
java.lang.String a_strMessage,
int a_minLength)
|
|
PasswordContentPane(JAPDialog a_parentDialog,
int a_type,
java.lang.String a_strMessage)
|
|
PasswordContentPane(JAPDialog a_parentDialog,
int a_type,
java.lang.String a_strMessage,
int a_minLength)
|
Method Summary | |
---|---|
DialogContentPane.CheckError[] |
checkYesOK()
Saves the user input. |
char[] |
getComparedPassword()
Implement this method for the types PASSWORD_ENTER or PASSWORD_CHANGE. |
java.lang.String |
getNewPasswordLabel()
|
char[] |
getOldPassword()
Needed if an old password is changed. |
java.lang.String |
getOldPasswordLabel()
|
char[] |
getPassword()
Returns the password that the user has entered. |
boolean |
isAutomaticFocusSettingEnabled()
Returns false in order to set the focus on the first available password field. |
java.lang.String |
readPassword(java.lang.Object a_message)
Updates the content pane and shows the dialog. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PASSWORD_NEW
public static final int PASSWORD_ENTER
public static final int PASSWORD_CHANGE
public static final int NO_MINIMUM_LENGTH
public static final java.lang.String MSG_ENTER_LBL
private static final int FIELD_LENGTH
private static final java.lang.String MSG_TOO_SHORT
private static final java.lang.String MSG_CAPS_LOCK_PRESSED
private static final java.lang.String MSG_WRONG_PASSWORD
public static final java.lang.String MSG_ENTER_PASSWORD_TITLE
private static final java.lang.String MSG_CONFIRM_LBL
private static final java.lang.String MSG_ENTER_OLD_LBL
private static final java.lang.String MSG_ENTER_NEW_LBL
private static final java.lang.String MSG_PASSWORDS_DONT_MATCH
private static final java.lang.String MSG_INSERT_FROM_CLIP
private javax.swing.JPasswordField m_textOldPasswd
private javax.swing.JPasswordField m_textNewPasswd
private javax.swing.JPasswordField m_textConfirmPasswd
private char[] m_passwd
private char[] m_oldPasswd
private int m_type
private int m_minLength
private javax.swing.JLabel m_lblNew1
private javax.swing.JLabel m_lblNew2
private javax.swing.JLabel m_lblOld
private javax.swing.JPopupMenu m_popup
private javax.swing.JPasswordField m_currentPopup
Constructor Detail |
---|
public PasswordContentPane(JAPDialog a_parentDialog, int a_type, java.lang.String a_strMessage, int a_minLength)
public PasswordContentPane(JAPDialog a_parentDialog, int a_type, java.lang.String a_strMessage)
public PasswordContentPane(JAPDialog a_parentDialog, DialogContentPane a_previousContentPane, int a_type, java.lang.String a_strMessage)
public PasswordContentPane(JAPDialog a_parentDialog, DialogContentPane a_previousContentPane, int a_type, java.lang.String a_strMessage, int a_minLength)
Method Detail |
---|
public java.lang.String readPassword(java.lang.Object a_message)
readPassword
in interface IMiscPasswordReader
a_message
- a message (optional); if given, a_message.toString() will be shown to the user
public char[] getPassword()
public boolean isAutomaticFocusSettingEnabled()
isAutomaticFocusSettingEnabled
in class DialogContentPane
public java.lang.String getNewPasswordLabel()
public java.lang.String getOldPasswordLabel()
public char[] getOldPassword()
public char[] getComparedPassword()
public DialogContentPane.CheckError[] checkYesOK()
checkYesOK
in class DialogContentPane
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |