@Deprecated public class ImageAndMessageArea extends Composite
This class is not intended to be extended by clients.
| Constructor and Description |
|---|
ImageAndMessageArea(Composite parent,
int style)
Deprecated.
Constructs a new ImageAndMessageArea with an empty decorated field.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setBackground(Color bg)
Deprecated.
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)
Deprecated.
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)
Deprecated.
Adds an image to decorated field to be shown in the message area.
|
void |
setText(String text)
Deprecated.
Sets the text in the decorated field which will be displayed in the
message area.
|
void |
setToolTipText(String text)
Deprecated.
Sets the receiver's tool tip text to the argument, which
may be null indicating that the default tool tip for the
control will be shown.
|
changed, checkSubclass, computeSize, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabListcomputeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBaraddControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, updateaddDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, 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)
ControlNote: This operation is a hint and may be overridden by the platform. For example, on Windows the background of a Button cannot be changed.
setBackground 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)
ControlThe mnemonic indicator (character '&') is not displayed in a tool tip. To display a single '&' in the tool tip, the character '&' can be escaped by doubling it in the string.
setToolTipText in class Controltext - the new tool tip text (or null)
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.