public class FeatureCollectionTableModel extends AbstractTableModel
TableModel to retrieve attribute values from each feature in a feature collection
and cache them for a JTable
| Modifier and Type | Field and Description |
|---|---|
IOException |
exception |
listenerList| Constructor and Description |
|---|
FeatureCollectionTableModel(SimpleFeatureCollection features)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Cancel the running job, if any
|
int |
getColumnCount()
Get the number of columns in the table
|
String |
getColumnName(int column)
Retrieve the specified column name
|
int |
getRowCount()
Get the number of rows in the table
|
Object |
getValueAt(int rowIndex,
int columnIndex)
Get the value of a specified table entry
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtpublic IOException exception
public FeatureCollectionTableModel(SimpleFeatureCollection features)
features - the feature collection to load into the tablepublic void dispose()
public String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelcolumn - column indexpublic int getColumnCount()
public int getRowCount()
public Object getValueAt(int rowIndex, int columnIndex)
rowIndex - the row indexcolumnIndex - the column indexCopyright © 1996–2019 Geotools. All rights reserved.