org.xnap.gui.table
Class TransferTableModel

java.lang.Object
  extended by org.xnap.gui.table.AbstractTreeTableModel
      extended by org.xnap.gui.table.AbstractColumnTreeTableModel
          extended by org.xnap.gui.table.DefaultColumnTreeTableModel
              extended by org.xnap.gui.table.TransferTableModel
All Implemented Interfaces:
java.util.EventListener, javax.swing.tree.TreeModel, SwingListListener, ColumnModel, SortableModel, TreeTableModel
Direct Known Subclasses:
FilteredTransferTableModel

public class TransferTableModel
extends DefaultColumnTreeTableModel
implements SwingListListener

The model for the upload and download table.

See Also:
xnap.gui.TransferPanel

Field Summary
static int UPDATE_INTERVAL
          The table update interval.
 
Fields inherited from class org.xnap.gui.table.AbstractColumnTreeTableModel
columns
 
Fields inherited from class org.xnap.gui.table.AbstractTreeTableModel
listenerList, root
 
Constructor Summary
TransferTableModel(AbstractTransferManager queue, boolean printActiveBold)
           
 
Method Summary
 void add(Transfer t)
           
 java.lang.Object getValueAt(java.lang.Object node, int column)
          Returns the value to be displayed for node node, at column number column.
 void itemsAdded(java.lang.Object[] items)
          Invoked when transfers have been added to the queue.
 void itemsRemoved(java.lang.Object[] items)
          Invoked when transfers have been removed from the queue.
 void remove(Transfer t)
           
 void setListener(TransferManagerListener listener)
           
 
Methods inherited from class org.xnap.gui.table.DefaultColumnTreeTableModel
add, getChild, getChildCount, getSortedColumn, indexOfByData, isSortedAscending, iterator, remove, remove, setMaintainSortOrder, sortByColumn
 
Methods inherited from class org.xnap.gui.table.AbstractColumnTreeTableModel
addColumn, addColumns, createColumnMenu, createTreeTable, getColumnAt, getColumnClass, getColumnCount, getColumnName, isLeaf
 
Methods inherited from class org.xnap.gui.table.AbstractTreeTableModel
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getIndexOfChild, getRoot, isCellEditable, removeTreeModelListener, setValueAt, valueForPathChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xnap.gui.table.SortableModel
getColumnClass
 

Field Detail

UPDATE_INTERVAL

public static final int UPDATE_INTERVAL
The table update interval.

See Also:
Constant Field Values
Constructor Detail

TransferTableModel

public TransferTableModel(AbstractTransferManager queue,
                          boolean printActiveBold)
Method Detail

add

public void add(Transfer t)

itemsAdded

public void itemsAdded(java.lang.Object[] items)
Invoked when transfers have been added to the queue.

Specified by:
itemsAdded in interface SwingListListener

itemsRemoved

public void itemsRemoved(java.lang.Object[] items)
Invoked when transfers have been removed from the queue.

Specified by:
itemsRemoved in interface SwingListListener

getValueAt

public java.lang.Object getValueAt(java.lang.Object node,
                                   int column)
Description copied from interface: TreeTableModel
Returns the value to be displayed for node node, at column number column.

Specified by:
getValueAt in interface TreeTableModel
Overrides:
getValueAt in class DefaultColumnTreeTableModel

remove

public void remove(Transfer t)

setListener

public void setListener(TransferManagerListener listener)


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