Class KeyValueFilteredTableModel<T>

All Implemented Interfaces:
Serializable, TableModel

public class KeyValueFilteredTableModel<T> extends KeyValueTableModel<T>
Key Value Table Model with built in support for filtering through a text input document
See Also:
  • Constructor Details

    • KeyValueFilteredTableModel

      public KeyValueFilteredTableModel(List<T> records, String... keyPaths)
      Primary Constructor
      Parameters:
      records - the list of objects (one record for each table row)
      keyPaths - specifies the array of key paths to get the data to display (one key path for each column)
    • KeyValueFilteredTableModel

      public KeyValueFilteredTableModel()
      Empty Constructor
  • Method Details

    • setValueAt

      public void setValueAt(Object value, int row, int column)
      Set the value of the specified cell
      Specified by:
      setValueAt in interface TableModel
      Overrides:
      setValueAt in class KeyValueTableModel<T>
    • setInputFilterDocument

      public void setInputFilterDocument(Document document)
      set the specified text input document as the text source for filtering table records
    • setInputFilterComponent

      public void setInputFilterComponent(JTextComponent component)
      set the specified text component as the text source for filtering table records
    • setMatchingKeyPaths

      public void setMatchingKeyPaths(String... keyPaths)
      set the key paths to use for matching
    • setRecords

      public void setRecords(List<T> records)
      Overrides the inherited method to set all of the records (before filtering)
      Overrides:
      setRecords in class KeyValueTableModel<T>
      Parameters:
      records - the list of objects