org.xnap.gui.table
Class HotlistTableModel

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.HotlistTableModel
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.swing.table.TableModel, StateListener, SwingListListener, ColumnModel, SortableModel

public class HotlistTableModel
extends AbstractColumnTableModel
implements StateListener, SwingListListener

See Also:
Serialized Form

Nested Class Summary
static class HotlistTableModel.AllFilter
           
static class HotlistTableModel.CategoryFilter
           
static class HotlistTableModel.OtherFilter
           
static interface HotlistTableModel.UserFilter
           
 
Field Summary
 
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
HotlistTableModel()
           
 
Method Summary
 void add(HotlistItem item)
           
 HotlistItem get(int i)
           
 java.lang.Object get(int i, int j)
           
 int getRowCount()
           
 void itemsAdded(java.lang.Object[] items)
          Invoked when items have been added.
 void itemsRemoved(java.lang.Object[] items)
          Invoked when items have been removed.
 void reload()
           
 void remove(HotlistItem item)
           
 void setFilter(HotlistTableModel.UserFilter filter)
           
 void stateChanged(StateEvent e)
          Invoked when the object has changed.
 
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

HotlistTableModel

public HotlistTableModel()
Method Detail

itemsAdded

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

Specified by:
itemsAdded in interface SwingListListener

itemsRemoved

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

Specified by:
itemsRemoved in interface SwingListListener

add

public void add(HotlistItem item)

get

public HotlistItem get(int i)

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface javax.swing.table.TableModel

get

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

remove

public void remove(HotlistItem item)

setFilter

public void setFilter(HotlistTableModel.UserFilter filter)

stateChanged

public void stateChanged(StateEvent e)
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

reload

public void reload()


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