harmonic.mz.gui
Class NodeListBox

java.lang.Object
  |
  +--HWStringListBox
        |
        +--harmonic.mz.gui.NodeListBox
All Implemented Interfaces:
NodeListener

public class NodeListBox
extends HWStringListBox
implements NodeListener

This is a special list box for lists of tree nodes that knows how to do renamings and box filling, similer to NodeTreeBox.

See Also:
Serialized Form

Field Summary
 java.lang.String currentName
           
 
Constructor Summary
NodeListBox(java.lang.String label, java.lang.Object listener, java.lang.String callback, ModelNode root)
          Constructs a NodeListBox
NodeListBox(java.lang.String _label, java.lang.Object listener, java.lang.String callback, java.util.Vector nodes)
          Constructs a NodeListBox
 
Method Summary
 void nodeChanged(NodeEvent event)
          Node has changed
 void onListBox(HWListEvent e)
           
 void setNodeList(java.util.Vector list)
          Set the node list.
 void setRoot(ModelNode root)
          Set the node group.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentName

public java.lang.String currentName
Constructor Detail

NodeListBox

public NodeListBox(java.lang.String label,
                   java.lang.Object listener,
                   java.lang.String callback,
                   ModelNode root)
Constructs a NodeListBox

Parameters:
label - Label to draw
callback - Listeners callback, declared fnname(HWListEvent)
root - Group of nodes to add. Only direct children are added

NodeListBox

public NodeListBox(java.lang.String _label,
                   java.lang.Object listener,
                   java.lang.String callback,
                   java.util.Vector nodes)
Constructs a NodeListBox

Parameters:
callback - Listeners callback, declared fnname(HWListEvent)
Method Detail

setRoot

public void setRoot(ModelNode root)
Set the node group. This is preferred to using setNodeList() because this will sense deletions or additions of the nodes by other user interfaces.


setNodeList

public void setNodeList(java.util.Vector list)
Set the node list.


nodeChanged

public void nodeChanged(NodeEvent event)
Description copied from interface: NodeListener
Node has changed

Specified by:
nodeChanged in interface NodeListener

onListBox

public void onListBox(HWListEvent e)