| java.lang.Object javax.swing.table.AbstractTableModel org.geotools.gui.swing.table.FeatureTableModel
FeatureTableModel | public class FeatureTableModel extends AbstractTableModel implements TableModel(Code) | | An implementation of Swing's table model which allows feature tables to be displayed.
since: 2.2 version: $Id: FeatureTableModel.java 22482 2006-10-31 02:58:00Z desruisseaux $ author: James Macgill, CCG |
Method Summary | |
public int | getColumnCount() The number of columns in the feature table. | public String | getColumnName(int col) Gets the name of a specified column.
Parameters: col - the index of the column to get the name of. | public int | getRowCount() Gets the row count for the featureTable. | public Object | getValueAt(int row, int col) Gets the value stored in a specified cell. | public void | setFeatureCollection(FeatureCollection features) Sets which featureTable to represent
Parameters: features - The featureTable to represent. |
FeatureTableModel | public FeatureTableModel()(Code) | | Creates a new instance of feature table model.
|
FeatureTableModel | public FeatureTableModel(FeatureCollection features)(Code) | | Creates a new instance of FeatureTableModel based on the feature collection provided.
|
getColumnCount | public int getColumnCount()(Code) | | The number of columns in the feature table. Note: for the moment, this is
determined by the first feature.
the number of columns in this feature table. |
getColumnName | public String getColumnName(int col)(Code) | | Gets the name of a specified column.
Parameters: col - the index of the column to get the name of. the name of col . |
getRowCount | public int getRowCount()(Code) | | Gets the row count for the featureTable.
the number of features in feature table. |
getValueAt | public Object getValueAt(int row, int col)(Code) | | Gets the value stored in a specified cell. In this case,
row =
Feature and
col =
Attribute .
Parameters: row - the row number. Parameters: col - the column number. the value in the specified cell. |
setFeatureCollection | public void setFeatureCollection(FeatureCollection features)(Code) | | Sets which featureTable to represent
Parameters: features - The featureTable to represent. This could firea Table Structure Changed event. |
|
|