org.jivesoftware.spark.component
Class PasswordDialog

java.lang.Object
  extended by org.jivesoftware.spark.component.PasswordDialog
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener

public final class PasswordDialog
extends java.lang.Object
implements java.beans.PropertyChangeListener

PasswordDialog class is used to retrieve information from a user.

Author:
Derek DeMoro

Field Summary
 javax.swing.Action nextFocusAction
          Move to focus forward action.
 javax.swing.Action prevFocusAction
          Moves the focus backwards in the dialog.
 
Constructor Summary
PasswordDialog()
          Empty Constructor.
 
Method Summary
 java.lang.String getInput(java.lang.String title, java.lang.String description, javax.swing.Icon icon, int width, int height)
          Returns the input from a user.
 java.lang.String getPassword(java.lang.String title, java.lang.String description, javax.swing.Icon icon, java.awt.Component parent)
          Prompt and return input.
 void propertyChange(java.beans.PropertyChangeEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nextFocusAction

public javax.swing.Action nextFocusAction
Move to focus forward action.


prevFocusAction

public javax.swing.Action prevFocusAction
Moves the focus backwards in the dialog.

Constructor Detail

PasswordDialog

public PasswordDialog()
Empty Constructor.

Method Detail

getInput

public java.lang.String getInput(java.lang.String title,
                                 java.lang.String description,
                                 javax.swing.Icon icon,
                                 int width,
                                 int height)
Returns the input from a user.

Parameters:
title - the title of the dialog.
description - the dialog description.
icon - the icon to use.
width - the dialog width
height - the dialog height
Returns:
the users input.

getPassword

public java.lang.String getPassword(java.lang.String title,
                                    java.lang.String description,
                                    javax.swing.Icon icon,
                                    java.awt.Component parent)
Prompt and return input.

Parameters:
title - the title of the dialog.
description - the dialog description.
icon - the icon to use.
parent - the parent to use.
Returns:
the user input.

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent e)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener