|
||||||||||
| 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
A ControlContribution that uses a Combo as its control
| Constructor Summary | |
ZoomComboContributionItem(org.eclipse.ui.IPartService partService)
Constructor for ComboToolItem. |
|
ZoomComboContributionItem(org.eclipse.ui.IPartService partService,
java.lang.String initString)
Constructor for ComboToolItem. |
|
ZoomComboContributionItem(org.eclipse.ui.IPartService partService,
java.lang.String[] initStrings)
Constructor for ComboToolItem. |
|
| Method Summary | |
protected int |
computeWidth(org.eclipse.swt.widgets.Control control)
Computes the width required by control |
protected org.eclipse.swt.widgets.Control |
createControl(org.eclipse.swt.widgets.Composite parent)
Creates and returns the control for this contribution item under the given parent composite. |
void |
dispose()
|
void |
fill(org.eclipse.swt.widgets.Composite parent)
The control item implementation of this IContributionItem
method calls the createControl framework method. |
void |
fill(org.eclipse.swt.widgets.Menu parent,
int index)
The control item implementation of this IContributionItem
method throws an exception since controls cannot be added to menus. |
void |
fill(org.eclipse.swt.widgets.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, 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(org.eclipse.ui.IPartService partService)
partService - used to add a PartListener
public ZoomComboContributionItem(org.eclipse.ui.IPartService partService,
java.lang.String initString)
partService - used to add a PartListenerinitString - the initial string displayed in the combo
public ZoomComboContributionItem(org.eclipse.ui.IPartService partService,
java.lang.String[] initStrings)
partService - used to add a PartListenerinitStrings - the initial string displayed in the combo| Method Detail |
protected int computeWidth(org.eclipse.swt.widgets.Control control)
control - The control to compute width
protected org.eclipse.swt.widgets.Control createControl(org.eclipse.swt.widgets.Composite parent)
parent - the parent composite
public void dispose()
dispose in interface org.eclipse.jface.action.IContributionItemContributionItem.dispose()public final void fill(org.eclipse.swt.widgets.Composite parent)
IContributionItem
method calls the createControl framework method.
Subclasses must implement createControl rather than
overriding this method.
fill in interface org.eclipse.jface.action.IContributionItemparent - The parent of the control to fill
public final void fill(org.eclipse.swt.widgets.Menu parent,
int index)
IContributionItem
method throws an exception since controls cannot be added to menus.
fill in interface org.eclipse.jface.action.IContributionItemparent - The menuindex - Menu index
public void fill(org.eclipse.swt.widgets.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 org.eclipse.jface.action.IContributionItemparent - 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 ZoomListenerzoom - the new zoom level.ZoomListener.zoomChanged(double)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||