Package org.geotools.swing.table
Class FeatureCollectionTableModel
Object
AbstractTableModel
FeatureCollectionTableModel
- All Implemented Interfaces:
Serializable,TableModel
A Swing
TableModel to retrieve attribute values from each feature in a feature collection and cache them for
a JTable
- See Also:
-
Field Summary
FieldsFields inherited from class AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Cancel the running job, if anyintGet the number of columns in the tablegetColumnName(int column) Retrieve the specified column nameintGet the number of rows in the tablegetValueAt(int rowIndex, int columnIndex) Get the value of a specified table entryMethods inherited from class AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
Field Details
-
exception
-
-
Constructor Details
-
FeatureCollectionTableModel
Constructor- Parameters:
features- the feature collection to load into the table
-
-
Method Details
-
dispose
public void dispose()Cancel the running job, if any -
getColumnName
Retrieve the specified column name- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel- Parameters:
column- column index- Returns:
- the column name
-
getColumnCount
public int getColumnCount()Get the number of columns in the table- Returns:
- the number of columns
-
getRowCount
public int getRowCount()Get the number of rows in the table- Returns:
- the number of rows
-
getValueAt
Get the value of a specified table entry- Parameters:
rowIndex- the row indexcolumnIndex- the column index- Returns:
- the table entry
-