com.tirsen.angkor.beans
Class BeanTableModel

java.lang.Object
  |
  +--com.tirsen.angkor.table.AbstractTableModel
        |
        +--com.tirsen.angkor.beans.BeanTableModel
All Implemented Interfaces:
ChangeSource, java.io.Serializable, TableModel
Direct Known Subclasses:
BasicBeanTableModel

public abstract class BeanTableModel
extends AbstractTableModel

See Also:
Serialized Form

Nested Class Summary
static interface BeanTableModel.TableColumnModel
           
 
Constructor Summary
BeanTableModel()
           
BeanTableModel(java.lang.Class rowClass)
           
 
Method Summary
 void addColumn(BeanTableModel.TableColumnModel column)
           
 void addColumn(java.lang.String name, java.lang.String property)
           
 java.beans.PropertyDescriptor findProperty(java.lang.String property)
           
 int getColumnCount()
           
 java.lang.String getColumnName(int column)
           
 java.lang.Object getRow(int row)
          Gets the value object for a specified row, also checks wheather row is within range specified by AbstractTableModel.setRange(int,int).
protected  java.lang.Class getRowClass()
           
protected abstract  java.util.List getRows()
           
 ValueModel getValueAt(int row, int column)
           
 void resetColumns()
          Resets the columns.
 
Methods inherited from class com.tirsen.angkor.table.AbstractTableModel
addChangeListener, empty, getEnd, getRowCount, getRowCountInRange, getStart, removeChangeListener, setRange, setRowCount, signalChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanTableModel

public BeanTableModel()

BeanTableModel

public BeanTableModel(java.lang.Class rowClass)
Method Detail

resetColumns

public void resetColumns()
Resets the columns.


getRowClass

protected java.lang.Class getRowClass()

addColumn

public void addColumn(BeanTableModel.TableColumnModel column)

findProperty

public java.beans.PropertyDescriptor findProperty(java.lang.String property)

addColumn

public void addColumn(java.lang.String name,
                      java.lang.String property)

getColumnName

public java.lang.String getColumnName(int column)

getColumnCount

public int getColumnCount()

getValueAt

public ValueModel getValueAt(int row,
                             int column)

getRow

public java.lang.Object getRow(int row)
Gets the value object for a specified row, also checks wheather row is within range specified by AbstractTableModel.setRange(int,int).

Throws:
java.lang.IllegalArgumentException - if row parameter is outside specified range.

getRows

protected abstract java.util.List getRows()


Copyright © 2002-2002 . All Rights Reserved.