|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jface.action.ContributionItem | +--org.eclipse.gef.ui.actions.ZoomComboContributionItem
A ControlContribution that uses a Combo
as its control
Constructor Summary | |
ZoomComboContributionItem(IPartService partService)
Constructor for ComboToolItem. |
|
ZoomComboContributionItem(IPartService partService,
String initString)
Constructor for ComboToolItem. |
Method Summary | |
protected int |
computeWidth(Control control)
Computes the width required by control |
protected Control |
createControl(Composite parent)
|
void |
dispose()
|
void |
fill(Composite parent)
The control item implementation of this IContributionItem
method calls the createControl framework method.
|
void |
fill(Menu parent,
int index)
The control item implementation of this IContributionItem
method throws an exception since controls cannot be added to menus. |
void |
fill(ToolBar parent,
int index)
The control item implementation of this IContributionItem
method calls the createControl framework method to
create a control under the given parent, and then creates
a new tool item to hold it.
|
ZoomManager |
getZoomManager()
Returns the zoomManager. |
void |
setZoomManager(ZoomManager zm)
Sets the ZoomManager |
void |
zoomChanged(double zoom)
Called whenever the ZoomManager's zoom level changes. |
Methods inherited from class org.eclipse.jface.action.ContributionItem |
getId, getParent, isDirty, isDynamic, isEnabled, isGroupMarker, isSeparator, isVisible, setParent, setVisible, toString, update, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ZoomComboContributionItem(IPartService partService)
partService
- used to add a PartListenerpublic ZoomComboContributionItem(IPartService partService, String initString)
partService
- used to add a PartListenerinitString
- the initial string displayed in the comboMethod Detail |
protected int computeWidth(Control control)
control
- The control to compute width
protected Control createControl(Composite parent)
ControlContribution.createControl(Composite)
public void dispose()
dispose
in interface IContributionItem
dispose
in class ContributionItem
ContributionItem.dispose()
public final void fill(Composite parent)
IContributionItem
method calls the createControl
framework method.
Subclasses must implement createControl
rather than
overriding this method.
fill
in interface IContributionItem
fill
in class ContributionItem
parent
- The parent of the control to fillpublic final void fill(Menu parent, int index)
IContributionItem
method throws an exception since controls cannot be added to menus.
fill
in interface IContributionItem
fill
in class ContributionItem
parent
- The menuindex
- Menu indexpublic void fill(ToolBar parent, int index)
IContributionItem
method calls the createControl
framework method to
create a control under the given parent, and then creates
a new tool item to hold it.
Subclasses must implement createControl
rather than
overriding this method.
fill
in interface IContributionItem
fill
in class ContributionItem
parent
- The ToolBar to add the new control toindex
- Indexpublic ZoomManager getZoomManager()
public void setZoomManager(ZoomManager zm)
zm
- The ZoomManagerpublic void zoomChanged(double zoom)
ZoomListener
zoomChanged
in interface ZoomListener
zoom
- the new zoom level.ZoomListener.zoomChanged(double)
|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |