jsky.util.gui
Class BusyWin

java.lang.Object
  extended by jsky.util.gui.BusyWin

public class BusyWin
extends java.lang.Object

Utility class used to disable GUI input while work is in progress.

Author:
Allan Brighton

Constructor Summary
BusyWin()
           
 
Method Summary
static void setBusy(boolean busy)
          Temporarily disable (or enable) all of the application's frames.
static void setBusy(boolean busy, java.awt.Component parent)
          Temporarily disable (or enable) all frames except the given one.
static void showBusy()
          Temporarily show the busy cursor for all application frames.
static void showBusy(java.awt.Component parent)
          Temporarily show the busy cursor for all frames except the given one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusyWin

public BusyWin()
Method Detail

setBusy

public static void setBusy(boolean busy,
                           java.awt.Component parent)
Temporarily disable (or enable) all frames except the given one.

Parameters:
busy - if true, display the busy cursor and disable all frames except the given one.
parent - if not null, this frame (JFrame or JInternalFrame) is ignored (not enabled/disabled)

setBusy

public static void setBusy(boolean busy)
Temporarily disable (or enable) all of the application's frames.

Parameters:
busy - if true, display the busy cursor and disable all frames except the given one.

showBusy

public static void showBusy(java.awt.Component parent)
Temporarily show the busy cursor for all frames except the given one.

Parameters:
parent - if not null, this frame (JFrame or JInternalFrame) is ignored (not enabled/disabled)

showBusy

public static void showBusy()
Temporarily show the busy cursor for all application frames.