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
-
Constructor Summary
ConstructorDescriptionBaseDialog
(org.eclipse.swt.widgets.Shell shell) BaseDialog
(org.eclipse.swt.widgets.Shell shell, String title, int width) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.eclipse.swt.widgets.Control
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) Methods inherited from class org.eclipse.swt.widgets.Dialog
checkSubclass, getParent, getStyle, getText, setText
-
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
-
shell
protected org.eclipse.swt.widgets.Shell shell -
props
-
width
protected int width -
title
-
-
Constructor Details
-
BaseDialog
public BaseDialog(org.eclipse.swt.widgets.Shell shell) -
BaseDialog
-
-
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() -
dispose
public void dispose() -
setButtons
-