Class SensorTableModel

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

    public class SensorTableModel
    extends BeanTableModel
    implements java.beans.PropertyChangeListener
    Model for a simple Sensor JTable.

    Note that this has a very expensive way of handling changes to the contents of the SensorManager: it recreates an entire local array instead of using the Manager's accessors.

    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()  
      SensorManager getManager()  
      int getRowCount()  
      java.lang.Object getValueAt​(int r, int c)
      User name column must be handled by subclass.
      void propertyChange​(java.beans.PropertyChangeEvent e)  
      void setValueAt​(java.lang.Object type, int r, int c)  
      • 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

      • getValueAt

        public java.lang.Object getValueAt​(int r,
                                           int c)
        Description copied from class: BeanTableModel
        User name column must be handled by subclass.
        Specified by:
        getValueAt in interface javax.swing.table.TableModel
        Overrides:
        getValueAt in class BeanTableModel
      • setValueAt

        public void setValueAt​(java.lang.Object type,
                               int r,
                               int c)
        Specified by:
        setValueAt in interface javax.swing.table.TableModel
        Overrides:
        setValueAt in class javax.swing.table.AbstractTableModel
      • propertyChange

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