|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--prolog.ui.UiLocker
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 |
protected static java.util.Map preventClassMap
protected java.awt.Component rootPane
protected java.util.HashMap map
protected boolean itWasMeWhoLocked
| Constructor Detail |
public UiLocker(java.awt.Component component)
public UiLocker(javax.swing.RootPaneContainer rp)
| Method Detail |
static void()
public boolean getIsLocked()
public void lock()
public void unlock()
private void lock(java.awt.Component component)
private void unlock(java.awt.Component component)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||