Class LwtStandardDialogRenderer

    • Constructor Detail

      • LwtStandardDialogRenderer

        public LwtStandardDialogRenderer​(LwtRenderer renderer)
        Instantiates a new LWT standard dialog renderer with the given renderer.
        Parameters:
        renderer - the LWT renderer
      • LwtStandardDialogRenderer

        public LwtStandardDialogRenderer()
        Instantiates a new LWT standard dialog renderer.
    • Method Detail

      • getInitialSize

        protected org.eclipse.swt.graphics.Point getInitialSize​(IDialogViewModel viewModel)
        Description copied from class: LwtDialogRenderer
        Returns the initial size of the dialog.
        Specified by:
        getInitialSize in class LwtDialogRenderer
        Parameters:
        viewModel - the view model.
        Returns:
        the initial size of the dialog.
      • createOkButtonEnableObservable

        protected org.eclipse.core.databinding.observable.value.IObservableValue<?> createOkButtonEnableObservable​(IDialogViewModel viewModel)
        Description copied from class: LwtDialogRenderer
        Creates the IObservableValue for enable state of the ok button.
        Specified by:
        createOkButtonEnableObservable in class LwtDialogRenderer
        Parameters:
        viewModel - the view model.
        Returns:
        the newly created IObservableValue.
      • onContentRendered

        protected void onContentRendered​(IDialogViewModel viewModel)
        Description copied from class: LwtDialogRenderer
        Performs required modifications of dialog's view model. Called after creating the dialog area and rendering its content.
        Specified by:
        onContentRendered in class LwtDialogRenderer
        Parameters:
        viewModel - the view model of the dialog