public class CmsMessageDialog extends LightweightDialog
Modifier and Type | Field and Description |
---|---|
static int |
CONFIRM |
static int |
INFORMATION |
static int |
QUESTION |
static int |
WARNING |
CANCEL, OK
Constructor and Description |
---|
CmsMessageDialog(org.eclipse.swt.widgets.Shell parentShell,
java.lang.String message,
int kind) |
Modifier and Type | Method and Description |
---|---|
protected void |
cancelPressed() |
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite parent) |
protected org.eclipse.swt.widgets.Control |
createInputArea(org.eclipse.swt.widgets.Composite parent) |
protected org.eclipse.swt.graphics.Point |
getInitialSize() |
protected void |
okPressed() |
static boolean |
open(int kind,
org.eclipse.swt.widgets.Shell parent,
java.lang.String message) |
static boolean |
openConfirm(java.lang.String message) |
static void |
openInformation(java.lang.String message) |
static boolean |
openQuestion(java.lang.String message) |
static void |
openWarning(java.lang.String message) |
closeShell, getBackgroundShell, getForegoundShell, getReturnCode, handleException, onCancel, open, pack, setBlockOnOpen, setTitle
public static final int INFORMATION
public static final int QUESTION
public static final int WARNING
public static final int CONFIRM
public CmsMessageDialog(org.eclipse.swt.widgets.Shell parentShell, java.lang.String message, int kind)
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
createDialogArea
in class LightweightDialog
protected org.eclipse.swt.widgets.Control createInputArea(org.eclipse.swt.widgets.Composite parent)
protected void okPressed()
protected void cancelPressed()
protected org.eclipse.swt.graphics.Point getInitialSize()
getInitialSize
in class LightweightDialog
public static boolean open(int kind, org.eclipse.swt.widgets.Shell parent, java.lang.String message)
public static boolean openConfirm(java.lang.String message)
public static void openInformation(java.lang.String message)
public static boolean openQuestion(java.lang.String message)
public static void openWarning(java.lang.String message)
Copyright © 2007–2020. All rights reserved.