Class LwtView<VM extends IControlViewModel,​LC extends ILightControl>

    • Constructor Detail

      • LwtView

        public LwtView()
    • Method Detail

      • createLightControl

        public abstract LC createLightControl​(ILightComposite lightComposite,
                                              VM viewModel)
        Creates light control.
        Parameters:
        lightComposite - the light composite.
        viewModel - the view view model.
        Returns:
        the newly created control.
      • getContentControl

        public static final ILightComposite getContentControl​(ILightControl control)
        Obtains the light control that represents the actual content.
        Parameters:
        control - the ILightControl.
        Returns:
        the content control.
      • setContentControl

        public static final void setContentControl​(ILightControl control,
                                                   ILightComposite content)
        Associates the composite content control with the given light control.
        Parameters:
        control - the ILightControl.
        content - the content control.
      • uiSyncExec

        protected final void uiSyncExec​(Runnable runnable)
        Executes the given runnable in UI thread only if the control and its display are not disposed. The thread which calls this method is suspended until the runnable completes.
        Parameters:
        runnable - the runnable to execute, cannot be null.
      • uiAsyncExec

        protected final void uiAsyncExec​(Runnable runnable)
        Executes the given runnable in UI thread only if the control and its display are not disposed. The caller of this method continues to run in parallel.
        Parameters:
        runnable - the runnable to execute, cannot be null.