de.hillenbrand.jreqtools
Class ChangePasswordRequester

java.lang.Object
  extended by de.hillenbrand.jreqtools.AbstractRequester
      extended by de.hillenbrand.jreqtools.OkCancelRequester
          extended by 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
           
 
Fields inherited from class de.hillenbrand.jreqtools.OkCancelRequester
answer, cancel, comment, drawFirstSeparator, drawSecondSeparator, icon, ok
 
Fields inherited from class de.hillenbrand.jreqtools.AbstractRequester
CANCEL, dialog, listener, message, OK, title
 
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.
 
Method Summary
 byte[] getNewPassword()
          Returns the value of the newPassword property.
protected  javax.swing.JComponent getOkTriggerComponent()
           
 byte[] getOldPassword()
          Returns the value of the oldPassword property.
protected  javax.swing.JPanel getUserPanel()
           
protected  void prepareForRequest()
          This method is being called directly before the dialog will be shown.
protected  java.lang.String validateData()
           
 
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
 

Field Detail

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
Constructor Detail

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 -
Method Detail

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