com.tirsen.angkor.table
Class DefaultTableModel

java.lang.Object
  |
  +--com.tirsen.angkor.table.AbstractTableModel
        |
        +--com.tirsen.angkor.table.DefaultTableModel
All Implemented Interfaces:
ChangeSource, java.io.Serializable, TableModel

public class DefaultTableModel
extends AbstractTableModel

Version:
$Revision: 1.5 $
$Id: DefaultTableModel.java,v 1.5 2002/10/09 21:37:37 tirsen Exp $
Author:
$Author: tirsen $
See Also:
Serialized Form

Constructor Summary
DefaultTableModel()
           
 
Method Summary
 void addColumn(java.lang.String name)
           
 void addRow(java.lang.Object[] columnValues)
          Adds a row to the end of this table.
 void empty()
           
 int getColumnCount()
           
 java.lang.String getColumnName(int column)
           
 int getRowCount()
           
 ValueModel getValueAt(int row, int column)
           
 void setRow(int row, java.lang.Object[] columnValues)
           
 
Methods inherited from class com.tirsen.angkor.table.AbstractTableModel
addChangeListener, getEnd, 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

DefaultTableModel

public DefaultTableModel()
Method Detail

addColumn

public void addColumn(java.lang.String name)

addRow

public void addRow(java.lang.Object[] columnValues)
Adds a row to the end of this table.


setRow

public void setRow(int row,
                   java.lang.Object[] columnValues)

getColumnName

public java.lang.String getColumnName(int column)

getValueAt

public ValueModel getValueAt(int row,
                             int column)

getColumnCount

public int getColumnCount()

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface TableModel
Overrides:
getRowCount in class AbstractTableModel

empty

public void empty()
Overrides:
empty in class AbstractTableModel


Copyright © 2002-2002 . All Rights Reserved.