|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdsto.dfc.swt.commands.CommandViewMenuBarProvider
public final class CommandViewMenuBarProvider
Synchronizes a menu bar with a CommandView.
| Constructor Summary | |
|---|---|
CommandViewMenuBarProvider(org.eclipse.swt.widgets.Menu menuBar,
CommandView commandView,
CommandViewNode root)
Create a new instance. |
|
| 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 references. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommandViewMenuBarProvider(org.eclipse.swt.widgets.Menu menuBar,
CommandView commandView,
CommandViewNode root)
menuBar - The menu bar to synchronise.commandView - The tree of commands.root - The root node of the tree to use for this menu.| Method Detail |
|---|
public void dispose()
public 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||