Class SelectEmailAddressPanel.TableModel

    • Constructor Detail

      • TableModel

        public TableModel()
        the constructor.
      • TableModel

        public TableModel​(List<EmailContact> contacts)
        the constructor.
        Parameters:
        contacts - the contacts to display
      • TableModel

        public TableModel​(EmailContact[] contacts)
        the constructor.
        Parameters:
        contacts - the contacts to display
    • Method Detail

      • getColumnCount

        public int getColumnCount()
        Returns the number of columns in the table, i.e., 6.
        Returns:
        the number of columns, always 6
      • getColumnClass

        public Class getColumnClass​(int columnIndex)
        Returns the class type of the column.
        Specified by:
        getColumnClass in interface TableModel
        Overrides:
        getColumnClass in class AbstractTableModel
        Parameters:
        columnIndex - the column to get the class for
        Returns:
        the class for the column
      • getValueAt

        public Object getValueAt​(int row,
                                 int column)
        Returns the substance value at the given position.
        Parameters:
        row - the row
        column - the column (ignored, since only 1 column)
        Returns:
        the value
      • isSearchMatch

        public boolean isSearchMatch​(SearchParameters params,
                                     int row)
        Tests whether the search matches the specified row.
        Parameters:
        params - the search parameters
        row - the row of the underlying, unsorted model
        Returns:
        true if the search matches this row
      • getRowCount

        public int getRowCount()
        Returns the number of contacts.
        Returns:
        the number of contacts/rows