org.xnap.gui.table
Class ChatPeerTableModel

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
                  extended by org.xnap.gui.table.ChatPeerTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel, ColumnModel, SortableModel

public class ChatPeerTableModel
extends PeerTableModel

Provides a table model for Peer objects in chat tables. The only difference between this class and PeerTableModel is that the Channel is queried for a prefix for each peer name.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.xnap.gui.table.PeerTableModel
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
ChatPeerTableModel(Channel channel)
           
 
Method Summary
 void changed(Peer peer)
          Invoked when peer has changed.
 java.lang.Object get(int i, int j)
           
 
Methods inherited from class org.xnap.gui.table.PeerTableModel
add, add, clear, contains, get, getRowCount, indexOf, remove
 
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
 

Constructor Detail

ChatPeerTableModel

public ChatPeerTableModel(Channel channel)
Method Detail

changed

public void changed(Peer peer)
Invoked when peer has changed. Invokes fireTableRowsUpdated().


get

public java.lang.Object get(int i,
                            int j)
Overrides:
get in class PeerTableModel


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