| Constructor and Description |
|---|
ImageAndMessageArea(Composite parent,
int style)
Constructs a new ImageAndMessageArea with an empty decorated field.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
changed, checkSubclass, computeSize, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabListcomputeTrim, getClientArea, getHorizontalBar, getVerticalBaraddControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, updateaddDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toStringpublic 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.public void setBackground(Color bg)
ControlsetBackground in class Controlbg - 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)
Controlpublic void setToolTipText(String text)
ControlsetToolTipText in class Controltext - the new tool tip text (or null)Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.