|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdsto.dfc.swt.commands.CommandViewToolBarProvider
public final class CommandViewToolBarProvider
Synchronizes a command view with a SWT CoolBar.
| Constructor Summary | |
|---|---|
CommandViewToolBarProvider(org.eclipse.swt.widgets.CoolBar coolbar,
CommandView commandView)
|
|
CommandViewToolBarProvider(org.eclipse.swt.widgets.CoolBar coolbar,
CommandView commandView,
CommandViewNode root)
Create a new instance, adding all the entries, and setting up all the listeners. |
|
| Method Summary | |
|---|---|
void |
childAdded(CommandViewNodeEvent e)
Fired when a child is added to the node. |
void |
childMoved(CommandViewNodeEvent e)
Fired when a child is moved within the node. |
void |
childRemoved(CommandViewNodeEvent e)
Fired when a child is removed from the node. |
void |
commandChanged(CommandViewNodeEvent e)
Fired when a child is moved within the node. |
void |
dispose()
Remove all listeners, and then remove all the commands and command groups. |
static void |
itemSizeChanged(org.eclipse.swt.widgets.ToolBar toolbar)
Item providers can call this method to let the toolbar provider know the size of one of the items on the provider's toolbar may have changed (e.g. |
void |
widgetDisposed(org.eclipse.swt.events.DisposeEvent e)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommandViewToolBarProvider(org.eclipse.swt.widgets.CoolBar coolbar,
CommandView commandView)
public CommandViewToolBarProvider(org.eclipse.swt.widgets.CoolBar coolbar,
CommandView commandView,
CommandViewNode root)
coolbar - The JToolBar that you want syncronized.commandView - The CommandView that you want synchronized.root - The root CommandViewNode that you want to start from.| Method Detail |
|---|
public void dispose()
public void widgetDisposed(org.eclipse.swt.events.DisposeEvent e)
widgetDisposed in interface org.eclipse.swt.events.DisposeListenerpublic void childAdded(CommandViewNodeEvent e)
CommandViewNodeListener
childAdded in interface CommandViewNodeListenere - The event. e e.getNode () == new node, e.getOldIndex ()
== -1, e.getNewIndex () == index of new node.public void childRemoved(CommandViewNodeEvent e)
CommandViewNodeListener
childRemoved in interface CommandViewNodeListenere - The event. e.getNode () == removed node, e.getOldIndex
() == old index of node, e.getNewIndex () == -1.public void childMoved(CommandViewNodeEvent e)
CommandViewNodeListener
childMoved in interface CommandViewNodeListenere - The event. e.getNode () == moved node, e.getOldIndex ()
== old index of node, e.getNewIndex () == new index.public void commandChanged(CommandViewNodeEvent e)
CommandViewNodeListener
commandChanged in interface CommandViewNodeListenere - The event. e.getSourceNode () == node that changed,
e.getNode () == null, e.getOldCommand () == old command (may be
null), e.getNewCommand () == new command.public static void itemSizeChanged(org.eclipse.swt.widgets.ToolBar toolbar)
toolbar - The toolbar instance that the provider created its
items in.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||