Package org.pentaho.di.ui.core.dialog
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 Summary
Fields Modifier and Type Field Description protected Map<String,org.eclipse.swt.widgets.Listener>
buttons
static int
ELEMENT_SPACING
static int
LABEL_SPACING
static int
MARGIN_SIZE
static int
MEDIUM_FIELD
static int
MEDIUM_SMALL_FIELD
protected PropsUI
props
protected org.eclipse.swt.widgets.Shell
shell
static int
SHELL_WIDTH_OFFSET
static int
SMALL_FIELD
protected String
title
static int
VAR_ICON_HEIGHT
static int
VAR_ICON_WIDTH
protected int
width
-
Constructor Summary
Constructors Constructor Description BaseDialog(org.eclipse.swt.widgets.Shell shell)
BaseDialog(org.eclipse.swt.widgets.Shell shell, String title, int width)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract org.eclipse.swt.widgets.Control
buildBody()
Returns the last element in the body - the one to which the buttons should be attached.protected void
buildFooter(org.eclipse.swt.widgets.Control anchorElement)
void
dispose()
int
open()
void
setButtons(Map<String,org.eclipse.swt.widgets.Listener> buttons)
void
setFooterTopPadding(int footerTopPadding)
-
-
-
Field Detail
-
MARGIN_SIZE
public static final int MARGIN_SIZE
- See Also:
- Constant Field Values
-
LABEL_SPACING
public static final int LABEL_SPACING
- See Also:
- Constant Field Values
-
ELEMENT_SPACING
public static final int ELEMENT_SPACING
- See Also:
- Constant Field Values
-
MEDIUM_FIELD
public static final int MEDIUM_FIELD
- See Also:
- Constant Field Values
-
MEDIUM_SMALL_FIELD
public static final int MEDIUM_SMALL_FIELD
- See Also:
- Constant Field Values
-
SMALL_FIELD
public static final int SMALL_FIELD
- See Also:
- Constant Field Values
-
SHELL_WIDTH_OFFSET
public static final int SHELL_WIDTH_OFFSET
- See Also:
- Constant Field Values
-
VAR_ICON_WIDTH
public static final int VAR_ICON_WIDTH
-
VAR_ICON_HEIGHT
public static final int VAR_ICON_HEIGHT
-
shell
protected org.eclipse.swt.widgets.Shell shell
-
props
protected PropsUI props
-
width
protected int width
-
title
protected String title
-
-
Constructor Detail
-
BaseDialog
public BaseDialog(org.eclipse.swt.widgets.Shell shell)
-
BaseDialog
public BaseDialog(org.eclipse.swt.widgets.Shell shell, String title, int width)
-
-
Method Detail
-
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()
-
-