de.michab.mack
Class ErrorDialog

java.lang.Object
  extended byde.michab.mack.ErrorDialog

public class ErrorDialog
extends java.lang.Object

Represents a singular error dialog that can be loaded with a resource file.

Version:
$Revision: 1.3 $
Author:
michab

Method Summary
static void set(java.util.ResourceBundle rb)
          Sets the resource bundle to be used for resource key resolution.
static void show(java.awt.Component parent, java.lang.String key)
          Brings up an error dialog on the passed parent component.
static void show(java.awt.Component parent, java.lang.String key, java.lang.String arg0)
          Brings up an error dialog on the passed parent component.
static void show(java.awt.Component parent, java.lang.String key, java.lang.String arg0, java.lang.String arg1)
          Brings up an error dialog on the passed parent component.
static void show(java.awt.Component parent, java.lang.String key, java.lang.String arg0, java.lang.String arg1, java.lang.String arg2)
          Brings up an error dialog on the passed parent component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

show

public static void show(java.awt.Component parent,
                        java.lang.String key,
                        java.lang.String arg0,
                        java.lang.String arg1,
                        java.lang.String arg2)
Brings up an error dialog on the passed parent component. Dialog text is created from the passed resource string and with the formatted arguments.

Parameters:
parent - The parent component for the dialog. Pass null if there's no parent component.
key - The resource key.
arg0 - Parameter to be formatted into the error message.
arg1 - Parameter to be formatted into the error message.
arg2 - Parameter to be formatted into the error message.

show

public static void show(java.awt.Component parent,
                        java.lang.String key,
                        java.lang.String arg0,
                        java.lang.String arg1)
Brings up an error dialog on the passed parent component. Dialog text is created from the passed resource string and with the formatted arguments.

Parameters:
parent - The parent component for the dialog. Pass null if there's no parent componant.
key - The resource key.
arg0 - Paramater to be formatted into the error message.
arg1 - Paramater to be formatted into the error message.

show

public static void show(java.awt.Component parent,
                        java.lang.String key,
                        java.lang.String arg0)
Brings up an error dialog on the passed parent component. Dialog text is created from the passed resource string and with the formatted arguments.

Parameters:
parent - The parent component for the dialog. Pass null if there's no parent componant.
key - The resource key.
arg0 - Paramater to be formatted into the error message.

show

public static void show(java.awt.Component parent,
                        java.lang.String key)
Brings up an error dialog on the passed parent component. Dialog text is created from the passed resource string and with the formatted arguments.

Parameters:
parent - The parent component for the dialog. Pass null if there's no parent componant.
key - The resource key.

set

public static void set(java.util.ResourceBundle rb)
Sets the resource bundle to be used for resource key resolution. The passed bundle can contain a resource key 'ERROR_DIALOG_BUNDLE' that is used as title of the dialog.

Parameters:
rb - The resource bundle to be used for resource key resolution.