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 voidaddAll(Collection newFeatures)voidclear()voiddispose()Facilitate garbage collection by releasing references.FeaturegetFeature(int row)ListgetFeatures()LayergetLayer()intgetRowCount()StringgetSortedColumnName()StringgetType(int column)booleanisCellEditable(int rowIndex, int columnIndex)booleanisSortAscending()static voidmain(String[] args)voidremoveAll(Collection featuresToRemove)voidsort(String columnName)voidsort(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)
-
-