|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.jface.dialogs.ImageAndMessageArea
Instances of this class provide a message area to display a message and an associated image.
Field Summary |
---|
Fields inherited from class org.eclipse.swt.widgets.Control |
---|
handle |
Constructor Summary | |
---|---|
ImageAndMessageArea(Composite parent,
int style)
Constructs a new ImageAndMessageArea with an empty decorated field. |
Method Summary | |
---|---|
void |
setBackground(Color bg)
Sets the receiver's background color to the color specified by the argument, or to the default system color for the control if the argument is null. |
void |
setFont(Font font)
Sets the font that the receiver will use to paint textual information to the font specified by the argument, or to the default font for that kind of control if the argument is null. |
void |
setImage(Image image)
Adds an image to decorated field to be shown in the message area. |
void |
setText(String text)
Sets the text in the decorated field which will be displayed in the message area. |
void |
setToolTipText(String text)
Sets the receiver's tool tip text to the argument, which may be null indicating that no tool tip text should be shown. |
Methods inherited from class org.eclipse.swt.widgets.Composite |
---|
changed, checkSubclass, computeSize, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList |
Methods inherited from class org.eclipse.swt.widgets.Scrollable |
---|
computeTrim, getClientArea, getHorizontalBar, getVerticalBar |
Methods inherited from class org.eclipse.swt.widgets.Widget |
---|
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ImageAndMessageArea(Composite parent, int style)
setText(String text)
and setImage(Image image)
are required in order to fill the message area. Also, the instance will be invisible
when initially created.
The style bit SWT.WRAP
should be used if a larger message area is desired.
parent
- the parent compositestyle
- the SWT style bits. Using SWT.WRAP will create a larger message area.Method Detail |
public void setBackground(Color bg)
Control
setBackground
in class Control
bg
- the new color (or null)public void setText(String text)
text
- the text to be displayed in the message areaText.setText(String string)
public void setImage(Image image)
image
- desired image to be shown in the ImageAndMessageAreapublic void setFont(Font font)
Control
setFont
in class Control
font
- the new font (or null)public void setToolTipText(String text)
Control
setToolTipText
in class Control
text
- the new tool tip text (or null)
|
Eclipse Platform Release 3.2 |
|||||||||||
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, 2006. All rights reserved.