com.sptci.system
Class SuggestPasswordListener

java.lang.Object
  extended by com.sptci.echo2.Listener<PasswordController>
      extended by com.sptci.system.SuggestPasswordListener
All Implemented Interfaces:
Serializable, EventListener, ActionListener

 class SuggestPasswordListener
extends Listener<PasswordController>

The action listener that is used to update PasswordPane.suggest with a recommended randomly generated password.

Copyright 2007 Sans Pareil Technologies, Inc.

Version:
$Id: SuggestPasswordListener.java 3135 2007-04-24 01:16:30Z rakesh $
Author:
Rakesh Vidyadharan 2007-04-23

Field Summary
static int PASSWORD_LENGTH
          The length of the password that is to be generated.
 
Fields inherited from class com.sptci.echo2.Listener
controller, logger
 
Constructor Summary
SuggestPasswordListener(PasswordController controller)
          Create a new instance of the listener backed by the specified controller.
 
Method Summary
 void actionPerformed(ActionEvent event)
          The action listener implementation.
 
Methods inherited from class com.sptci.echo2.Listener
getController
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PASSWORD_LENGTH

public static final int PASSWORD_LENGTH
The length of the password that is to be generated. 8

See Also:
Constant Field Values
Constructor Detail

SuggestPasswordListener

SuggestPasswordListener(PasswordController controller)
Create a new instance of the listener backed by the specified controller.

Parameters:
controller - The controller to use to access the view that is to be updated.
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
The action listener implementation. Updates PasswordPane.suggest with a recommended value.

See Also:
PasswordController.setSuggest(java.lang.String), PasswordGenerator.generate( int )