public class SimpleMessageDialog
extends org.eclipse.jface.dialogs.MessageDialog
| Modifier and Type | Field and Description |
|---|---|
static int |
BUTTON_WIDTH |
static int |
DEFULT_WIDTH |
protected static Class<?> |
PKG |
ERROR, INFORMATION, NONE, QUESTION, WARNINGimageLabel, message, messageLabelblockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS| Constructor and Description |
|---|
SimpleMessageDialog(org.eclipse.swt.widgets.Shell parentShell,
String title,
String message,
int dialogType)
Creates a new dialog with the button label set to "Ok", dialog width set to
DEFULT_WIDTH and button width
set to BUTTON_WIDTH |
SimpleMessageDialog(org.eclipse.swt.widgets.Shell parentShell,
String title,
String message,
int dialogType,
String buttonLabel)
Creates a new dialog with the button label set to
closeButtonLabel, dialog width set to DEFULT_WIDTH and button width set to BUTTON_WIDTH |
SimpleMessageDialog(org.eclipse.swt.widgets.Shell parentShell,
String title,
String message,
int dialogType,
String buttonLabel,
int width,
int buttonWidth)
Creates a new dialog with the specified title, message, dialogType and width.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureShell(org.eclipse.swt.widgets.Shell shell)
Overridden to make the shell background white.
|
protected void |
constrainShellSize()
Overridden to auto-size the shell according to the selected width.
|
void |
create()
Overridden to give the button the desired width.
|
buttonPressed, createButton, createButtonsForButtonBar, createCustomArea, createDialogArea, customShouldTakeFocus, getButton, getButtonLabels, getDefaultButtonIndex, getImage, getMinimumMessageWidth, handleShellCloseEvent, openConfirm, openError, openInformation, openQuestion, openWarning, setButtonLabels, setButtonscreateButtonBar, createContents, createDialogAndButtonArea, createMessageArea, getErrorImage, getInfoImage, getMessageLabelStyle, getQuestionImage, getWarningImageapplyDialogFont, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, dialogFontIsDefault, getBlockedHandler, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenTextcanHandleShellCloseEvent, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManagerprotected static Class<?> PKG
public static final int BUTTON_WIDTH
public static final int DEFULT_WIDTH
public SimpleMessageDialog(org.eclipse.swt.widgets.Shell parentShell,
String title,
String message,
int dialogType)
DEFULT_WIDTH and button width
set to BUTTON_WIDTHparentShell - the parent Shelltitle - the dialog titlemessage - the dialog messagedialogType - the dialog type (MessageDialog.INFORMATION, MessageDialog.WARNING, MessageDialog.ERROR etc...)public SimpleMessageDialog(org.eclipse.swt.widgets.Shell parentShell,
String title,
String message,
int dialogType,
String buttonLabel)
closeButtonLabel, dialog width set to DEFULT_WIDTH and button width set to BUTTON_WIDTHparentShell - the parent Shelltitle - the dialog titlemessage - the dialog messagedialogType - the dialog type (MessageDialog.INFORMATION, MessageDialog.WARNING, MessageDialog.ERROR etc...)buttonLabel - the label for the close dialogpublic SimpleMessageDialog(org.eclipse.swt.widgets.Shell parentShell,
String title,
String message,
int dialogType,
String buttonLabel,
int width,
int buttonWidth)
parentShell - the parent Shelltitle - the dialog titlemessage - the dialog messagedialogType - the dialog type (MessageDialog.INFORMATION, MessageDialog.WARNING, MessageDialog.ERROR etc...)buttonLabel - the button labelwidth - dialog widthbuttonWidth - button widthprotected void constrainShellSize()
constrainShellSize in class org.eclipse.jface.window.Windowprotected void configureShell(org.eclipse.swt.widgets.Shell shell)
configureShell in class org.eclipse.jface.dialogs.MessageDialogshell - public void create()
create in class org.eclipse.jface.dialogs.DialogCopyright © 2019 Hitachi Vantara. All rights reserved.