rero.gui.toolkit
Class GeneralListModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byrero.gui.toolkit.GeneralListModel
All Implemented Interfaces:
Serializable, contrib.javapro.SortTableModel, TableModel

public abstract class GeneralListModel
extends AbstractTableModel
implements contrib.javapro.SortTableModel

A model for the sortable list window thingy...

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
GeneralListModel()
           
 
Method Summary
abstract  int getColumnCount()
           
abstract  String getColumnName(int col)
           
abstract  int getColumnWidth(int col)
           
abstract  HashMap getEventHashMap(int row)
           
abstract  int getRowCount()
           
abstract  Object getValueAt(int row, int col)
          make sure this method always returns an AttributedString
 boolean isSortable(int col)
           
abstract  void sortColumn(int col, boolean ascending)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, isCellEditable, removeTableModelListener, setValueAt
 

Constructor Detail

GeneralListModel

public GeneralListModel()
Method Detail

isSortable

public boolean isSortable(int col)
Specified by:
isSortable in interface contrib.javapro.SortTableModel

sortColumn

public abstract void sortColumn(int col,
                                boolean ascending)
Specified by:
sortColumn in interface contrib.javapro.SortTableModel

getRowCount

public abstract int getRowCount()
Specified by:
getRowCount in interface TableModel

getColumnCount

public abstract int getColumnCount()
Specified by:
getColumnCount in interface TableModel

getColumnName

public abstract String getColumnName(int col)
Specified by:
getColumnName in interface TableModel

getColumnWidth

public abstract int getColumnWidth(int col)

getEventHashMap

public abstract HashMap getEventHashMap(int row)

getValueAt

public abstract Object getValueAt(int row,
                                  int col)
make sure this method always returns an AttributedString

Specified by:
getValueAt in interface TableModel