com.vividsolutions.jump.workbench.ui
Class LayerTableModel

java.lang.Object
  extended bycom.vividsolutions.jump.workbench.ui.ColumnBasedTableModel
      extended bycom.vividsolutions.jump.workbench.ui.LayerTableModel
All Implemented Interfaces:
javax.swing.table.TableModel

public class LayerTableModel
extends ColumnBasedTableModel


Nested Class Summary
 
Nested classes inherited from class com.vividsolutions.jump.workbench.ui.ColumnBasedTableModel
ColumnBasedTableModel.Column
 
Constructor Summary
LayerTableModel(Layer layer)
           
 
Method Summary
 void addAll(java.util.Collection newFeatures)
           
 void clear()
           
 void dispose()
          Facilitate garbage collection by releasing references.
 Feature getFeature(int row)
           
 java.util.List getFeatures()
           
 Layer getLayer()
           
 int getRowCount()
           
 java.lang.String getSortedColumnName()
           
 java.lang.String getType(int column)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 boolean isSortAscending()
           
static void main(java.lang.String[] args)
           
 void removeAll(java.util.Collection featuresToRemove)
           
 void sort(java.lang.String columnName)
           
 void sort(java.lang.String columnName, boolean ascending)
           
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.ColumnBasedTableModel
addTableModelListener, fireTableChanged, getColumn, getColumnClass, getColumnCount, getColumnName, getValueAt, indexOfColumn, isFiringEvents, removeTableModelListener, setColumns, setFiringEvents, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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(java.util.Collection featuresToRemove)

addAll

public void addAll(java.util.Collection newFeatures)

dispose

public void dispose()
Facilitate garbage collection by releasing references.


getFeatures

public java.util.List getFeatures()

getSortedColumnName

public java.lang.String getSortedColumnName()
Returns:
null if the table has not yet been sorted

isSortAscending

public boolean isSortAscending()

sort

public void sort(java.lang.String columnName)

sort

public void sort(java.lang.String columnName,
                 boolean ascending)

getType

public java.lang.String getType(int column)

main

public static void main(java.lang.String[] args)