de.hillenbrand.jreqtools
Class JReqTools

java.lang.Object
  extended byde.hillenbrand.jreqtools.JReqTools

public final class JReqTools
extends java.lang.Object

A convenience class that provides "shortcuts" to frequently used requesters and dialogs.


Method Summary
static javax.swing.Action getAboutAction(javax.swing.JDialog parent, java.lang.String abouttext)
           
static javax.swing.Action getAboutAction(javax.swing.JFrame parent, java.lang.String abouttext)
           
static java.lang.String getResourceString(java.lang.String id)
           
static java.lang.String getResourceString(java.lang.String id, java.lang.String arg1)
           
static byte requestByte(javax.swing.JDialog parent, java.lang.String title, java.lang.String message, byte defaultValue)
           
static byte requestByte(javax.swing.JFrame parent, java.lang.String title, java.lang.String message, byte defaultValue)
           
static double requestDouble(javax.swing.JDialog parent, java.lang.String title, java.lang.String message, double defaultValue)
           
static double requestDouble(javax.swing.JFrame parent, java.lang.String title, java.lang.String message, double defaultValue)
           
static float requestFloat(javax.swing.JDialog parent, java.lang.String title, java.lang.String message, float defaultValue)
           
static float requestFloat(javax.swing.JFrame parent, java.lang.String title, java.lang.String message, float defaultValue)
           
static javax.swing.Icon requestIcon(javax.swing.JDialog parent, java.lang.String title, java.lang.String message, javax.swing.Icon[] icons, javax.swing.Icon defaultIcon)
           
static javax.swing.Icon requestIcon(javax.swing.JFrame parent, java.lang.String title, java.lang.String message, javax.swing.Icon[] icons, javax.swing.Icon defaultIcon)
           
static int requestInteger(javax.swing.JDialog parent, java.lang.String title, java.lang.String message, int defaultValue)
           
static int requestInteger(javax.swing.JFrame parent, java.lang.String title, java.lang.String message, int defaultValue)
           
static long requestLong(javax.swing.JDialog parent, java.lang.String title, java.lang.String message, long defaultValue)
           
static long requestLong(javax.swing.JFrame parent, java.lang.String title, java.lang.String message, long defaultValue)
           
static java.lang.Object requestObject(javax.swing.JDialog parent, java.lang.String title, java.lang.String message, java.lang.Object[] selectableValues)
           
static java.lang.Object requestObject(javax.swing.JDialog parent, java.lang.String title, java.lang.String message, java.lang.Object[] selectableValues, java.lang.Object selectedValue)
           
static java.lang.Object requestObject(javax.swing.JFrame parent, java.lang.String title, java.lang.String message, java.lang.Object[] selectableValues)
           
static java.lang.Object requestObject(javax.swing.JFrame parent, java.lang.String title, java.lang.String message, java.lang.Object[] selectableValues, java.lang.Object selectedValue)
           
static char[] requestPassword(javax.swing.JDialog parent, java.lang.String title, java.lang.String message)
           
static char[] requestPassword(javax.swing.JFrame parent, java.lang.String title, java.lang.String message)
           
static short requestShort(javax.swing.JDialog parent, java.lang.String title, java.lang.String message, short defaultValue)
           
static short requestShort(javax.swing.JFrame parent, java.lang.String title, java.lang.String message, short defaultValue)
           
static java.lang.String requestString(javax.swing.JDialog parent, java.lang.String title, java.lang.String message, java.lang.String defaultValue)
           
static java.lang.String requestString(javax.swing.JFrame parent, java.lang.String title, java.lang.String message, java.lang.String defaultValue)
           
static java.lang.String requestText(javax.swing.JDialog parent, java.lang.String title, java.lang.String message, java.lang.String defaultValue)
           
static java.lang.String requestText(javax.swing.JFrame parent, java.lang.String title, java.lang.String message, java.lang.String defaultValue)
           
static void showAboutMessage(javax.swing.JDialog parent, java.lang.String message)
           
static void showAboutMessage(javax.swing.JFrame parent, java.lang.String message)
           
static void showError(javax.swing.JDialog parent, java.lang.String message)
           
static void showError(javax.swing.JDialog parent, java.lang.String title, java.lang.String message)
           
static void showError(javax.swing.JFrame parent, java.lang.String message)
           
static void showError(javax.swing.JFrame parent, java.lang.String title, java.lang.String message)
           
static void showException(javax.swing.JDialog parent, java.lang.Throwable throwable)
           
static void showException(javax.swing.JFrame parent, java.lang.Throwable throwable)
           
static void showMessage(javax.swing.JDialog parent, java.lang.String message)
           
static void showMessage(javax.swing.JDialog parent, java.lang.String title, java.lang.String message)
           
static void showMessage(javax.swing.JFrame parent, java.lang.String message)
           
static void showMessage(javax.swing.JFrame parent, java.lang.String title, java.lang.String message)
           
static void showNotYetImplemented(javax.swing.JDialog parent)
          Pops up a dialog that tells the user that the request funtionality has not yet been implemented.
static void showNotYetImplemented(javax.swing.JFrame parent)
          Pops up a dialog that tells the user that the request funtionality has not yet been implemented.
static boolean showQuestion(javax.swing.JDialog parent, java.lang.String question)
          Shows a dialog with a question the user should answer.
static boolean showQuestion(javax.swing.JDialog parent, java.lang.String title, java.lang.String question)
          Shows a dialog with a question the user should answer.
static boolean showQuestion(javax.swing.JDialog parent, java.lang.String question, java.lang.String yesButton, java.lang.String noButton)
          Shows a dialog with a question the user should answer.
static int showQuestion(javax.swing.JDialog parent, java.lang.String title, java.lang.String question, java.lang.String[] answers, javax.swing.Icon[] buttonIcons, int defaultAnswer)
          Shows a dialog with a question the user should answer.
static int showQuestion(javax.swing.JDialog parent, java.lang.String title, java.lang.String question, java.lang.String[] answers, int defaultAnswer)
          Shows a dialog with a question the user should answer.
static boolean showQuestion(javax.swing.JDialog parent, java.lang.String title, java.lang.String question, java.lang.String yesButton, java.lang.String noButton)
          Shows a dialog with a question the user should answer.
static boolean showQuestion(javax.swing.JFrame parent, java.lang.String question)
          Shows a dialog with a question the user should answer.
static boolean showQuestion(javax.swing.JFrame parent, java.lang.String title, java.lang.String question)
          Shows a dialog with a question the user should answer.
static boolean showQuestion(javax.swing.JFrame parent, java.lang.String question, java.lang.String yesButton, java.lang.String noButton)
          Shows a dialog with a question the user should answer.
static int showQuestion(javax.swing.JFrame parent, java.lang.String title, java.lang.String question, java.lang.String[] answers, javax.swing.Icon[] buttonIcons, int defaultAnswer)
          Shows a dialog with a question the user should answer.
static int showQuestion(javax.swing.JFrame parent, java.lang.String title, java.lang.String question, java.lang.String[] answers, int defaultAnswer)
          Shows a dialog with a question the user should answer.
static boolean showQuestion(javax.swing.JFrame parent, java.lang.String title, java.lang.String question, java.lang.String yesButton, java.lang.String noButton)
          Shows a dialog with a question the user should answer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAboutAction

public static javax.swing.Action getAboutAction(javax.swing.JDialog parent,
                                                java.lang.String abouttext)

getAboutAction

public static javax.swing.Action getAboutAction(javax.swing.JFrame parent,
                                                java.lang.String abouttext)

getResourceString

public static java.lang.String getResourceString(java.lang.String id)

getResourceString

public static java.lang.String getResourceString(java.lang.String id,
                                                 java.lang.String arg1)

requestByte

public static byte requestByte(javax.swing.JDialog parent,
                               java.lang.String title,
                               java.lang.String message,
                               byte defaultValue)

requestByte

public static byte requestByte(javax.swing.JFrame parent,
                               java.lang.String title,
                               java.lang.String message,
                               byte defaultValue)

requestDouble

public static double requestDouble(javax.swing.JDialog parent,
                                   java.lang.String title,
                                   java.lang.String message,
                                   double defaultValue)

requestDouble

public static double requestDouble(javax.swing.JFrame parent,
                                   java.lang.String title,
                                   java.lang.String message,
                                   double defaultValue)

requestFloat

public static float requestFloat(javax.swing.JDialog parent,
                                 java.lang.String title,
                                 java.lang.String message,
                                 float defaultValue)

requestFloat

public static float requestFloat(javax.swing.JFrame parent,
                                 java.lang.String title,
                                 java.lang.String message,
                                 float defaultValue)

requestIcon

public static javax.swing.Icon requestIcon(javax.swing.JDialog parent,
                                           java.lang.String title,
                                           java.lang.String message,
                                           javax.swing.Icon[] icons,
                                           javax.swing.Icon defaultIcon)

requestIcon

public static javax.swing.Icon requestIcon(javax.swing.JFrame parent,
                                           java.lang.String title,
                                           java.lang.String message,
                                           javax.swing.Icon[] icons,
                                           javax.swing.Icon defaultIcon)

requestInteger

public static int requestInteger(javax.swing.JDialog parent,
                                 java.lang.String title,
                                 java.lang.String message,
                                 int defaultValue)

requestInteger

public static int requestInteger(javax.swing.JFrame parent,
                                 java.lang.String title,
                                 java.lang.String message,
                                 int defaultValue)

requestLong

public static long requestLong(javax.swing.JDialog parent,
                               java.lang.String title,
                               java.lang.String message,
                               long defaultValue)

requestLong

public static long requestLong(javax.swing.JFrame parent,
                               java.lang.String title,
                               java.lang.String message,
                               long defaultValue)

requestObject

public static java.lang.Object requestObject(javax.swing.JDialog parent,
                                             java.lang.String title,
                                             java.lang.String message,
                                             java.lang.Object[] selectableValues)

requestObject

public static java.lang.Object requestObject(javax.swing.JFrame parent,
                                             java.lang.String title,
                                             java.lang.String message,
                                             java.lang.Object[] selectableValues)

requestObject

public static java.lang.Object requestObject(javax.swing.JDialog parent,
                                             java.lang.String title,
                                             java.lang.String message,
                                             java.lang.Object[] selectableValues,
                                             java.lang.Object selectedValue)

requestObject

public static java.lang.Object requestObject(javax.swing.JFrame parent,
                                             java.lang.String title,
                                             java.lang.String message,
                                             java.lang.Object[] selectableValues,
                                             java.lang.Object selectedValue)

requestPassword

public static char[] requestPassword(javax.swing.JDialog parent,
                                     java.lang.String title,
                                     java.lang.String message)

requestPassword

public static char[] requestPassword(javax.swing.JFrame parent,
                                     java.lang.String title,
                                     java.lang.String message)

requestShort

public static short requestShort(javax.swing.JDialog parent,
                                 java.lang.String title,
                                 java.lang.String message,
                                 short defaultValue)

requestShort

public static short requestShort(javax.swing.JFrame parent,
                                 java.lang.String title,
                                 java.lang.String message,
                                 short defaultValue)

requestString

public static java.lang.String requestString(javax.swing.JDialog parent,
                                             java.lang.String title,
                                             java.lang.String message,
                                             java.lang.String defaultValue)

requestString

public static java.lang.String requestString(javax.swing.JFrame parent,
                                             java.lang.String title,
                                             java.lang.String message,
                                             java.lang.String defaultValue)

requestText

public static java.lang.String requestText(javax.swing.JDialog parent,
                                           java.lang.String title,
                                           java.lang.String message,
                                           java.lang.String defaultValue)

requestText

public static java.lang.String requestText(javax.swing.JFrame parent,
                                           java.lang.String title,
                                           java.lang.String message,
                                           java.lang.String defaultValue)

showAboutMessage

public static void showAboutMessage(javax.swing.JDialog parent,
                                    java.lang.String message)

showAboutMessage

public static void showAboutMessage(javax.swing.JFrame parent,
                                    java.lang.String message)

showError

public static void showError(javax.swing.JDialog parent,
                             java.lang.String message)

showError

public static void showError(javax.swing.JFrame parent,
                             java.lang.String message)

showError

public static void showError(javax.swing.JDialog parent,
                             java.lang.String title,
                             java.lang.String message)

showError

public static void showError(javax.swing.JFrame parent,
                             java.lang.String title,
                             java.lang.String message)

showException

public static void showException(javax.swing.JDialog parent,
                                 java.lang.Throwable throwable)

showException

public static void showException(javax.swing.JFrame parent,
                                 java.lang.Throwable throwable)

showMessage

public static void showMessage(javax.swing.JDialog parent,
                               java.lang.String message)

showMessage

public static void showMessage(javax.swing.JFrame parent,
                               java.lang.String message)

showMessage

public static void showMessage(javax.swing.JDialog parent,
                               java.lang.String title,
                               java.lang.String message)

showMessage

public static void showMessage(javax.swing.JFrame parent,
                               java.lang.String title,
                               java.lang.String message)

showNotYetImplemented

public static void showNotYetImplemented(javax.swing.JDialog parent)
Pops up a dialog that tells the user that the request funtionality has not yet been implemented.


showNotYetImplemented

public static void showNotYetImplemented(javax.swing.JFrame parent)
Pops up a dialog that tells the user that the request funtionality has not yet been implemented.


showQuestion

public static boolean showQuestion(javax.swing.JDialog parent,
                                   java.lang.String question)
Shows a dialog with a question the user should answer.

Parameters:
parent - the parent dialog
question - the question to answer

showQuestion

public static boolean showQuestion(javax.swing.JFrame parent,
                                   java.lang.String question)
Shows a dialog with a question the user should answer.

Parameters:
parent - the parent frame
question - the question to answer

showQuestion

public static boolean showQuestion(javax.swing.JDialog parent,
                                   java.lang.String title,
                                   java.lang.String question)
Shows a dialog with a question the user should answer.

Parameters:
parent - the parent dialog
title - the title for the dialog
question - the question to answer

showQuestion

public static boolean showQuestion(javax.swing.JFrame parent,
                                   java.lang.String title,
                                   java.lang.String question)
Shows a dialog with a question the user should answer.

Parameters:
parent - the parent frame
title - the title for the dialog
question - the question to answer

showQuestion

public static boolean showQuestion(javax.swing.JDialog parent,
                                   java.lang.String question,
                                   java.lang.String yesButton,
                                   java.lang.String noButton)
Shows a dialog with a question the user should answer.

Parameters:
parent - the parent dialog
question - the question to answer
yesButton - the text for the yes-button
noButton - the text for the no-button

showQuestion

public static boolean showQuestion(javax.swing.JFrame parent,
                                   java.lang.String question,
                                   java.lang.String yesButton,
                                   java.lang.String noButton)
Shows a dialog with a question the user should answer.

Parameters:
parent - the parent frame
question - the question to answer
yesButton - the text for the yes-button
noButton - the text for the no-button

showQuestion

public static boolean showQuestion(javax.swing.JDialog parent,
                                   java.lang.String title,
                                   java.lang.String question,
                                   java.lang.String yesButton,
                                   java.lang.String noButton)
Shows a dialog with a question the user should answer.

Parameters:
parent - the parent dialog
title - the title of the dialog
question - the question to answer
yesButton - the text for the yes-button
noButton - the text for the no-button

showQuestion

public static boolean showQuestion(javax.swing.JFrame parent,
                                   java.lang.String title,
                                   java.lang.String question,
                                   java.lang.String yesButton,
                                   java.lang.String noButton)
Shows a dialog with a question the user should answer.

Parameters:
parent - the parent frame
title - the title of the dialog
question - the question to answer
yesButton - the text for the yes-button
noButton - the text for the no-button

showQuestion

public static int showQuestion(javax.swing.JDialog parent,
                               java.lang.String title,
                               java.lang.String question,
                               java.lang.String[] answers,
                               int defaultAnswer)
Shows a dialog with a question the user should answer.

Parameters:
parent - the parent dialog
title - the title of the dialog
question - the question to answer
answers - the possible answers
defaultAnswer - the index of the pre-selected answer

showQuestion

public static int showQuestion(javax.swing.JFrame parent,
                               java.lang.String title,
                               java.lang.String question,
                               java.lang.String[] answers,
                               int defaultAnswer)
Shows a dialog with a question the user should answer.

Parameters:
parent - the parent frame
title - the title of the dialog
question - the question to answer
answers - the possible answers
defaultAnswer - the index of the pre-selected answer

showQuestion

public static int showQuestion(javax.swing.JDialog parent,
                               java.lang.String title,
                               java.lang.String question,
                               java.lang.String[] answers,
                               javax.swing.Icon[] buttonIcons,
                               int defaultAnswer)
Shows a dialog with a question the user should answer.

Parameters:
parent - the parent dialog
title - the title of the dialog
question - the question to answer
answers - the possible answers
buttonIcons - the icons that will be shown at each button
defaultAnswer - the index of the pre-selected answer

showQuestion

public static int showQuestion(javax.swing.JFrame parent,
                               java.lang.String title,
                               java.lang.String question,
                               java.lang.String[] answers,
                               javax.swing.Icon[] buttonIcons,
                               int defaultAnswer)
Shows a dialog with a question the user should answer.

Parameters:
parent - the parent frame
title - the title of the dialog
question - the question to answer
answers - the possible answers
buttonIcons - the icons that will be shown at each button
defaultAnswer - the index of the pre-selected answer