public class ZoomComboContributionItem extends ContributionItem implements ZoomListener
Combo as
its control| Constructor and Description |
|---|
ZoomComboContributionItem(IPartService partService)
Constructor for ComboToolItem.
|
ZoomComboContributionItem(IPartService partService,
java.lang.String initString)
Constructor for ComboToolItem.
|
ZoomComboContributionItem(IPartService partService,
java.lang.String[] initStrings)
Constructor for ComboToolItem.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
computeWidth(Control control)
Computes the width required by control
|
protected Control |
createControl(Composite parent)
Creates and returns the control for this contribution item under the
given parent composite.
|
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.
|
fill, getId, getParent, isDirty, isDynamic, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setId, setParent, setVisible, toString, update, updatepublic ZoomComboContributionItem(IPartService partService)
partService - used to add a PartListenerpublic ZoomComboContributionItem(IPartService partService, java.lang.String initString)
partService - used to add a PartListenerinitString - the initial string displayed in the combopublic ZoomComboContributionItem(IPartService partService, java.lang.String[] initStrings)
partService - used to add a PartListenerinitStrings - the initial string displayed in the comboprotected int computeWidth(Control control)
control - The control to compute widthprotected Control createControl(Composite parent)
parent - the parent compositepublic void dispose()
dispose in interface IContributionItemdispose in class ContributionItemContributionItem.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 IContributionItemfill in class ContributionItemparent - 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 IContributionItemfill in class ContributionItemparent - 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 IContributionItemfill in class ContributionItemparent - The ToolBar to add the new control toindex - Indexpublic ZoomManager getZoomManager()
public void setZoomManager(ZoomManager zm)
zm - The ZoomManagerpublic void zoomChanged(double zoom)
ZoomListenerzoomChanged in interface ZoomListenerzoom - the new zoom level.ZoomListener.zoomChanged(double)Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.