org.sourcejammer.client.gui
Class MessageBoxUtil

java.lang.Object
  |
  +--org.sourcejammer.client.gui.MessageBoxUtil

public class MessageBoxUtil
extends java.lang.Object

Title: $FileName: MessageBoxUtil.java$

Version:
$VerNum: 5$

$Description: Contains static methods for calling message dialog boxes (from JOptionPane).$ $KeyWordsOff: $

Author:
$AuthorName: Rob MacGrogan$

Nested Class Summary
private static class MessageBoxUtil.ErrorMessageRunner
           
private static class MessageBoxUtil.ErrorMessageWithCancelRunner
           
 
Field Summary
private static int MAX_DIALOG_LINE_LENGTH
           
private static int MAX_MESSAGE_LINES
           
 
Constructor Summary
MessageBoxUtil()
           
 
Method Summary
static void displayErrorMessage(java.lang.String s)
           
static void displayErrorMessage(java.lang.String[] s)
           
static void displayErrorMessage(java.lang.String[] s, boolean eventThread)
           
static void displayErrorMessage(java.lang.String s, boolean eventThread)
           
static boolean displayErrorMessageWithCancel(java.lang.String s)
           
static boolean displayErrorMessageWithCancel(java.lang.String[] s)
           
static boolean displayErrorMessageWithCancel(java.lang.String[] s, boolean eventThread)
           
static boolean displayErrorMessageWithCancel(java.lang.String s, boolean eventThread)
           
static java.lang.String[] displayInputBox(java.lang.String[] inputLabels, java.lang.String[] defaultValues, InputBox.FieldType[] types, java.lang.String title, boolean modal, java.lang.String okButtonText)
           
static java.lang.String[] displayInputBox(java.lang.String[] inputLabels, java.lang.String[] defaultValues, java.lang.String title, boolean modal, java.lang.String okButtonText)
           
static java.lang.String[] displayInputBox(java.lang.String[] inputLabels, java.lang.String title, boolean modal, java.lang.String okButtonText)
           
static void displayWarningMessage(java.lang.String s)
          Display a message.
private static void errorMessage(java.lang.String[] message)
           
private static boolean errorMessageWithCancel(java.lang.String[] message)
           
private static java.lang.String[] formatErrorMessageStrings(java.lang.String[] message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_DIALOG_LINE_LENGTH

private static final int MAX_DIALOG_LINE_LENGTH
See Also:
Constant Field Values

MAX_MESSAGE_LINES

private static final int MAX_MESSAGE_LINES
See Also:
Constant Field Values
Constructor Detail

MessageBoxUtil

public MessageBoxUtil()
Method Detail

displayErrorMessage

public static void displayErrorMessage(java.lang.String s,
                                       boolean eventThread)

displayErrorMessage

public static void displayErrorMessage(java.lang.String[] s,
                                       boolean eventThread)

displayErrorMessage

public static void displayErrorMessage(java.lang.String[] s)

displayErrorMessage

public static void displayErrorMessage(java.lang.String s)

displayWarningMessage

public static void displayWarningMessage(java.lang.String s)
Display a message.


displayErrorMessageWithCancel

public static boolean displayErrorMessageWithCancel(java.lang.String s)

displayErrorMessageWithCancel

public static boolean displayErrorMessageWithCancel(java.lang.String s,
                                                    boolean eventThread)

displayErrorMessageWithCancel

public static boolean displayErrorMessageWithCancel(java.lang.String[] s)

displayErrorMessageWithCancel

public static boolean displayErrorMessageWithCancel(java.lang.String[] s,
                                                    boolean eventThread)

displayInputBox

public static java.lang.String[] displayInputBox(java.lang.String[] inputLabels,
                                                 java.lang.String title,
                                                 boolean modal,
                                                 java.lang.String okButtonText)

displayInputBox

public static java.lang.String[] displayInputBox(java.lang.String[] inputLabels,
                                                 java.lang.String[] defaultValues,
                                                 java.lang.String title,
                                                 boolean modal,
                                                 java.lang.String okButtonText)

displayInputBox

public static java.lang.String[] displayInputBox(java.lang.String[] inputLabels,
                                                 java.lang.String[] defaultValues,
                                                 InputBox.FieldType[] types,
                                                 java.lang.String title,
                                                 boolean modal,
                                                 java.lang.String okButtonText)

errorMessageWithCancel

private static boolean errorMessageWithCancel(java.lang.String[] message)

errorMessage

private static void errorMessage(java.lang.String[] message)

formatErrorMessageStrings

private static java.lang.String[] formatErrorMessageStrings(java.lang.String[] message)


Copyright 2003 Soucejammer project.