public abstract class AbstractDialog extends TitleAreaDialog
Window.IExceptionHandler
DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE
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
CANCEL, OK, resizeHasOccurred
Modifier | Constructor and Description |
---|---|
protected |
AbstractDialog(Shell parentShell,
String title,
int width,
int height,
OomphUIPlugin plugin,
String help) |
getErrorMessage, getMessage, getTitleArea, getTitleImageLabel, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor
closeTray, createButtonBar, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, setDialogHelpAvailable, setHelpAvailable
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonsForButtonBar, 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, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
protected AbstractDialog(Shell parentShell, String title, int width, int height, OomphUIPlugin plugin, String help)
public String getTitle()
public int getWidth()
public int getHeight()
public String getHelp()
public void openTray(DialogTray tray) throws IllegalStateException, UnsupportedOperationException
openTray
in class TrayDialog
IllegalStateException
UnsupportedOperationException
public void setTitleImage(Image newTitleImage)
setTitleImage
in class TitleAreaDialog
protected Control createContents(Composite parent)
createContents
in class TitleAreaDialog
protected Control createDialogArea(Composite parent)
createDialogArea
in class TitleAreaDialog
protected Control createHelpControl(Composite parent)
createHelpControl
in class TrayDialog
protected void createToolItemsForToolBar(ToolBar toolBar)
protected final ToolItem createToolItem(ToolBar toolBar, String iconPath, String toolTip)
protected int getContainerMargin()
protected abstract String getImagePath()
protected final Point getInitialSize()
getInitialSize
in class TitleAreaDialog
protected abstract String getDefaultMessage()
protected abstract String getShellText()
protected abstract void createUI(Composite parent)
public static void fixTitleImageLayout(TitleAreaDialog dialog)
Copyright (c) 2014 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v2.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v20.html