dsto.dfc.swt.commands
Interface CommandViewNodeListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
CommandViewMenuBarProvider, CommandViewMenuProvider, CommandViewToolBarProvider

public interface CommandViewNodeListener
extends EventListener

Defines the events fired by CommandViewNode's.

Version:
$Revision$

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.
 

Method Detail

childAdded

void childAdded(CommandViewNodeEvent e)
Fired when a child is added to the node.

Parameters:
e - The event. e e.getNode () == new node, e.getOldIndex () == -1, e.getNewIndex () == index of new node.

childRemoved

void childRemoved(CommandViewNodeEvent e)
Fired when a child is removed from the node.

Parameters:
e - The event. e.getNode () == removed node, e.getOldIndex () == old index of node, e.getNewIndex () == -1.

childMoved

void childMoved(CommandViewNodeEvent e)
Fired when a child is moved within the node.

Parameters:
e - The event. e.getNode () == moved node, e.getOldIndex () == old index of node, e.getNewIndex () == new index.

commandChanged

void commandChanged(CommandViewNodeEvent e)
Fired when a child is moved within the node.

Parameters:
e - The event. e.getSourceNode () == node that changed, e.getNode () == null, e.getOldCommand () == old command (may be null), e.getNewCommand () == new command.


Copyright © 2008 Commonwealth of Australia