Package org.eclipse.jface.action
Interface ICoolBarManager
- All Superinterfaces:
- IContributionManager
- All Known Implementing Classes:
- CoolBarManager,- CoolBarToTrimManager,- SubCoolBarManager
The 
ICoolBarManager interface provides protocol for managing
 contributions to a cool bar. A cool bar manager delegates responsibility for
 creating child controls to its contribution items by calling
 IContributionItem.fill(CoolBar, int).
 
 This interface is internal to the framework; it should not be implemented
 outside the framework. This package provides a concrete cool bar manager
 implementation, CoolBarManager, which
 clients may instantiate or subclass.
 
- Since:
- 3.0
- See Also:
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionvoidadd(IToolBarManager toolBarManager) A convenience method to add a tool bar as a contribution item to this cool bar manager.Returns the context menu manager used by this cool bar manager.booleanReturns whether the layout of the underlying cool bar widget is locked.intgetStyle()Returns the style of the underlying cool bar widget.voidsetContextMenuManager(IMenuManager menuManager) Sets the context menu of this cool bar manager to the given menu manager.voidsetLockLayout(boolean value) Locks or unlocks the layout of the underlying cool bar widget.Methods inherited from interface org.eclipse.jface.action.IContributionManageradd, add, appendToGroup, appendToGroup, find, getItems, getOverrides, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, markDirty, prependToGroup, prependToGroup, remove, remove, removeAll, update
- 
Field Details- 
SIZEProperty name of a cool item's size (value"size").The cool bar manager uses this property to tell its cool items to update their size. - See Also:
 
 
- 
- 
Method Details- 
addA convenience method to add a tool bar as a contribution item to this cool bar manager. Equivalent toadd(new ToolBarContributionManager(toolBarManager)).- Parameters:
- toolBarManager- the tool bar manager to be added
- See Also:
 
- 
getContextMenuManagerIMenuManager getContextMenuManager()Returns the context menu manager used by this cool bar manager. This context menu manager is used by the cool bar manager except for cool items that provide their own.- Returns:
- the context menu manager, or nullif none
- See Also:
 
- 
getLockLayoutboolean getLockLayout()Returns whether the layout of the underlying cool bar widget is locked.- Returns:
- trueif cool bar layout is locked,- falseotherwise
 
- 
getStyleint getStyle()Returns the style of the underlying cool bar widget.- Returns:
- the style of the cool bar
 
- 
setContextMenuManagerSets the context menu of this cool bar manager to the given menu manager.- Parameters:
- menuManager- the context menu manager, or- nullif none
- See Also:
 
- 
setLockLayoutvoid setLockLayout(boolean value) Locks or unlocks the layout of the underlying cool bar widget. Once the cool bar is locked, cool items cannot be repositioned by the user.Note that items can be added or removed programmatically even while the cool bar is locked. - Parameters:
- value-- trueto lock the cool bar,- falseto unlock
 
 
-