Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse GEF
3.3

org.eclipse.gef.ui.actions
Class ZoomComboContributionItem

java.lang.Object
  extended by

org.eclipse.jface.action.ContributionItem
      extended by
org.eclipse.gef.ui.actions.ZoomComboContributionItem
All Implemented Interfaces:
IContributionItem, ZoomListener

public class ZoomComboContributionItem
extends ContributionItem
implements ZoomListener

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.
  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, fill, fill, 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

ZoomComboContributionItem

public ZoomComboContributionItem(
IPartService partService)
Constructor for ComboToolItem.

Parameters:
partService - used to add a PartListener

ZoomComboContributionItem

public ZoomComboContributionItem(
IPartService partService,
                                 java.lang.String initString)
Constructor for ComboToolItem.

Parameters:
partService - used to add a PartListener
initString - the initial string displayed in the combo

ZoomComboContributionItem

public ZoomComboContributionItem(
IPartService partService,
                                 java.lang.String[] initStrings)
Constructor for ComboToolItem.

Parameters:
partService - used to add a PartListener
initStrings - the initial string displayed in the combo
Method Detail

computeWidth

protected int computeWidth(Control control)
Computes the width required by control

Parameters:
control - The control to compute width
Returns:
int The width required

createControl

protected Control createControl(Composite parent)
Creates and returns the control for this contribution item under the given parent composite.

Parameters:
parent - the parent composite
Returns:
the new control

dispose

public void dispose()
Specified by:
dispose in interface IContributionItem
See Also:
ContributionItem.dispose()

fill

public final void fill(Composite parent)
The control item implementation of this IContributionItem method calls the createControl framework method. Subclasses must implement createControl rather than overriding this method.

Parameters:
parent - The parent of the control to fill

fill

public final void fill(Menu parent,
                       int index)
The control item implementation of this IContributionItem method throws an exception since controls cannot be added to menus.

Parameters:
parent - The menu
index - Menu index

getZoomManager

public 
ZoomManager getZoomManager()
Returns the zoomManager.

Returns:
ZoomManager

setZoomManager

public void setZoomManager(
ZoomManager zm)
Sets the ZoomManager

Parameters:
zm - The ZoomManager

zoomChanged

public void zoomChanged(double zoom)
Description copied from interface: ZoomListener
Called whenever the ZoomManager's zoom level changes.

Specified by:
zoomChanged in interface ZoomListener
Parameters:
zoom - the new zoom level.
See Also:
ZoomListener.zoomChanged(double)

Eclipse GEF
3.3

Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire