com.tirsen.angkor.table
Class AbstractTableModel
java.lang.Object
|
+--com.tirsen.angkor.table.AbstractTableModel
- All Implemented Interfaces:
- ChangeSource, java.io.Serializable, TableModel
- Direct Known Subclasses:
- BeanTableModel, DefaultTableModel, JavaBeanTableModel
- public abstract class AbstractTableModel
- extends java.lang.Object
- implements TableModel
- Version:
- $Revision: 1.5 $
$Id: AbstractTableModel.java,v 1.5 2002/10/09 21:37:37 tirsen Exp $
- Author:
- $Author: tirsen $
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTableModel
public AbstractTableModel()
setRowCount
public void setRowCount(int rowCount)
- Sets the actual row count of this model. Values needs to be fetched beforehand for rows actually used by
the user of the model. If set to -1 the size of actual data is used instead.
getRowCountInRange
public int getRowCountInRange()
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interface TableModel
setRange
public void setRange(int start,
int end)
- If any number is set to a negative number it is subtracted from the number of rows.
As a special case of this setting end to -1 sets the range to the last row.
- Specified by:
setRange
in interface TableModel
getStart
public int getStart()
- Specified by:
getStart
in interface TableModel
getEnd
public int getEnd()
- Specified by:
getEnd
in interface TableModel
empty
public void empty()
addChangeListener
public void addChangeListener(ChangeListener listener)
- Specified by:
addChangeListener
in interface ChangeSource
removeChangeListener
public void removeChangeListener(ChangeListener listener)
- Specified by:
removeChangeListener
in interface ChangeSource
signalChanged
protected void signalChanged()
- Call this method when values of the model has changed, will fire a change event.
Copyright © 2002-2002 . All Rights Reserved.