net.datacrow.util
Class DcSwingUtilities

java.lang.Object
  extended by net.datacrow.util.DcSwingUtilities

public class DcSwingUtilities
extends java.lang.Object


Constructor Summary
DcSwingUtilities()
           
 
Method Summary
static void addOpenWindow(IWindow window)
           
static void displayErrorMessage(java.lang.String msg)
          Opens an error dialog.
static void displayMessage(java.lang.String msg)
          Opens an information dialog.
static boolean displayQuestion(java.lang.String msg)
          Opens a Question dialog.
static void displayWarningMessage(java.lang.String msg)
          Opens a warning dialog.
static java.util.List<IWindow> getOpenWindows()
           
static javax.swing.JFrame getRootFrame()
           
static void openDialogNativeModal(IDialog dialog)
          Opens a dialog in a native fashion.
static void removeOpenWindow(IWindow window)
           
static java.awt.Graphics setRenderingHint(java.awt.Graphics g)
           
static void setRootFrame(javax.swing.JFrame f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DcSwingUtilities

public DcSwingUtilities()
Method Detail

setRootFrame

public static void setRootFrame(javax.swing.JFrame f)

getOpenWindows

public static java.util.List<IWindow> getOpenWindows()

addOpenWindow

public static void addOpenWindow(IWindow window)

removeOpenWindow

public static void removeOpenWindow(IWindow window)

getRootFrame

public static javax.swing.JFrame getRootFrame()

displayQuestion

public static boolean displayQuestion(java.lang.String msg)
Opens a Question dialog. The message can either be a string or a resource key.

Parameters:
msg - Message string or resource key.
Returns:

displayMessage

public static void displayMessage(java.lang.String msg)
Opens an information dialog. The message can either be a string or a resource key.

Parameters:
msg - Message string or resource key.

displayErrorMessage

public static void displayErrorMessage(java.lang.String msg)
Opens an error dialog. The message can either be a string or a resource key.

Parameters:
msg - Message string or resource key.

displayWarningMessage

public static void displayWarningMessage(java.lang.String msg)
Opens a warning dialog. The message can either be a string or a resource key.

Parameters:
msg - Message string or resource key.

openDialogNativeModal

public static void openDialogNativeModal(IDialog dialog)
Opens a dialog in a native fashion. The dialog blocks all input and any current running operation. This way of opening dialogs is ideal for the startup process where there is no main window yet to use as the blocking source.

Parameters:
dialog -

setRenderingHint

public static java.awt.Graphics setRenderingHint(java.awt.Graphics g)