public class CompareViewerPane extends ViewForm
CompareViewerPane
is a convenience class which installs a
CLabel
and a Toolbar
in a ViewForm
.
Double clicking onto the CompareViewerPane
's title bar maximizes
the CompareViewerPane
to the size of an enclosing Splitter
(if there is one).
If more Splitters
are nested maximizing walks up and
maximizes to the outermost Splitter
.
borderInsideRGB, borderMiddleRGB, borderOutsideRGB, horizontalSpacing, marginHeight, marginWidth, verticalSpacing
Constructor and Description |
---|
CompareViewerPane(Composite container,
int style)
Constructs a new instance of this class given its parent
and a style value describing its behavior and appearance.
|
Modifier and Type | Method and Description |
---|---|
static void |
clearToolBar(Composite parent)
Clears tool items in the
CompareViewerPane 's control bar. |
static ToolBarManager |
getToolBarManager(Composite parent)
Returns a
ToolBarManager if the given parent is a
CompareViewerPane or null otherwise. |
void |
setImage(Image image)
Set the pane's title Image.
|
void |
setText(String label)
Set the pane's title text.
|
computeTrim, getClientArea, getContent, getTopCenter, getTopLeft, getTopRight, setBorderVisible, setContent, setLayout, setTopCenter, setTopCenterSeparate, setTopLeft, setTopRight
changed, checkSubclass, computeSize, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayoutDeferred, setTabList
getHorizontalBar, getVerticalBar
addControlListener, 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, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString
public CompareViewerPane(Composite container, int style)
container
- a widget which will be the container of the new instance (cannot be null)style
- the style of widget to constructIllegalArgumentException
- SWTException
- public void setText(String label)
null
clears it.label
- the text to be displayed in the pane or nullpublic void setImage(Image image)
null
clears it.image
- the image to be displayed in the pane or nullpublic static ToolBarManager getToolBarManager(Composite parent)
ToolBarManager
if the given parent is a
CompareViewerPane
or null
otherwise.parent
- a Composite
or null
ToolBarManager
if the given parent is a CompareViewerPane
otherwise null
public static void clearToolBar(Composite parent)
CompareViewerPane
's control bar.parent
- a Composite
or null
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.