Class ConditionsTableModel

java.lang.Object
javax.swing.table.AbstractTableModel
javax.swing.table.DefaultTableModel
edu.tufts.hrilab.action.gui.tablemodels.ConditionsTableModel
All Implemented Interfaces:
Serializable, TableModel

public class ConditionsTableModel extends DefaultTableModel
Model for the JTable containing conditions. Provides various helper methods and takes care of handling the actual java types.
See Also:
  • Constructor Details

    • ConditionsTableModel

      public ConditionsTableModel(ActionDBEntry dbe)
      Initializes the table with the above defined column names.
  • Method Details

    • setConditions

      public void setConditions(ActionDBEntry dbe)
      Sets the conditions of a DBEntry in the table.
      Parameters:
      dbe - DBEntry
    • exportConditions

      public boolean exportConditions(ActionDBEntry.Builder adbeb)
      Export the current conditions to an ActionDBEntry Builder object.
      Parameters:
      adbeb - builder
      Returns:
      true if success
    • getColumnClass

      public Class getColumnClass(int c)
      JTable uses this method to determine the default renderer/ editor for each cell.
      Specified by:
      getColumnClass in interface TableModel
      Overrides:
      getColumnClass in class AbstractTableModel
      Parameters:
      c - the column being queried
      Returns:
      the class represented in the column