org.xnap.gui.table
Class TransferContainerTreeTableNode

java.lang.Object
  extended by org.xnap.gui.table.DefaultTreeTableNode
      extended by org.xnap.gui.table.TransferContainerTreeTableNode
All Implemented Interfaces:
java.util.EventListener, ListListener, StateListener, TreeTableNode
Direct Known Subclasses:
FilteredTransferContainerTreeTableNode

public class TransferContainerTreeTableNode
extends DefaultTreeTableNode
implements StateListener, ListListener


Constructor Summary
TransferContainerTreeTableNode(TransferTableModel model, Transfer transfer)
          Constructs a TransferContainerTreeTableNode.
 
Method Summary
 boolean add(Transfer transfer)
          Creates a LeafTreeTableNode, if data is not already contained in children.
 void addExistingChildren()
           
 void itemAdded(ListEvent event)
          Invoked when an item has beed added.
 void itemRemoved(ListEvent event)
          Invoked when an item has been removed.
 void remove(Transfer transfer)
           
 void stateChanged(StateEvent event)
          Invoked when the object has changed.
 
Methods inherited from class org.xnap.gui.table.DefaultTreeTableNode
add, changed, changedChildAt, children, getChildAt, getChildCount, getData, getIndexOfChildByData, getModel, removeChildAt, sort, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransferContainerTreeTableNode

public TransferContainerTreeTableNode(TransferTableModel model,
                                      Transfer transfer)
Constructs a TransferContainerTreeTableNode.

Parameters:
model - the table model
transfer - must implement TransferContainer
Method Detail

add

public boolean add(Transfer transfer)
Creates a LeafTreeTableNode, if data is not already contained in children.

Returns:
true, if data was added; false, otherwise

addExistingChildren

public void addExistingChildren()

remove

public void remove(Transfer transfer)

itemAdded

public void itemAdded(ListEvent event)
Description copied from interface: ListListener
Invoked when an item has beed added.

Specified by:
itemAdded in interface ListListener

itemRemoved

public void itemRemoved(ListEvent event)
Description copied from interface: ListListener
Invoked when an item has been removed.

Specified by:
itemRemoved in interface ListListener

stateChanged

public void stateChanged(StateEvent event)
Description copied from interface: StateListener
Invoked when the object has changed. Usually if the object is represented on screen the gui needs to be updated.

Specified by:
stateChanged in interface StateListener


Copyright © 2001-2005 XNap Team. All Rights Reserved.