Package org.geotools.swing.table
Class FeatureCollectionTableModel
- Object
- 
- AbstractTableModel
- 
- FeatureCollectionTableModel
 
 
- 
- All Implemented Interfaces:
- Serializable,- TableModel
 
 public class FeatureCollectionTableModel extends AbstractTableModel A SwingTableModelto retrieve attribute values from each feature in a feature collection and cache them for aJTable- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description IOExceptionexception- 
Fields inherited from class AbstractTableModellistenerList
 
- 
 - 
Constructor SummaryConstructors Constructor Description FeatureCollectionTableModel(SimpleFeatureCollection features)Constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Cancel the running job, if anyintgetColumnCount()Get the number of columns in the tableStringgetColumnName(int column)Retrieve the specified column nameintgetRowCount()Get the number of rows in the tableObjectgetValueAt(int rowIndex, int columnIndex)Get the value of a specified table entry- 
Methods inherited from class AbstractTableModeladdTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
- 
 
- 
- 
- 
Field Detail- 
exceptionpublic IOException exception 
 
- 
 - 
Constructor Detail- 
FeatureCollectionTableModelpublic FeatureCollectionTableModel(SimpleFeatureCollection features) Constructor- Parameters:
- features- the feature collection to load into the table
 
 
- 
 - 
Method Detail- 
disposepublic void dispose() Cancel the running job, if any
 - 
getColumnNamepublic String getColumnName(int column) Retrieve the specified column name- Specified by:
- getColumnNamein interface- TableModel
- Overrides:
- getColumnNamein class- AbstractTableModel
- Parameters:
- column- column index
- Returns:
- the column name
 
 - 
getColumnCountpublic int getColumnCount() Get the number of columns in the table- Returns:
- the number of columns
 
 - 
getRowCountpublic int getRowCount() Get the number of rows in the table- Returns:
- the number of rows
 
 - 
getValueAtpublic Object getValueAt(int rowIndex, int columnIndex) Get the value of a specified table entry- Parameters:
- rowIndex- the row index
- columnIndex- the column index
- Returns:
- the table entry
 
 
- 
 
-