Class CvTableModel

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, javax.swing.table.TableModel

    public class CvTableModel
    extends javax.swing.table.AbstractTableModel
    implements java.awt.event.ActionListener, java.beans.PropertyChangeListener
    Table data model for display of CvValues in symbolic programmer.

    This represents the contents of a single decoder, so the Programmer used to access it is a data member.

    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static int MAXCVNUM  
      static int NUMCOLUMN  
      • Fields inherited from class javax.swing.table.AbstractTableModel

        listenerList
    • Constructor Summary

      Constructors 
      Constructor Description
      CvTableModel​(javax.swing.JLabel status, Programmer pProgrammer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent e)  
      void addCV​(java.lang.String s, boolean readOnly, boolean infoOnly, boolean writeOnly)  
      java.util.HashMap<java.lang.String,​CvValue> allCvMap()  
      boolean decoderDirty()  
      void dispose()  
      java.lang.Class<?> getColumnClass​(int col)  
      int getColumnCount()  
      java.lang.String getColumnName​(int col)  
      CvValue getCvByNumber​(java.lang.String number)  
      CvValue getCvByRow​(int row)  
      java.lang.String getName​(int row)  
      Programmer getProgrammer()
      Gives access to the programmer used to reach these CVs, so you can check on mode, capabilities, etc.
      int getRowCount()  
      javax.swing.JLabel getStatusLabel()  
      java.lang.String getValString​(int row)  
      java.lang.Object getValueAt​(int row, int col)  
      (package private) int holdsAddress()  
      (package private) boolean holdsLongAddress()  
      boolean isCellEditable​(int row, int col)  
      void propertyChange​(java.beans.PropertyChangeEvent e)  
      void setProgrammer​(Programmer p)  
      void setValueAt​(java.lang.Object value, int row, int col)  
      • Methods inherited from class javax.swing.table.AbstractTableModel

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

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

      • allCvMap

        public java.util.HashMap<java.lang.String,​CvValueallCvMap()
      • getProgrammer

        public Programmer getProgrammer()
        Gives access to the programmer used to reach these CVs, so you can check on mode, capabilities, etc.
        Returns:
        Programmer object for the CVs
      • getRowCount

        public int getRowCount()
        Specified by:
        getRowCount in interface javax.swing.table.TableModel
      • getColumnCount

        public int getColumnCount()
        Specified by:
        getColumnCount in interface javax.swing.table.TableModel
      • getColumnName

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

        public java.lang.Class<?> getColumnClass​(int col)
        Specified by:
        getColumnClass in interface javax.swing.table.TableModel
        Overrides:
        getColumnClass in class javax.swing.table.AbstractTableModel
      • isCellEditable

        public boolean isCellEditable​(int row,
                                      int col)
        Specified by:
        isCellEditable in interface javax.swing.table.TableModel
        Overrides:
        isCellEditable in class javax.swing.table.AbstractTableModel
      • getName

        public java.lang.String getName​(int row)
      • getValString

        public java.lang.String getValString​(int row)
      • getValueAt

        public java.lang.Object getValueAt​(int row,
                                           int col)
        Specified by:
        getValueAt in interface javax.swing.table.TableModel
      • setValueAt

        public void setValueAt​(java.lang.Object value,
                               int row,
                               int col)
        Specified by:
        setValueAt in interface javax.swing.table.TableModel
        Overrides:
        setValueAt in class javax.swing.table.AbstractTableModel
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
      • propertyChange

        public void propertyChange​(java.beans.PropertyChangeEvent e)
        Specified by:
        propertyChange in interface java.beans.PropertyChangeListener
      • addCV

        public void addCV​(java.lang.String s,
                          boolean readOnly,
                          boolean infoOnly,
                          boolean writeOnly)