halo.userinterface.gui.guitools
Class DisplayWarnings

java.lang.Object
  extended by halo.userinterface.gui.guitools.DisplayWarnings

public class DisplayWarnings
extends java.lang.Object

Shows warning and error dialogs with a given text message

Author:
Stefanie Kaufmann

Constructor Summary
DisplayWarnings()
           
 
Method Summary
static void error(java.lang.String text, java.awt.Component gui)
          Shows an error dialog
static void warning(java.lang.String text, java.awt.Component gui)
          Shows a warning dialog
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisplayWarnings

public DisplayWarnings()
Method Detail

warning

public static void warning(java.lang.String text,
                           java.awt.Component gui)
Shows a warning dialog

Parameters:
text - The warning text that is displayed
gui - The component in which the dialog will be opened

error

public static void error(java.lang.String text,
                         java.awt.Component gui)
Shows an error dialog

Parameters:
text - The error text that is displayed
gui - The component in wich the dialog will be opened