public class ShowMessageDialog
extends org.eclipse.swt.widgets.Dialog
| Constructor and Description |
|---|
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
|
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
|
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
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
int |
getTimeOut() |
boolean |
isCentered() |
int |
open() |
void |
setCentered(boolean centered) |
void |
setTimeOut(int timeOut) |
void |
setType(int type) |
public ShowMessageDialog(org.eclipse.swt.widgets.Shell parent,
int flags,
String title,
String message)
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 displaypublic ShowMessageDialog(org.eclipse.swt.widgets.Shell parent,
int flags,
String title,
String message,
boolean scroll)
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 scrollingpublic ShowMessageDialog(org.eclipse.swt.widgets.Shell parent,
int flags,
Map<Integer,String> buttonTextByFlag,
String title,
String message,
boolean scroll)
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 scrollingpublic int open()
public void dispose()
public int getTimeOut()
public void setTimeOut(int timeOut)
timeOut - the timeOut to setpublic void setType(int type)
public boolean isCentered()
public void setCentered(boolean centered)
Copyright © 2019 Hitachi Vantara. All rights reserved.