org.jivesoftware.sparkimpl.plugin.alerts
Class InputTextAreaDialog

java.lang.Object
  extended by org.jivesoftware.sparkimpl.plugin.alerts.InputTextAreaDialog
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener

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

InputTextAreaDialog class can be used for any input required that a simple text field could not handle.

Version:
1.0, 06/28/2005
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
InputTextAreaDialog()
          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

InputTextAreaDialog

public InputTextAreaDialog()
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