|
Eclipse Platform Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.jface.dialogs.IconAndMessageDialog
The IconAndMessageDialog is the abstract superclass of dialogs that have an icon and a message as the first two widgets. In this dialog the icon and message are direct children of the shell in order that they can be read by accessibility tools more easily.
Nested Class Summary |
Nested classes inherited from class org.eclipse.jface.window.Window |
Window.IExceptionHandler |
Field Summary | |
protected Label |
imageLabel
Return the label for the image. |
protected String |
message
Message (a localized string). |
protected Label |
messageLabel
Message label is the label the message is shown on. |
Fields inherited from class org.eclipse.jface.dialogs.Dialog |
blockedHandler, buttonBar, dialogArea, DLG_IMG_ERROR, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS |
Fields inherited from class org.eclipse.jface.window.Window |
CANCEL, OK |
Constructor Summary | |
IconAndMessageDialog(Shell parentShell)
Constructor for IconAndMessageDialog. |
Method Summary | |
protected Control |
createButtonBar(Composite parent)
Creates and returns the contents of this dialog's button bar. |
protected Control |
createContents(Composite parent)
The Dialog implementation of this Window
method creates and lays out the top level composite for the dialog, and
determines the appropriate horizontal and vertical dialog units based on
the font size. |
protected void |
createDialogAndButtonArea(Composite parent)
Create the dialog area and the button bar for the receiver. |
protected Control |
createMessageArea(Composite composite)
Create the area the message will be shown in. |
Image |
getErrorImage()
Return the Image to be used when
displaying an error. |
protected abstract Image |
getImage()
Returns the image to display beside the message in this dialog. |
Image |
getInfoImage()
Return the Image to be used when
displaying information. |
protected int |
getMessageLabelStyle()
Returns the style for the message label. |
Image |
getQuestionImage()
Return the Image to be used when
displaying a question. |
Image |
getWarningImage()
Return the Image to be used when
displaying a warning. |
Methods inherited from class org.eclipse.jface.window.Window |
canHandleShellCloseEvent, configureShell, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getInitialLocation, getInitialSize, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setExceptionHandler, setReturnCode, setShellStyle, setWindowManager |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected String message
protected Label messageLabel
protected Label imageLabel
Constructor Detail |
public IconAndMessageDialog(Shell parentShell)
parentShell
- the parent shell, or null
to create a top-level
shellMethod Detail |
protected Control createMessageArea(Composite composite)
composite
- The composite to parent from.
protected int getMessageLabelStyle()
protected Control createButtonBar(Composite parent)
Dialog
The Dialog
implementation of this framework method lays
out a button bar and calls the createButtonsForButtonBar
framework method to populate it. Subclasses may override.
The returned control's layout data must be an instance of
GridData
.
createButtonBar
in class Dialog
parent
- the parent composite to contain the button bar
protected abstract Image getImage()
Subclasses may override.
protected Control createContents(Composite parent)
Dialog
Dialog
implementation of this Window
method creates and lays out the top level composite for the dialog, and
determines the appropriate horizontal and vertical dialog units based on
the font size. It then calls the createDialogArea
and
createButtonBar
methods to create the dialog area and
button bar, respectively. Overriding createDialogArea
and
createButtonBar
are recommended rather than overriding
this method.
createContents
in class Dialog
protected void createDialogAndButtonArea(Composite parent)
parent
- public Image getErrorImage()
Image
to be used when
displaying an error.
public Image getWarningImage()
Image
to be used when
displaying a warning.
public Image getInfoImage()
Image
to be used when
displaying information.
public Image getQuestionImage()
Image
to be used when
displaying a question.
|
Eclipse Platform Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.