public class Gui
extends java.lang.Object
DialogManager
which stores a reference to the current window which
is either a ZDialog
or a ZFrame
. This reference is used for hooking up MessageDialog
or ConfirmDialog
instances.
DialogManager
also manages the automatic attachments of MessageDialog
s for
reporting error/warning/info messages. It provides a set of the show* methods for thread safe
popping up of MessageDialog
s. Note that neither of the message dialogs does any translation. So the programmer is responsible for translating the messages passed to them.
ZFrame
,
ToolDialog
,
MessageDialog
,
ConfirmDialog
Modifier and Type | Method and Description |
---|---|
static java.awt.Window |
getCurrentWindow() |
static DialogManager |
getDialogManager() |
static javax.swing.JFrame |
getMainFrame() |
static void |
invokeLater(java.lang.Runnable r)
Delegates to the event dispatcher thread in a GUI environment but ensures that the event
dispatcher thread is NOT called in a headless environment.
|
static void |
popupFrame(ZFrame frame)
Thread-safe popup of the given frame
|
static void |
popupRootFrame(java.awt.Component comp)
Thread-safe popup of the root frame in which this component resides
|
static void |
resetCursor(java.awt.Window window) |
static java.awt.Window |
setBusyCursor() |
static boolean |
showError(java.lang.Object caller,
java.lang.Exception e) |
static boolean |
showError(java.lang.Object caller,
java.lang.String message,
java.lang.Exception e) |
static boolean |
showError(java.lang.Object caller,
java.lang.String message,
java.lang.String details,
java.lang.Exception e) |
static void |
showInfo(java.lang.Object caller,
java.lang.String message) |
static void |
showInfo(java.lang.Object caller,
java.lang.String message,
java.lang.String details) |
static void |
showText(java.lang.String text)
Thread-safe popup of a TextEditor which has the given text loaded
|
static void |
showText(java.lang.String title,
java.lang.String text)
Thread-safe popup of a
TextEditorFrame which has the given text loaded |
static void |
showWarning(java.lang.Object caller,
java.lang.String message) |
static void |
showWarning(java.lang.Object caller,
java.lang.String message,
java.lang.String details) |
public static DialogManager getDialogManager()
public static java.awt.Window getCurrentWindow()
public static javax.swing.JFrame getMainFrame()
public static java.awt.Window setBusyCursor()
public static void resetCursor(java.awt.Window window)
public static void showInfo(java.lang.Object caller, java.lang.String message)
public static void showInfo(java.lang.Object caller, java.lang.String message, java.lang.String details)
public static void showWarning(java.lang.Object caller, java.lang.String message)
public static void showWarning(java.lang.Object caller, java.lang.String message, java.lang.String details)
public static boolean showError(java.lang.Object caller, java.lang.String message, java.lang.Exception e)
public static boolean showError(java.lang.Object caller, java.lang.String message, java.lang.String details, java.lang.Exception e)
public static boolean showError(java.lang.Object caller, java.lang.Exception e)
public static void popupFrame(ZFrame frame)
public static void popupRootFrame(java.awt.Component comp)
public static void showText(java.lang.String text)
showText(String, String)
public static void showText(java.lang.String title, java.lang.String text)
TextEditorFrame
which has the given text loadedtitle
- The title string in the text editortext
- the text loaded in the TextEditorFrame
public static void invokeLater(java.lang.Runnable r)
Copyright © 2014 EsprIT-Systems. All Rights Reserved.