|
Eclipse GEF 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectContributionItem
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. |
|
ZoomComboContributionItem(IPartService partService,
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. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ZoomComboContributionItem(IPartService partService)
partService - used to add a PartListener
public ZoomComboContributionItem(IPartService partService,
String initString)
partService - used to add a PartListenerinitString - the initial string displayed in the combo
public ZoomComboContributionItem(IPartService partService,
String[] initStrings)
partService - used to add a PartListenerinitStrings - the initial string displayed in the combo| Method Detail |
protected int computeWidth(Control control)
control - The control to compute width
protected Control createControl(Composite parent)
parent - the parent composite
public void dispose()
ContributionItempublic final void fill(Composite parent)
IContributionItem
method calls the createControl framework method.
Subclasses must implement createControl rather than
overriding this method.
parent - The parent of the control to fill
public final void fill(Menu parent,
int index)
IContributionItem
method throws an exception since controls cannot be added to menus.
parent - The menuindex - Menu 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)
|
Eclipse GEF 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||