SPT Core API

com.sptci.echo.table
Class AbstractTableModel<D>

java.lang.Object
  extended by nextapp.echo.app.table.AbstractTableModel
      extended by com.sptci.echo.table.AbstractTableModel<D>
Type Parameters:
D - The class type of the model object displayed in the table.
All Implemented Interfaces:
Serializable, TableModel
Direct Known Subclasses:
TableModel

public abstract class AbstractTableModel<D>
extends AbstractTableModel

A genericised TableModel used to hold instances of objects of the type specified. Contains a default implementation for the SortableTableModel.getSortDirection(int) method.

© Copyright 2007 Sans Pareil Technologies, Inc.

Version:
$Id: AbstractTableModel.java 4859 2009-08-12 20:52:19Z rakesh $
Author:
Rakesh Vidyadharan 2007-11-13
See Also:
Serialized Form

Field Summary
protected  SortableTableModel.Direction sortDirection
          The sort directive for the current column.
protected  int sortIndex
          The current column that is sorted by.
 
Constructor Summary
AbstractTableModel()
           
 
Method Summary
 SortableTableModel.Direction getSortDirection(int column)
           
abstract  void init()
          The method used to initialise the table model.
 
Methods inherited from class nextapp.echo.app.table.AbstractTableModel
addTableModelListener, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getEventListenerList, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nextapp.echo.app.table.TableModel
getColumnCount, getRowCount, getValueAt
 

Field Detail

sortDirection

protected SortableTableModel.Direction sortDirection
The sort directive for the current column.


sortIndex

protected int sortIndex
The current column that is sorted by.

Constructor Detail

AbstractTableModel

public AbstractTableModel()
Method Detail

getSortDirection

public SortableTableModel.Direction getSortDirection(int column)

init

public abstract void init()
The method used to initialise the table model. The table to which this model is applied will usually invoke this method to initialise the model (typically in the Component.init() method.


SPT Core API