org.eclipse.compare
Class CompareViewerPane
java.lang.Object
|
+--org.eclipse.swt.widgets.Widget
|
+--org.eclipse.swt.widgets.Control
|
+--org.eclipse.swt.widgets.Scrollable
|
+--org.eclipse.swt.widgets.Composite
|
+--org.eclipse.swt.custom.ViewForm
|
+--org.eclipse.compare.CompareViewerPane
- All Implemented Interfaces:
- Drawable
- Direct Known Subclasses:
- CompareViewerSwitchingPane
- public class CompareViewerPane
- extends ViewForm
A 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
.
- Since:
- 2.0
Fields inherited from class org.eclipse.swt.widgets.Control |
handle |
Constructor Summary |
CompareViewerPane(Composite parent,
int style)
Constructs a new instance of this class given its parent
and a style value describing its behavior and appearance. |
Methods inherited from class org.eclipse.swt.custom.ViewForm |
computeSize, computeTrim, getClientArea, getContent, getTopCenter, getTopLeft, getTopRight, layout, setBorderVisible, setContent, setFont, setLayout, setTopCenter, setTopCenterSeparate, setTopLeft, setTopRight |
Methods inherited from class org.eclipse.swt.widgets.Control |
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBorderWidth, getBounds, getDisplay, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isDisposed, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBounds, setBounds, setCapture, setCursor, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update |
Methods inherited from class org.eclipse.swt.widgets.Widget |
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getStyle, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
CompareViewerPane
public CompareViewerPane(Composite parent,
int style)
- Constructs a new instance of this class given its parent
and a style value describing its behavior and appearance.
- Parameters:
parent
- a widget which will be the parent of the new instance (cannot be null)style
- the style of widget to construct- Throws:
IllegalArgumentException
-
- ERROR_NULL_ARGUMENT - if the parent is null
SWTException
-
- ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent
setText
public void setText(String label)
- Sets the receiver's title text.
The value
null
clears it.
- Parameters:
text
- the text to be displayed in the CompareViewerPane's title or null- Throws:
SWTException
-
- ERROR_WIDGET_DISPOSED - if the receiver has been disposed
- ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
setImage
public void setImage(Image image)
- Return the receiver's title text.
- Returns:
- the text of the CompareViewerPane's title or null
getToolBarManager
public static ToolBarManager getToolBarManager(Composite parent)
- Returns a
ToolBarManager
if the given parent is a
CompareViewerPane
or null
otherwise.
- Parameters:
parent
- a Composite
or null
- Returns:
- a
ToolBarManager
if the given parent is a CompareViewerPane
otherwise null
clearToolBar
public static void clearToolBar(Composite parent)
- Clears tool items in the
CompareViewerPane
's control bar.
- Parameters:
parent
- a Composite
or null
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.