nextapp.echo.table
Interface TableModel

All Known Subinterfaces:
PagedTableModel
All Known Implementing Classes:
AbstractTableModel, BoundTableModel, DefaultPagedTableModel, DefaultTableModel, EditableBoundTableModel, HighlightSuccessModel, JamonScreen.JamonScreenTableModel, SortablePagedTableModel, SortableTableModel, TableModelAdapter

public interface TableModel

A representation of table data.


Method Summary
 void addTableModelListener(TableModelListener l)
          Adds a listener that will be notified of changes to the table model.
 java.lang.Class getColumnClass(int column)
          Returns the most-specific class found in a given table column.
 int getColumnCount()
          Returns the number of columns in the table.
 java.lang.String getColumnName(int column)
          Returns the name of the specified column number.
 int getRowCount()
          Returns the number of rows in the table.
 java.lang.Object getValueAt(int column, int row)
          Returns the value found at the given coordinate within the table.
 boolean isRowEditable(int row)
           When a table model supports editing of data, this method will be called to query if a row is currently editable.
 void removeTableModelListener(TableModelListener l)
          Removes a listener from being notified of changes to the table model.
 

Method Detail

addTableModelListener

void addTableModelListener(TableModelListener l)
Adds a listener that will be notified of changes to the table model.

Parameters:
l - The listener to add.

getColumnClass

java.lang.Class getColumnClass(int column)
Returns the most-specific class found in a given table column.

Parameters:
column - The column number whose class is to be returned.
Returns:
The most-specific class found in the given table column.

getColumnCount

int getColumnCount()
Returns the number of columns in the table.

Returns:
The number of columns in the table.

getColumnName

java.lang.String getColumnName(int column)
Returns the name of the specified column number.

Parameters:
column - The column number whose name is to be returned.
Returns:
The name of the specified column number.

getRowCount

int getRowCount()
Returns the number of rows in the table.

Returns:
The number of rows in the table.

getValueAt

java.lang.Object getValueAt(int column,
                            int row)
Returns the value found at the given coordinate within the table.

Parameters:
column - The column of the value to return.
row - The row of the value to return.

removeTableModelListener

void removeTableModelListener(TableModelListener l)
Removes a listener from being notified of changes to the table model.

Parameters:
l - The listener to remove.

isRowEditable

boolean isRowEditable(int row)

When a table model supports editing of data, this method will be called to query if a row is currently editable.