org.jivesoftware.spark.component
Class InputDialog

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

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

InputDialog 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
InputDialog()
          Empty Constructor.
 
Method Summary
 java.lang.String getInput(java.lang.String title, java.lang.String description, javax.swing.Icon icon, java.awt.Component parent)
          Prompt and return input.
 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.
 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

InputDialog

public InputDialog()
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.

getInput

public java.lang.String getInput(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