|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ecl.datepicker.util.DisplayHelper
public final class DisplayHelper
The utility class that provides miscellaneous Displayoperations.
| Method Summary | |
|---|---|
static void |
asyncExec(Display display,
Runnable runnable)
Calls Display.asyncExec(java.lang.Runnable)for the given
display. |
static void |
asyncExec(Runnable runnable)
Calls asyncExec(Display, Runnable)for the default display. |
static void |
busyWhile(Display display,
IRunnable runnable)
Calls busyWhile(Display, Runnable)for the given display. |
static void |
busyWhile(Display display,
Runnable runnable)
Calls busyWhile(Display, Runnable)for the given display. |
static void |
busyWhile(IRunnable runnable)
Calls busyWhile(Display, Runnable)for the default display. |
static void |
busyWhile(Runnable runnable)
Calls busyWhile(Display, Runnable)for the default display. |
static Shell |
getActiveShell()
|
static Display |
getDisplay()
|
static void |
invokeInMain(Runnable runnable)
invokes the given runnable inside the main UI thread. |
static void |
readAndDispatch()
Calls readAndDispatch(Display)for the default display. |
static void |
readAndDispatch(Display display)
Reads and dispatches events for the given display event queue. |
static void |
syncExec(Display display,
IRunnable runnable)
Calls syncExec(Display, Runnable)for the given display. |
static void |
syncExec(Display display,
Runnable runnable)
Calls Display.syncExec(java.lang.Runnable)for the given display. |
static void |
syncExec(IRunnable runnable)
Calls syncExec(Display, IRunnable)for the default display. |
static Object |
syncExec(IRunnableWithResult runnable)
Calls syncExec(Display, Runnable)for the default display. |
static void |
syncExec(Runnable runnable)
Calls syncExec(Display, Runnable)for the default display. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void asyncExec(Display display,
Runnable runnable)
Display.asyncExec(java.lang.Runnable)for the given
display.
display - the displayrunnable - code to run on the user-interface thread.Display.syncExec(java.lang.Runnable)public static void asyncExec(Runnable runnable)
asyncExec(Display, Runnable)for the default display.
runnable - code to run on the user-interface thread.Display.getDefault()
public static void busyWhile(Display display,
IRunnable runnable)
throws Exception
busyWhile(Display, Runnable)for the given display.
display - the display on which the busy feedback should be displayed.runnable - the runnable for which busy feedback is to be shown.
Exception - if a problem occurred while running.
public static void busyWhile(Display display,
Runnable runnable)
busyWhile(Display, Runnable)for the given display.
display - the display on which the busy feedback should be displayed.runnable - the runnable for which busy feedback is to be shown.
public static void busyWhile(IRunnable runnable)
throws Exception
busyWhile(Display, Runnable)for the default display.
runnable - the runnable for which busy feedback is to be shown.
Exception - if a problem occurred while running.Display.getDefault()public static void busyWhile(Runnable runnable)
busyWhile(Display, Runnable)for the default display.
runnable - the runnable for which busy feedback is to be shown.Display.getDefault()public static Shell getActiveShell()
public static Display getDisplay()
public static void invokeInMain(Runnable runnable)
runnable - public static void readAndDispatch()
readAndDispatch(Display)for the default display.
public static void readAndDispatch(Display display)
display - the display to read and dispatch
public static void syncExec(Display display,
IRunnable runnable)
throws Exception
syncExec(Display, Runnable)for the given display.
display - the displayrunnable - code to run on the user-interface thread.
Exception - if a problem occurred while running.
public static void syncExec(Display display,
Runnable runnable)
Display.syncExec(java.lang.Runnable)for the given display.
display - the displayrunnable - code to run on the user-interface thread.Display.syncExec(java.lang.Runnable)
public static void syncExec(IRunnable runnable)
throws Exception
syncExec(Display, IRunnable)for the default display.
runnable - code to run on the user-interface thread.
Exception - if a problem occurred while running.public static Object syncExec(IRunnableWithResult runnable)
syncExec(Display, Runnable)for the default display.
runnable - code to run on the user-interface thread.
IRunnableWithResult.Display.getDefault()public static void syncExec(Runnable runnable)
syncExec(Display, Runnable)for the default display.
runnable - code to run on the user-interface thread.Display.getDefault()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||