Class SimpleFeaturesTableModelImpl

java.lang.Object
javax.swing.table.AbstractTableModel
org.gvsig.fmap.dal.swing.impl.featuretable.SimpleFeaturesTableModelImpl
All Implemented Interfaces:
Serializable, Iterable<org.gvsig.fmap.dal.feature.Feature>, TableModel, org.gvsig.fmap.dal.swing.featuretable.SimpleFeaturesTableModel, org.gvsig.tools.dispose.Disposable, org.gvsig.tools.util.GetItem<org.gvsig.fmap.dal.feature.Feature>, org.gvsig.tools.util.GetItemWithSize<org.gvsig.fmap.dal.feature.Feature>, org.gvsig.tools.util.GetItemWithSizeAndIterator<org.gvsig.fmap.dal.feature.Feature>, org.gvsig.tools.util.IsEmpty, org.gvsig.tools.util.Size, org.gvsig.tools.util.UnmodifiableBasicCollection<org.gvsig.fmap.dal.feature.Feature>, org.gvsig.tools.util.UnmodifiableBasicList<org.gvsig.fmap.dal.feature.Feature>
Direct Known Subclasses:
SimpleFeatureReferencesTableModelImpl

public class SimpleFeaturesTableModelImpl extends AbstractTableModel implements org.gvsig.fmap.dal.swing.featuretable.SimpleFeaturesTableModel
Author:
jjdelcerro
See Also:
  • Constructor Details

    • SimpleFeaturesTableModelImpl

      public SimpleFeaturesTableModelImpl(org.gvsig.fmap.dal.feature.FeatureStore store) throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • SimpleFeaturesTableModelImpl

      public SimpleFeaturesTableModelImpl(org.gvsig.fmap.dal.feature.FeatureStore store, org.gvsig.expressionevaluator.Expression filter) throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • SimpleFeaturesTableModelImpl

      public SimpleFeaturesTableModelImpl(org.gvsig.fmap.dal.feature.FeatureType featureType)
    • SimpleFeaturesTableModelImpl

      public SimpleFeaturesTableModelImpl(org.gvsig.fmap.dal.feature.FeatureType featureType, List<String> columnNames, List<org.gvsig.fmap.dal.feature.Feature> features)
  • Method Details

    • getColumnNames

      public List<String> getColumnNames()
      Specified by:
      getColumnNames in interface org.gvsig.fmap.dal.swing.featuretable.SimpleFeaturesTableModel
    • setCellRenderers

      public void setCellRenderers(JTable table)
      Specified by:
      setCellRenderers in interface org.gvsig.fmap.dal.swing.featuretable.SimpleFeaturesTableModel
    • setCellRenderers

      public void setCellRenderers(JTable table, Map<String,TableCellRenderer> renderers)
      Specified by:
      setCellRenderers in interface org.gvsig.fmap.dal.swing.featuretable.SimpleFeaturesTableModel
    • getFeatures

      public List<org.gvsig.fmap.dal.feature.Feature> getFeatures()
      Specified by:
      getFeatures in interface org.gvsig.fmap.dal.swing.featuretable.SimpleFeaturesTableModel
    • dispose

      public void dispose()
      Specified by:
      dispose in interface org.gvsig.tools.dispose.Disposable
    • getRowCount

      public int getRowCount()
      Specified by:
      getRowCount in interface TableModel
    • hasErrors

      public boolean hasErrors()
      Specified by:
      hasErrors in interface org.gvsig.fmap.dal.swing.featuretable.SimpleFeaturesTableModel
    • getColumnCount

      public int getColumnCount()
      Specified by:
      getColumnCount in interface TableModel
    • getColumnName

      public String getColumnName(int columnIndex)
      Specified by:
      getColumnName in interface TableModel
      Overrides:
      getColumnName in class AbstractTableModel
    • getColumnClass

      public Class<?> getColumnClass(int columnIndex)
      Specified by:
      getColumnClass in interface TableModel
      Overrides:
      getColumnClass in class AbstractTableModel
    • isCellEditable

      public boolean isCellEditable(int rowIndex, int columnIndex)
      Specified by:
      isCellEditable in interface TableModel
      Overrides:
      isCellEditable in class AbstractTableModel
    • getFeatureDescriptor

      public org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor getFeatureDescriptor(int columnIndex)
      Specified by:
      getFeatureDescriptor in interface org.gvsig.fmap.dal.swing.featuretable.SimpleFeaturesTableModel
    • get

      public org.gvsig.fmap.dal.feature.Feature get(int position)
      Specified by:
      get in interface org.gvsig.tools.util.GetItem<org.gvsig.fmap.dal.feature.Feature>
    • getFeatureAt

      public org.gvsig.fmap.dal.feature.Feature getFeatureAt(int rowIndex)
      Specified by:
      getFeatureAt in interface org.gvsig.fmap.dal.swing.featuretable.SimpleFeaturesTableModel
    • getValueAt

      public Object getValueAt(int rowIndex, int columnIndex)
      Specified by:
      getValueAt in interface TableModel
    • getValueAt

      public Object getValueAt(org.gvsig.fmap.dal.feature.Feature feature, int columnIndex)
      Specified by:
      getValueAt in interface org.gvsig.fmap.dal.swing.featuretable.SimpleFeaturesTableModel
    • setValueAt

      public void setValueAt(Object aValue, int rowIndex, int columnIndex)
      Specified by:
      setValueAt in interface TableModel
      Overrides:
      setValueAt in class AbstractTableModel
    • toList

      public List<org.gvsig.fmap.dal.feature.Feature> toList()
      Specified by:
      toList in interface org.gvsig.tools.util.UnmodifiableBasicList<org.gvsig.fmap.dal.feature.Feature>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.gvsig.tools.util.IsEmpty
    • size

      public int size()
      Specified by:
      size in interface org.gvsig.tools.util.Size
    • iterator

      public Iterator<org.gvsig.fmap.dal.feature.Feature> iterator()
      Specified by:
      iterator in interface Iterable<org.gvsig.fmap.dal.feature.Feature>
    • selfRegister

      public static void selfRegister()
    • getFeaturesFilter

      public org.gvsig.expressionevaluator.Expression getFeaturesFilter(int[] rows)
      Specified by:
      getFeaturesFilter in interface org.gvsig.fmap.dal.swing.featuretable.SimpleFeaturesTableModel