public class TelesalesMessageDialog
extends org.eclipse.jface.dialogs.MessageDialog
Note: Only one of the styles NONE, ERROR, INFORMATION, QUESTION, WARNING and TELESALES may be specified.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
static int | TELESALES
Constant for a dialog with an IBM Sales Center image (value 5).
|
Constructor and Description |
---|
TelesalesMessageDialog(org.eclipse.swt.widgets.Shell parentShell, java.lang.String dialogTitle, org.eclipse.swt.graphics.Image dialogTitleImage, org.eclipse.core.runtime.IStatus status, java.lang.String[] dialogButtonLabels, int defaultIndex)
This create a message dialog.
|
TelesalesMessageDialog(org.eclipse.swt.widgets.Shell parentShell, java.lang.String dialogTitle, org.eclipse.swt.graphics.Image dialogTitleImage, java.lang.String dialogMessage, int dialogImageType, java.lang.String[] dialogButtonLabels, int defaultIndex)
This method creates a message dialog.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.graphics.Image | getImage()
This method gets the telesales image.
|
static void | openTelesalesMessageDialog(org.eclipse.swt.widgets.Shell parent, java.lang.String title, java.lang.String message)
This method is a convenience method to open a standard telesales dialog.
|
public static final java.lang.String COPYRIGHT
public static final int TELESALES
public TelesalesMessageDialog(org.eclipse.swt.widgets.Shell parentShell, java.lang.String dialogTitle, org.eclipse.swt.graphics.Image dialogTitleImage, org.eclipse.core.runtime.IStatus status, java.lang.String[] dialogButtonLabels, int defaultIndex)
The labels of the buttons to appear in the button bar are supplied in this constructor as an array. The open method returns the index of the label in this array corresponding to the button that was pressed to close the dialog. If the dialog was dismissed without pressing a button (for example, ESC) then -1 is returned. Note that the open method blocks.
public TelesalesMessageDialog(org.eclipse.swt.widgets.Shell parentShell, java.lang.String dialogTitle, org.eclipse.swt.graphics.Image dialogTitleImage, java.lang.String dialogMessage, int dialogImageType, java.lang.String[] dialogButtonLabels, int defaultIndex)
The labels of the buttons to appear in the button bar are supplied in this constructor as an array. The open method returns the index of the label in this array corresponding to the button that was pressed to close the dialog. If the dialog was dismissed without pressing a button (for example, ESC) then -1 is returned. Note that the open method blocks.
public org.eclipse.swt.graphics.Image getImage()
public static void openTelesalesMessageDialog(org.eclipse.swt.widgets.Shell parent, java.lang.String title, java.lang.String message)