Class LayerTableModel
- java.lang.Object
-
- org.locationtech.jts.jump.workbench.ui.ColumnBasedTableModel
-
- org.locationtech.jts.jump.workbench.ui.LayerTableModel
-
- All Implemented Interfaces:
TableModel
public class LayerTableModel extends ColumnBasedTableModel
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.locationtech.jts.jump.workbench.ui.ColumnBasedTableModel
ColumnBasedTableModel.Column
-
-
Constructor Summary
Constructors Constructor Description LayerTableModel(Layer layer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAll(Collection newFeatures)
void
clear()
void
dispose()
Facilitate garbage collection by releasing references.Feature
getFeature(int row)
List
getFeatures()
Layer
getLayer()
int
getRowCount()
String
getSortedColumnName()
String
getType(int column)
boolean
isCellEditable(int rowIndex, int columnIndex)
boolean
isSortAscending()
static void
main(String[] args)
void
removeAll(Collection featuresToRemove)
void
sort(String columnName)
void
sort(String columnName, boolean ascending)
-
Methods inherited from class org.locationtech.jts.jump.workbench.ui.ColumnBasedTableModel
addTableModelListener, fireTableChanged, getColumn, getColumnClass, getColumnCount, getColumnName, getValueAt, indexOfColumn, isFiringEvents, removeTableModelListener, setColumns, setFiringEvents, setValueAt
-
-
-
-
Constructor Detail
-
LayerTableModel
public LayerTableModel(Layer layer)
-
-
Method Detail
-
getLayer
public Layer getLayer()
-
getFeature
public Feature getFeature(int row)
-
getRowCount
public int getRowCount()
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex)
-
clear
public void clear()
-
removeAll
public void removeAll(Collection featuresToRemove)
-
addAll
public void addAll(Collection newFeatures)
-
dispose
public void dispose()
Facilitate garbage collection by releasing references.
-
getFeatures
public List getFeatures()
-
getSortedColumnName
public String getSortedColumnName()
- Returns:
- null if the table has not yet been sorted
-
isSortAscending
public boolean isSortAscending()
-
sort
public void sort(String columnName)
-
sort
public void sort(String columnName, boolean ascending)
-
getType
public String getType(int column)
-
main
public static void main(String[] args)
-
-