|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
org.geotools.gui.swing.table.FeatureTableModel
An implementation of Swing's table model which allows feature tables to be displayed.
| Field Summary |
| Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
| Constructor Summary | |
FeatureTableModel()
Creates a new instance of feature table model. |
|
FeatureTableModel(FeatureCollection features)
Creates a new instance of FeatureTableModel based on the feature collection provided. |
|
| Method Summary | |
int |
getColumnCount()
The number of columns in the feature table. |
java.lang.String |
getColumnName(int col)
Gets the name of a specified column. |
int |
getRowCount()
Gets the row count for the featureTable. |
java.lang.Object |
getValueAt(int row,
int col)
Gets the value stored in a specified cell. |
void |
setFeatureCollection(FeatureCollection features)
Sets which featureTable to represent |
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.table.TableModel |
addTableModelListener, getColumnClass, isCellEditable, removeTableModelListener, setValueAt |
| Constructor Detail |
public FeatureTableModel()
public FeatureTableModel(FeatureCollection features)
| Method Detail |
public void setFeatureCollection(FeatureCollection features)
features - The featureTable to represent. This could fire
a Table Structure Changed event.public int getColumnCount()
getColumnCount in interface javax.swing.table.TableModelpublic int getRowCount()
getRowCount in interface javax.swing.table.TableModelpublic java.lang.String getColumnName(int col)
getColumnName in interface javax.swing.table.TableModelcol - the index of the column to get the name of.
public java.lang.Object getValueAt(int row,
int col)
getValueAt in interface javax.swing.table.TableModelrow - the row number.col - the column number.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||