org.xnap.gui.table
Class PeerTableModel

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.gui.table.PeerTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel, ColumnModel, SortableModel
Direct Known Subclasses:
ChatPeerTableModel

public class PeerTableModel
extends AbstractColumnTableModel

Provides a table model for Peer objects.

See Also:
Serialized Form

Field Summary
protected  java.util.ArrayList rows
           
 
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
PeerTableModel()
           
 
Method Summary
 void add(Peer u)
           
 void add(Peer u, boolean filterDuplicates)
           
 void clear()
           
 boolean contains(Peer u)
           
 Peer get(int i)
           
 java.lang.Object get(int i, int j)
           
 int getRowCount()
           
 int indexOf(Peer u)
           
 void remove(Peer u)
           
 
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

rows

protected java.util.ArrayList rows
Constructor Detail

PeerTableModel

public PeerTableModel()
Method Detail

add

public void add(Peer u,
                boolean filterDuplicates)

add

public void add(Peer u)

clear

public void clear()

contains

public boolean contains(Peer u)

get

public Peer get(int i)

getRowCount

public int getRowCount()

get

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

indexOf

public int indexOf(Peer u)

remove

public void remove(Peer u)


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