de.hillenbrand.jreqtools
Class ChangePasswordRequester
java.lang.Object
de.hillenbrand.jreqtools.AbstractRequester
de.hillenbrand.jreqtools.OkCancelRequester
de.hillenbrand.jreqtools.ChangePasswordRequester
public class ChangePasswordRequester
- extends OkCancelRequester
A requester that allows a user to change his password, i.e. a requester with three text fields. The first
one is for the old password, and the second and third are for the new password.
Field Summary |
protected javax.swing.JLabel |
msg
|
protected javax.swing.JPasswordField |
p1
|
protected javax.swing.JPasswordField |
p2
|
protected javax.swing.JPasswordField |
p3
|
Constructor Summary |
ChangePasswordRequester(java.lang.String title)
Constructs a new ChangePasswordRequester with a title and a default message. |
ChangePasswordRequester(java.lang.String title,
java.lang.String message)
Constructs a new ChangePasswordRequester with a title and a message. |
Methods inherited from class de.hillenbrand.jreqtools.OkCancelRequester |
cancel, createContentPane, getComment, getDefaultButton, getIcon, getPreferredRequesterSize, getReturnValue, isDrawFirstSeparator, isDrawSecondSeparator, ok, setCancelButtonText, setComment, setDrawFirstSeparator, setDrawSecondSeparator, setDrawSeparators, setIcon, setOkButtonText, simulateCancelPressed, simulateOkPressed |
Methods inherited from class de.hillenbrand.jreqtools.AbstractRequester |
_checkLocation, _checkLocation, _checkSize, _checkSize, checkForClass, enableHelpKey4JavaHelp, getBounds, getLocation, getMessage, getSize, getTitle, request, request, request, setBorder, setBounds, setBounds, setLocation, setLocation, setMessage, setSize, setSize, setTitle, setVisible, showError, showException, showMessage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
p1
protected final javax.swing.JPasswordField p1
p2
protected final javax.swing.JPasswordField p2
p3
protected final javax.swing.JPasswordField p3
msg
protected final javax.swing.JLabel msg
ChangePasswordRequester
public ChangePasswordRequester(java.lang.String title)
- Constructs a new ChangePasswordRequester with a title and a default message.
- Parameters:
title
-
ChangePasswordRequester
public ChangePasswordRequester(java.lang.String title,
java.lang.String message)
- Constructs a new ChangePasswordRequester with a title and a message.
- Parameters:
title
- message
-
getNewPassword
public byte[] getNewPassword()
- Returns the value of the newPassword property.
- Returns:
getOkTriggerComponent
protected javax.swing.JComponent getOkTriggerComponent()
- Overrides:
getOkTriggerComponent
in class OkCancelRequester
getOldPassword
public byte[] getOldPassword()
- Returns the value of the oldPassword property.
- Returns:
getUserPanel
protected javax.swing.JPanel getUserPanel()
- Specified by:
getUserPanel
in class OkCancelRequester
prepareForRequest
protected void prepareForRequest()
- Description copied from class:
AbstractRequester
- This method is being called directly before the dialog will be shown.
- Overrides:
prepareForRequest
in class OkCancelRequester
validateData
protected java.lang.String validateData()
- Overrides:
validateData
in class OkCancelRequester