public class DialogManager
extends java.lang.Object
ZDialog
or a
ZFrame
. This reference is used for hooking up MessageDialog
or
ConfirmDialog
instances. Error dialogs such as all MessageDialog
s are hooke up
automatically to the current window. If a Frame or dialog pops to front it is ensured, that all
open error dialogs automatically pop on top of them.Constructor and Description |
---|
DialogManager() |
Modifier and Type | Method and Description |
---|---|
void |
addMessageDialog(MessageDialog dialog) |
void |
closeAllMessageDialogs()
Programmatically closes all open
MessageDialog instances |
java.awt.Window |
getCurrentWindow()
Returns a global reference to the current window which is the JFrame
or JDialog that currently has the input focus.
|
javax.swing.JFrame |
getMainFrame()
Returns a global reference to the MainFrame.
|
void |
removeMessageDialog(MessageDialog dialog) |
void |
resetCursor(java.awt.Window window)
Resets the cursor on the given window to the default cursor.
|
java.awt.Window |
setBusyCursor()
Sets the busy cursor on the current window in order to mark the system as busy.
|
void |
setCurrentWindow(java.awt.Window w)
Sets the current window for global access
|
void |
setMainFrame(javax.swing.JFrame f)
Sets the MainFrame for global access.
|
public void addMessageDialog(MessageDialog dialog)
public void removeMessageDialog(MessageDialog dialog)
public void setCurrentWindow(java.awt.Window w)
public void closeAllMessageDialogs()
MessageDialog
instancespublic java.awt.Window getCurrentWindow()
getMainFrame()
public void setMainFrame(javax.swing.JFrame f)
public javax.swing.JFrame getMainFrame()
getCurrentWindow()
public java.awt.Window setBusyCursor()
resetCursor(Window)
public void resetCursor(java.awt.Window window)
setBusyCursor()
Copyright © 2014 EsprIT-Systems. All Rights Reserved.