kites.visual
Class MsgBox

java.lang.Object
  extended by kites.visual.MsgBox

public class MsgBox
extends java.lang.Object

This class can display various types of message boxes with nice texts from exceptions


Constructor Summary
MsgBox()
           
 
Method Summary
static void error(java.lang.Exception e)
          Display an error message including a description derived from an exception.
static void error(java.lang.String e)
          Display an error message
private static java.lang.String getHeadline(java.lang.Exception e)
          Gives a nice (german) headline for a specific exception (only the built in ones)
static void info(java.lang.Exception e)
          Display an informative message including a description derived from an exception.
static void info(java.lang.String e)
          Display an informative message
static boolean question(java.lang.String e)
          Display a yes/no question.
static void warning(java.lang.Exception e)
          Display a warning message including a description derived from an exception.
static void warning(java.lang.String e)
          Display a warning message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MsgBox

public MsgBox()
Method Detail

error

public static void error(java.lang.Exception e)
Display an error message including a description derived from an exception.

Parameters:
e - the exception to get the message from

error

public static void error(java.lang.String e)
Display an error message

Parameters:
e - the error message

info

public static void info(java.lang.Exception e)
Display an informative message including a description derived from an exception.

Parameters:
e - the exception to get the message from

info

public static void info(java.lang.String e)
Display an informative message

Parameters:
e - the message

warning

public static void warning(java.lang.Exception e)
Display a warning message including a description derived from an exception.

Parameters:
e - the exception to get the message from

warning

public static void warning(java.lang.String e)
Display a warning message

Parameters:
e - the message

question

public static boolean question(java.lang.String e)
Display a yes/no question.

Parameters:
e - the question
Returns:
true if yes was clicked, false otherwise

getHeadline

private static java.lang.String getHeadline(java.lang.Exception e)
Gives a nice (german) headline for a specific exception (only the built in ones)

Parameters:
e - the exception to get the message from