|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jface.action.ContributionManager org.eclipse.jface.action.ToolBarManager
A tool bar manager is a contribution manager which realizes itself and its items in a tool bar control.
This class may be instantiated; it may also be subclassed if a more sophisticated layout is required.
Constructor Summary | |
ToolBarManager()
Creates a new tool bar manager with the default SWT button style. | |
ToolBarManager(int style)
Creates a tool bar manager with the given SWT button style. | |
ToolBarManager(ToolBar toolbar)
Creates a tool bar manager for an existing tool bar control. |
Method Summary | |
ToolBar | createControl(Composite parent)
Creates and returns this manager's tool bar control. |
void | dispose()
Disposes of this tool bar manager and frees all allocated SWT resources. |
MenuManager | getContextMenuManager()
Returns the context menu manager for this tool bar manager. |
ToolBar | getControl()
Returns the tool bar control for this manager. |
protected void | relayout(ToolBar toolBar,
int oldCount,
int newCount)
Re-lays out the tool bar. |
void | setContextMenuManager(MenuManager contextMenuManager)
Sets the context menu manager for this tool bar manager to the given menu manager. |
void | update(boolean force)
Updates this manager's underlying widget(s) with any changes which have been made to it or its items. |
Methods inherited from class org.eclipse.jface.action.ContributionManager |
add, add, allowItem, appendToGroup, appendToGroup, dumpStatistics, find, getItems, getOverrides, hasDynamicItems, indexOf, indexOf, insert, insertAfter, insertAfter, insertBefore, insertBefore, internalSetItems, isDirty, isEmpty, itemAdded, itemRemoved, markDirty, prependToGroup, prependToGroup, remove, remove, removeAll, replaceItem, setDirty, setOverrides |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.action.IContributionManager |
add, add, appendToGroup, appendToGroup, find, getItems, getOverrides, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, markDirty, prependToGroup, prependToGroup, remove, remove, removeAll |
Constructor Detail |
public ToolBarManager()
public ToolBarManager(int style)
public ToolBarManager(ToolBar toolbar)
Method Detail |
public ToolBar createControl(Composite parent)
public void dispose()
public ToolBar getControl()
protected void relayout(ToolBar toolBar, int oldCount, int newCount)
The default implementation of this framework method re-lays out the parent when the number of items crosses the zero threshold. Subclasses should override this method to implement their own re-layout strategy
public void update(boolean force)
public MenuManager getContextMenuManager()
public void setContextMenuManager(MenuManager contextMenuManager)
|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.