Package org.pentaho.di.ui.core.dialog
Class ShowMessageDialog
java.lang.Object
org.eclipse.swt.widgets.Dialog
org.pentaho.di.ui.core.dialog.ShowMessageDialog
public class ShowMessageDialog
extends org.eclipse.swt.widgets.Dialog
Dialog to enter a text. (descriptions etc.)
- Since:
- 19-06-2003
- Author:
- Matt
-
Constructor Summary
ConstructorDescriptionShowMessageDialog
(org.eclipse.swt.widgets.Shell parent, int flags, String title, String message) Dialog to allow someone to show a text with an icon in frontShowMessageDialog
(org.eclipse.swt.widgets.Shell parent, int flags, String title, String message, boolean scroll) Dialog to allow someone to show a text with an icon in frontShowMessageDialog
(org.eclipse.swt.widgets.Shell parent, int flags, Map<Integer, String> buttonTextByFlag, String title, String message, boolean scroll) Dialog to allow someone to show a text with an icon in front -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
int
boolean
int
open()
void
setCentered
(boolean centered) void
setTimeOut
(int timeOut) void
setType
(int type) Methods inherited from class org.eclipse.swt.widgets.Dialog
checkSubclass, getParent, getStyle, getText, setText
-
Constructor Details
-
ShowMessageDialog
public ShowMessageDialog(org.eclipse.swt.widgets.Shell parent, int flags, String title, String message) Dialog to allow someone to show a text with an icon in front- Parameters:
parent
- The parent shell to useflags
- the icon to show using SWT flags: SWT.ICON_WARNING, SWT.ICON_ERROR, ... Also SWT.OK, SWT.CANCEL is allowed.title
- The dialog titlemessage
- The message to display
-
ShowMessageDialog
public ShowMessageDialog(org.eclipse.swt.widgets.Shell parent, int flags, String title, String message, boolean scroll) Dialog to allow someone to show a text with an icon in front- Parameters:
parent
- The parent shell to useflags
- the icon to show using SWT flags: SWT.ICON_WARNING, SWT.ICON_ERROR, ... Also SWT.OK, SWT.CANCEL is allowed.title
- The dialog titlemessage
- The message to displayscroll
- Set the dialog to a default size and enable scrolling
-
ShowMessageDialog
public ShowMessageDialog(org.eclipse.swt.widgets.Shell parent, int flags, Map<Integer, String> buttonTextByFlag, String title, String message, boolean scroll) Dialog to allow someone to show a text with an icon in front- Parameters:
parent
- The parent shell to useflags
- the icon to show using SWT flags: SWT.ICON_WARNING, SWT.ICON_ERROR, ... Also SWT.OK, SWT.CANCEL is allowed.buttonTextByFlag
- Custom text to display for each button by flag i.e. key: SWT.OK, value: "Custom OK" Note - controls button order, use an ordered map to maintain button order.title
- The dialog titlemessage
- The message to displayscroll
- Set the dialog to a default size and enable scrolling
-
-
Method Details
-
open
public int open() -
dispose
public void dispose() -
getTimeOut
public int getTimeOut()- Returns:
- the timeOut
-
setTimeOut
public void setTimeOut(int timeOut) - Parameters:
timeOut
- the timeOut to set
-
setType
public void setType(int type) -
isCentered
public boolean isCentered() -
setCentered
public void setCentered(boolean centered)
-