|
GEF (MVC) 3.8.1.201211122107 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.action.ContributionItem
org.eclipse.gef.ui.actions.ZoomComboContributionItem
public class ZoomComboContributionItem
A ControlContribution that uses a Combo
as
its control
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.eclipse.jface.action.ContributionItem |
---|
fill, getId, getParent, isDirty, isDynamic, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setId, 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, 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 comboMethod Detail |
---|
protected int computeWidth(Control control)
control
- The control to compute width
protected Control createControl(Composite parent)
parent
- the parent 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)
|
GEF (MVC) 3.8.1.201211122107 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |