public class SimpleFeaturesTableModelImpl extends javax.swing.table.AbstractTableModel implements SimpleFeaturesTableModel
Modifier and Type | Class and Description |
---|---|
static class |
SimpleFeaturesTableModelImpl.ColorRangeRenderer |
EMPTY_UNMODIFIABLEBASICLIST
EMPTY_GETITEMWITHSIZEANDITERATOR
Constructor and Description |
---|
SimpleFeaturesTableModelImpl(FeatureStore store) |
SimpleFeaturesTableModelImpl(FeatureStore store,
Expression filter) |
SimpleFeaturesTableModelImpl(FeatureType featureType) |
SimpleFeaturesTableModelImpl(FeatureType featureType,
java.util.List<java.lang.String> columnNames,
java.util.List<Feature> features) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes the current object, to allow it to close and dispose any used
resources.
|
Feature |
get(int position) |
java.lang.Class<?> |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
java.lang.String |
getColumnName(int columnIndex) |
java.util.List<java.lang.String> |
getColumnNames() |
Feature |
getFeatureAt(int rowIndex) |
FeatureAttributeDescriptor |
getFeatureDescriptor(int columnIndex) |
java.util.List<Feature> |
getFeatures() |
Expression |
getFeaturesFilter(int[] rows) |
int |
getRowCount() |
java.lang.Object |
getValueAt(Feature feature,
int columnIndex) |
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
hasErrors() |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
boolean |
isEmpty() |
java.util.Iterator<Feature> |
iterator() |
static void |
selfRegister() |
void |
setCellRenderers(javax.swing.JTable table) |
void |
setCellRenderers(javax.swing.JTable table,
java.util.Map<java.lang.String,javax.swing.table.TableCellRenderer> renderers) |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex) |
int |
size() |
java.util.List<Feature> |
toList() |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTableModelListener, removeTableModelListener
isEmpty, isEmpty, isEmptyQuietly
public SimpleFeaturesTableModelImpl(FeatureStore store) throws DataException
DataException
public SimpleFeaturesTableModelImpl(FeatureStore store, Expression filter) throws DataException
DataException
public SimpleFeaturesTableModelImpl(FeatureType featureType)
public SimpleFeaturesTableModelImpl(FeatureType featureType, java.util.List<java.lang.String> columnNames, java.util.List<Feature> features)
public java.util.List<java.lang.String> getColumnNames()
getColumnNames
in interface SimpleFeaturesTableModel
public void setCellRenderers(javax.swing.JTable table)
setCellRenderers
in interface SimpleFeaturesTableModel
public void setCellRenderers(javax.swing.JTable table, java.util.Map<java.lang.String,javax.swing.table.TableCellRenderer> renderers)
setCellRenderers
in interface SimpleFeaturesTableModel
public java.util.List<Feature> getFeatures()
getFeatures
in interface SimpleFeaturesTableModel
public void dispose()
Disposable
NOTE:After calling this method, the object may not be usable anymore.
dispose
in interface Disposable
public int getRowCount()
getRowCount
in interface javax.swing.table.TableModel
public boolean hasErrors()
hasErrors
in interface SimpleFeaturesTableModel
public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
public java.lang.String getColumnName(int columnIndex)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
public FeatureAttributeDescriptor getFeatureDescriptor(int columnIndex)
getFeatureDescriptor
in interface SimpleFeaturesTableModel
public Feature getFeatureAt(int rowIndex)
getFeatureAt
in interface SimpleFeaturesTableModel
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface javax.swing.table.TableModel
public java.lang.Object getValueAt(Feature feature, int columnIndex)
getValueAt
in interface SimpleFeaturesTableModel
public void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
public java.util.List<Feature> toList()
toList
in interface UnmodifiableBasicList<Feature>
public java.util.Iterator<Feature> iterator()
iterator
in interface java.lang.Iterable<Feature>
public static void selfRegister()
public Expression getFeaturesFilter(int[] rows)
getFeaturesFilter
in interface SimpleFeaturesTableModel