org.vizzini.ui
Class Alert

java.lang.Object
  extended by org.vizzini.ui.Alert

public class Alert
extends Object

Provides a utility class to show alert dialogs to the user.

Since:
v0.1
Version:
v0.2
Author:
Jeffrey M. Thompson

Constructor Summary
Alert()
           
 
Method Summary
static void showException(Exception e)
          Show the given exception to the user.
static void showException(Exception e, String suffixMessage)
          Show the given exception to the user.
static void showException(Frame frame, Exception e)
          Show the given exception to the user.
static void showException(Frame frame, Exception e, String suffixMessage)
          Show the given exception to the user.
static void showException(Frame frame, String prefixMessage, Exception e)
          Show the given exception to the user.
static void showException(Frame frame, String prefixMessage, Exception e, String suffixMessage)
          Show the given exception to the user.
static void showException(Frame frame, String prefixMessage, Exception e, String suffixMessage, boolean showStackTrace)
          Show the given exception to the user.
static void showException(String prefixMessage, Exception e)
          Show the given exception to the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Alert

public Alert()
Method Detail

showException

public static void showException(Exception e)
Show the given exception to the user.

Parameters:
e - The exception.
Since:
v0.1

showException

public static void showException(String prefixMessage,
                                 Exception e)
Show the given exception to the user.

Parameters:
prefixMessage - Message to put before the exception.
e - The exception.
Since:
v0.1

showException

public static void showException(Exception e,
                                 String suffixMessage)
Show the given exception to the user.

Parameters:
e - The exception.
suffixMessage - Message to put after the exception.
Since:
v0.1

showException

public static void showException(Frame frame,
                                 Exception e)
Show the given exception to the user.

Parameters:
frame - The parent frame (can be null).
e - The exception.
Since:
v0.1

showException

public static void showException(Frame frame,
                                 String prefixMessage,
                                 Exception e)
Show the given exception to the user.

Parameters:
frame - The parent frame (can be null).
prefixMessage - Message to put before the exception.
e - The exception.
Since:
v0.1

showException

public static void showException(Frame frame,
                                 Exception e,
                                 String suffixMessage)
Show the given exception to the user.

Parameters:
frame - The parent frame (can be null).
e - The exception.
suffixMessage - Message to put after the exception.
Since:
v0.1

showException

public static void showException(Frame frame,
                                 String prefixMessage,
                                 Exception e,
                                 String suffixMessage)
Show the given exception to the user.

Parameters:
frame - The parent frame (can be null).
prefixMessage - Message to put before the exception.
e - The exception.
suffixMessage - Message to put after the exception.
Since:
v0.1

showException

public static void showException(Frame frame,
                                 String prefixMessage,
                                 Exception e,
                                 String suffixMessage,
                                 boolean showStackTrace)
Show the given exception to the user.

Parameters:
frame - The parent frame (can be null).
prefixMessage - Message to put before the exception.
e - The exception.
suffixMessage - Message to put after the exception.
showStackTrace - Flag indicating whether to show the exception's stack trace.
Since:
v0.1


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02