|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mckoi.jfccontrols.SwingBlockUtil
public class SwingBlockUtil
Helper class for providing blocking behaviour on the AWT/Swing event dispatcher thread without freezing up the user interface. While the call to 'block' will block with respect to the callee, events will still be serviced from within the 'block' method.
I consider this a mild hack. This class may be incompatible with future versions of Java if the AWT event mechanism is altered. It may also not work happily with non-Sun based implementations of Java.
Constructor Summary | |
---|---|
SwingBlockUtil()
|
Method Summary | |
---|---|
void |
block()
Utility that blocks the Swing EventDispatchThread, and then emulates the inner loop of the dispatcher thread itself. |
void |
unblock()
Unblocks any call to the 'block' method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SwingBlockUtil()
Method Detail |
---|
public void block()
public void unblock()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |