prolog.ui
Class UiLocker

java.lang.Object
  |
  +--prolog.ui.UiLocker

public class UiLocker
extends java.lang.Object

Title: GuiLocker Description: This class locks a complete gui to perform background work, components that should not be locked must implement the IUnlockable interface. This is a class is an alternative for the glasspane hacks.


Field Summary
protected  boolean itWasMeWhoLocked
          set to prevent double locking
protected  java.util.HashMap map
          the hashtable to save all components that were disabled
protected static java.util.Map preventClassMap
           
protected  java.awt.Component rootPane
          the root pane to lock
 
Constructor Summary
UiLocker(java.awt.Component component)
           
UiLocker(javax.swing.RootPaneContainer rp)
          constructs the gui locker
 
Method Summary
(package private) static void ()
           
 boolean getIsLocked()
          returns the locked state
 void lock()
          locks the gui
private  void lock(java.awt.Component component)
          the recursive lock method
 void unlock()
          unlocks the gui
private  void unlock(java.awt.Component component)
          the recursive unlock method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

preventClassMap

protected static java.util.Map preventClassMap

rootPane

protected java.awt.Component rootPane
the root pane to lock

map

protected java.util.HashMap map
the hashtable to save all components that were disabled

itWasMeWhoLocked

protected boolean itWasMeWhoLocked
set to prevent double locking
Constructor Detail

UiLocker

public UiLocker(java.awt.Component component)

UiLocker

public UiLocker(javax.swing.RootPaneContainer rp)
constructs the gui locker
Method Detail

static void ()

getIsLocked

public boolean getIsLocked()
returns the locked state

lock

public void lock()
locks the gui

unlock

public void unlock()
unlocks the gui

lock

private void lock(java.awt.Component component)
the recursive lock method

unlock

private void unlock(java.awt.Component component)
the recursive unlock method