org.rapla.gui.toolkit
Class ErrorDialog

java.lang.Object
  extended by org.rapla.gui.toolkit.ErrorDialog

public final class ErrorDialog
extends Object


Field Summary
static int ERROR_MESSAGE
           
static int EXCEPTION_MESSAGE
           
static boolean THROW_ERROR_DIALOG_EXCEPTION
          This is for the test-cases only.
static int WARNING_MESSAGE
           
 
Constructor Summary
ErrorDialog(RaplaContext sm)
           
 
Method Summary
protected  I18nBundle getI18n()
           
protected  Logger getLogger()
           
static String getMessage(Throwable e)
           
 void show(String message)
           
 void showExceptionDialog(Throwable e, Component owner)
           
 void showWarningDialog(String message, Component owner)
           
 void showWarningDialog(String title, String message, Component owner)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WARNING_MESSAGE

public static final int WARNING_MESSAGE
See Also:
Constant Field Values

ERROR_MESSAGE

public static final int ERROR_MESSAGE
See Also:
Constant Field Values

EXCEPTION_MESSAGE

public static final int EXCEPTION_MESSAGE
See Also:
Constant Field Values

THROW_ERROR_DIALOG_EXCEPTION

public static boolean THROW_ERROR_DIALOG_EXCEPTION
This is for the test-cases only. If this flag is set the ErrorDialog throws an ErrorDialogException instead of displaying the dialog. This is useful for testing.

Constructor Detail

ErrorDialog

public ErrorDialog(RaplaContext sm)
            throws RaplaException
Parameters:
sm -
Throws:
RaplaException
Method Detail

getI18n

protected I18nBundle getI18n()

getLogger

protected Logger getLogger()

show

public void show(String message)

showWarningDialog

public void showWarningDialog(String message,
                              Component owner)

getMessage

public static String getMessage(Throwable e)

showExceptionDialog

public void showExceptionDialog(Throwable e,
                                Component owner)

showWarningDialog

public void showWarningDialog(String title,
                              String message,
                              Component owner)


Copyright © 2000-2006 Rapla Team. All Rights Reseserved.