- java.lang.Object
-
- io.github.mmm.ui.spi.AbstractUiDispatcher
-
- All Implemented Interfaces:
UiDispatcher
- Direct Known Subclasses:
FxDispatcher,TestDispatcher,TvmDispatcher
public abstract class AbstractUiDispatcher extends Object implements UiDispatcher
Abstract base implementation ofUiDispatcher.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description AbstractUiDispatcher()The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinvokeUiTask(Runnable task)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.mmm.ui.api.UiDispatcher
invokeAsynchron, invokeTimer, invokeTimer, isDispatchThread
-
-
-
-
Method Detail
-
invokeUiTask
public void invokeUiTask(Runnable task)
- Specified by:
invokeUiTaskin interfaceUiDispatcher- Parameters:
task- is the job toinvokewithin theUI dispatcher thread. Should only do simple UI updates and then exit. In other words this method allows you do execute changes to the UI from anyThreadof your application. It should be called fromasynchronous tasks.
-
-