|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.node.util.ViewUtils
public final class ViewUtils
Provides helper methods mostly useful when implementing NodeViews.
Method Summary | |
---|---|
static void |
invokeAndWaitInEDT(Runnable runMe)
Executes the specified runnable in the Swing Event Dispatch Thread. |
static void |
runOrInvokeLaterInEDT(Runnable runMe)
Executes the specified runnable some time in the Swing Event Dispatch Thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void invokeAndWaitInEDT(Runnable runMe) throws InvocationTargetRuntimeException
run
method of the runnable, otherwise it passes the
runnable to the EDT and waits until its run
method
returns.
runMe
- the run
method of this will be executed.
InvocationTargetRuntimeException
- if the executed code throws an
exception (the cause of it is set to the exception thrown by
the executed code then), or if the execution was interrupted
in the EDT.SwingUtilities.invokeAndWait(Runnable)
public static void runOrInvokeLaterInEDT(Runnable runMe)
run
method and does not return until it
finishes. Otherwise it queues the argument for execution in the EDT and
returns (not waiting for the run
method to finish).
runMe
- the run
method of this will be executed.SwingUtilities.invokeLater(Runnable)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |