org.xnap.plugin.limewire
Class LimeWireConnectionTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.xnap.gui.table.AbstractSortableTableModel
          extended by org.xnap.gui.table.AbstractColumnTableModel
              extended by org.xnap.plugin.limewire.LimeWireConnectionTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel, ColumnModel, SortableModel

public class LimeWireConnectionTableModel
extends AbstractColumnTableModel

Table model for ManagedConnection objects. FIX: the connections that have been initialized before the gui was visible are not displayed in the table

See Also:
Serialized Form

Field Summary
static int UPDATE_INTERVAL
           
 
Fields inherited from class org.xnap.gui.table.AbstractColumnTableModel
columns
 
Fields inherited from class org.xnap.gui.table.AbstractSortableTableModel
ascending, compares, indexes, lastSortedColumn, maintainSortOrder, revIndexes, sortingColumns
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
LimeWireConnectionTableModel()
           
 
Method Summary
 void add(com.limegroup.gnutella.ManagedConnection c)
           
 java.lang.Object get(int i, int j)
           
 java.lang.String getIO(long in, long out)
           
 int getRowCount()
           
 void remove(com.limegroup.gnutella.ManagedConnection c)
           
 void setConnected(boolean connected)
           
 void update(com.limegroup.gnutella.ManagedConnection c)
           
 
Methods inherited from class org.xnap.gui.table.AbstractColumnTableModel
addColumn, addColumns, createColumnMenu, createTable, getColumnAt, getColumnClass, getColumnCount, getColumnName
 
Methods inherited from class org.xnap.gui.table.AbstractSortableTableModel
compare, compareRowsByColumn, fireTableChanged, getSortedColumn, getValueAt, isCellEditable, isSortedAscending, mapToDtmIndex, mapToIndex, n2sort, reallocateIndexes, reallocateIndexes, resort, set, setMaintainSortOrder, setSortedAscending, setValueAt, shuttlesort, sort, sortByColumn, swap
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UPDATE_INTERVAL

public static int UPDATE_INTERVAL
Constructor Detail

LimeWireConnectionTableModel

public LimeWireConnectionTableModel()
Method Detail

add

public void add(com.limegroup.gnutella.ManagedConnection c)

update

public void update(com.limegroup.gnutella.ManagedConnection c)
Parameters:
c -

remove

public void remove(com.limegroup.gnutella.ManagedConnection c)
Parameters:
c -

getRowCount

public int getRowCount()

get

public java.lang.Object get(int i,
                            int j)
Specified by:
get in class AbstractSortableTableModel

getIO

public java.lang.String getIO(long in,
                              long out)

setConnected

public void setConnected(boolean connected)


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