Class FeatureTableModel

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.table.TableModel

    public class FeatureTableModel
    extends javax.swing.table.AbstractTableModel
    Insert comment for enclosing_type here.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static java.lang.String[] columnHeaders
      The Constant columnHeaders.
      private static long serialVersionUID
      The Constant serialVersionUID.
      private Type type
      The type.
      • Fields inherited from class javax.swing.table.AbstractTableModel

        listenerList
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getColumnCount()
      Gets the column count.
      java.lang.String getColumnName​(int i)  
      int getRowCount()
      Gets the row count.
      java.lang.Object getValueAt​(int rowIndex, int columnIndex)
      Gets the value at.
      void setType​(Type type)
      Sets the type.
      • Methods inherited from class javax.swing.table.AbstractTableModel

        addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        The Constant serialVersionUID.
        See Also:
        Constant Field Values
      • columnHeaders

        static final java.lang.String[] columnHeaders
        The Constant columnHeaders.
      • type

        private Type type
        The type.
    • Constructor Detail

      • FeatureTableModel

        public FeatureTableModel()
        Instantiates a new feature table model.
      • FeatureTableModel

        public FeatureTableModel​(Type type)
        Constructor for FeatureTableModel.
        Parameters:
        type - the type
    • Method Detail

      • setType

        public void setType​(Type type)
        Sets the type.
        Parameters:
        type - the new type
      • getColumnName

        public java.lang.String getColumnName​(int i)
        Specified by:
        getColumnName in interface javax.swing.table.TableModel
        Overrides:
        getColumnName in class javax.swing.table.AbstractTableModel
      • getRowCount

        public int getRowCount()
        Gets the row count.
        Returns:
        the row count
        See Also:
        TableModel.getRowCount()
      • getColumnCount

        public int getColumnCount()
        Gets the column count.
        Returns:
        the column count
        See Also:
        TableModel.getColumnCount()
      • getValueAt

        public java.lang.Object getValueAt​(int rowIndex,
                                           int columnIndex)
        Gets the value at.
        Parameters:
        rowIndex - the row index
        columnIndex - the column index
        Returns:
        the value at
        See Also:
        TableModel.getValueAt(int, int)