rero.gui.toolkit
Class GeneralListModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by rero.gui.toolkit.GeneralListModel
All Implemented Interfaces:
contrib.javapro.SortTableModel, java.io.Serializable, javax.swing.table.TableModel

public abstract class GeneralListModel
extends javax.swing.table.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  java.lang.String getColumnName(int col)
           
abstract  int getColumnWidth(int col)
           
abstract  java.util.HashMap getEventHashMap(int row)
           
abstract  int getRowCount()
           
abstract  java.lang.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 javax.swing.table.TableModel

getColumnCount

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

getColumnName

public abstract java.lang.String getColumnName(int col)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getColumnWidth

public abstract int getColumnWidth(int col)

getEventHashMap

public abstract java.util.HashMap getEventHashMap(int row)

getValueAt

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

Specified by:
getValueAt in interface javax.swing.table.TableModel