|
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.swt.custom.ViewForm
org.eclipse.compare.CompareViewerPane
public class CompareViewerPane
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.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.swt.custom.ViewForm |
|---|
borderInsideRGB, borderMiddleRGB, borderOutsideRGB, horizontalSpacing, marginHeight, marginWidth, verticalSpacing |
| Fields inherited from class org.eclipse.swt.widgets.Control |
|---|
handle |
| Constructor Summary | |
|---|---|
CompareViewerPane(Composite container,
int style)
Constructs a new instance of this class given its parent and a style value describing its behavior and appearance. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.eclipse.swt.custom.ViewForm |
|---|
computeTrim, getClientArea, getContent, getTopCenter, getTopLeft, getTopRight, setBorderVisible, setContent, setLayout, setTopCenter, setTopCenterSeparate, setTopLeft, setTopRight |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
|---|
changed, checkSubclass, computeSize, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayoutDeferred, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
|---|
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 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 construct
IllegalArgumentException - SWTException - | Method Detail |
|---|
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 nullpublic static void clearToolBar(Composite parent)
CompareViewerPane's control bar.
parent - a Composite 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.