public abstract class ModelioDialog extends org.eclipse.jface.dialogs.TrayDialog implements IModelioDialog
setTitleLeftImage(Image)
setTitle(String)
setLogoImage(Image)
setMessage(String)
.IModelioDialog.createContentArea(Composite)
.
IModelioDialog.addButtonsInButtonBar(Composite)
.
setWarningMessage(String)
and setErrorMessage(String)
.Modifier and Type | Field and Description |
---|---|
static String |
DLG_IMG_TITLE_BANNER |
blockedHandler, 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
Modifier | Constructor and Description |
---|---|
protected |
ModelioDialog(org.eclipse.swt.widgets.Shell parentShell) |
Modifier and Type | Method and Description |
---|---|
protected void |
addDefaultButtons(org.eclipse.swt.widgets.Composite parent) |
protected void |
createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent) |
protected org.eclipse.swt.widgets.Control |
createContents(org.eclipse.swt.widgets.Composite parent) |
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite parent) |
protected String |
getHelpId() |
protected org.eclipse.swt.graphics.Point |
getInitialSize() |
void |
setBlockOnOpen(boolean shouldBlock) |
protected void |
setErrorMessage(String newErrorMessage)
Set an error message that will display in the message area on top of the
header of the dialog, with an error small icon.
Removes the message if null is passed . |
protected void |
setLogoImage(org.eclipse.swt.graphics.Image newLogoImage)
Set the logo image that displays on the right side of the header.
|
protected void |
setMessage(String newMessage)
Set a message that will display in the header of the dialog.
|
protected void |
setMessage(String newMessage,
int newType) |
protected void |
setTitle(String newTitle)
Set the title that displays in bold in the dialog header.
|
protected void |
setTitleLeftImage(org.eclipse.swt.graphics.Image newTitleImage)
Set the header image that will display in the header.
|
protected void |
setWarningMessage(String newMessage)
Set a warning message that will display in the message area on top of the dialog,
with a warning small icon.
Removes the message if null is passed . |
closeTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
canHandleShellCloseEvent, configureShell, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addButtonsInButtonBar, createContentArea, init
public static final String DLG_IMG_TITLE_BANNER
protected void setErrorMessage(String newErrorMessage)
newErrorMessage
- The error message or null to remove the error message.protected void setMessage(String newMessage)
newMessage
- The message .protected void setTitle(String newTitle)
newTitle
- The header title.protected void setWarningMessage(String newMessage)
newMessage
- The warning message or null to remove the warning message.protected void setMessage(String newMessage, int newType)
protected String getHelpId()
public void setBlockOnOpen(boolean shouldBlock)
setBlockOnOpen
in class org.eclipse.jface.window.Window
protected void addDefaultButtons(org.eclipse.swt.widgets.Composite parent)
protected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
createButtonsForButtonBar
in class org.eclipse.jface.dialogs.Dialog
protected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
createContents
in class org.eclipse.jface.dialogs.Dialog
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
createDialogArea
in class org.eclipse.jface.dialogs.Dialog
protected org.eclipse.swt.graphics.Point getInitialSize()
getInitialSize
in class org.eclipse.jface.dialogs.Dialog
protected void setLogoImage(org.eclipse.swt.graphics.Image newLogoImage)
newLogoImage
- The new logo image.protected void setTitleLeftImage(org.eclipse.swt.graphics.Image newTitleImage)
newTitleImage
- the title image.