Package org.apache.hop.ui.core.dialog
Class ShowMessageDialog
- java.lang.Object
-
- org.eclipse.swt.widgets.Dialog
-
- org.apache.hop.ui.core.dialog.ShowMessageDialog
-
public class ShowMessageDialog extends org.eclipse.swt.widgets.DialogDialog to enter a text. (descriptions etc.)
-
-
Constructor Summary
Constructors Constructor Description 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 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()intgetTimeOut()intopen()voidsetTimeOut(int timeOut)voidsetType(int type)
-
-
-
Constructor Detail
-
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
-
-