Class DataStoreTableCellListener

    • Constructor Detail

      • DataStoreTableCellListener

        public DataStoreTableCellListener​(JTable table,
                                          Action action)
        Create a TableCellListener.
        Parameters:
        table - the table to be monitored for data changes
        action - the Action to invoke when cell data is changed
    • Method Detail

      • getColumn

        public int getColumn()
        Get the column that was last edited
        Returns:
        the column that was edited
      • getNewValue

        public Object getNewValue()
        Get the new value in the cell
        Returns:
        the new value in the cell
      • getOldValue

        public Object getOldValue()
        Get the old value of the cell
        Returns:
        the old value of the cell
      • getRow

        public int getRow()
        Get the row that was last edited
        Returns:
        the row that was edited
      • getTable

        public JTable getTable()
        Get the table of the cell that was changed
        Returns:
        the table of the cell that was changed
      • run

        public void run()
        Specified by:
        run in interface Runnable