Class BaseDialog

java.lang.Object
org.eclipse.swt.widgets.Dialog
org.pentaho.di.ui.core.dialog.BaseDialog
Direct Known Subclasses:
BaseMessageDialog, FieldSelectionDialog

public abstract class BaseDialog extends org.eclipse.swt.widgets.Dialog
A base dialog class containing a body and a configurable button panel.
  • Field Details

    • MARGIN_SIZE

      public static final int MARGIN_SIZE
      See Also:
    • LABEL_SPACING

      public static final int LABEL_SPACING
      See Also:
    • ELEMENT_SPACING

      public static final int ELEMENT_SPACING
      See Also:
    • MEDIUM_FIELD

      public static final int MEDIUM_FIELD
      See Also:
    • MEDIUM_SMALL_FIELD

      public static final int MEDIUM_SMALL_FIELD
      See Also:
    • SMALL_FIELD

      public static final int SMALL_FIELD
      See Also:
    • SHELL_WIDTH_OFFSET

      public static final int SHELL_WIDTH_OFFSET
      See Also:
    • VAR_ICON_WIDTH

      public static final int VAR_ICON_WIDTH
    • VAR_ICON_HEIGHT

      public static final int VAR_ICON_HEIGHT
    • buttons

      protected Map<String,org.eclipse.swt.widgets.Listener> buttons
    • shell

      protected org.eclipse.swt.widgets.Shell shell
    • props

      protected PropsUI props
    • width

      protected int width
    • title

      protected String title
  • Constructor Details

    • BaseDialog

      public BaseDialog(org.eclipse.swt.widgets.Shell shell)
    • BaseDialog

      public BaseDialog(org.eclipse.swt.widgets.Shell shell, String title, int width)
  • Method Details

    • buildBody

      protected abstract org.eclipse.swt.widgets.Control buildBody()
      Returns the last element in the body - the one to which the buttons should be attached.
      Returns:
    • open

      public int open()
    • buildFooter

      protected void buildFooter(org.eclipse.swt.widgets.Control anchorElement)
    • setFooterTopPadding

      public void setFooterTopPadding(int footerTopPadding)
    • dispose

      public void dispose()
    • setButtons

      public void setButtons(Map<String,org.eclipse.swt.widgets.Listener> buttons)