|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.util.SwingClosure
public abstract class SwingClosure
This class is intended to be used as a named or anonymous closure for code that must be run immediately on the Swing/AWT event thread while the caller blocks. The code to run on the Swing/AWT thread should be implemented in the runImpl() method.
Constructor Summary | |
---|---|
SwingClosure()
Creates a SwingClosure that will use SwingUtilities.invokeAndWait(..) if the current thread is not the Swing thread. |
|
SwingClosure(boolean useInvokeLater)
|
Method Summary | |
---|---|
void |
run()
This implementation ensures that the code in the runImpl(..) method is executed on the Swing/AWT event thread. |
protected abstract void |
runImpl()
Subclasses should override this method to provide the closure implementation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SwingClosure()
public SwingClosure(boolean useInvokeLater)
useInvokeLater
- Specify true
if SwingClosure
should use SwingUtilities.invokeLater(..). Specify
false
if it should use SwingUtilities.invokeAndWait(..).Method Detail |
---|
public final void run() throws ClosureException
ClosureException
.
ClosureException
protected abstract void runImpl() throws java.lang.Exception
ClosureException
.
java.lang.Exception
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |