Interface FilteredTableModel.ColumnValueProvider<R,​C>

  • Type Parameters:
    R - the row type
    C - the column identifier type
    Enclosing interface:
    FilteredTableModel<R,​C>

    public static interface FilteredTableModel.ColumnValueProvider<R,​C>
    Provides the column value for a row and column
    • Field Detail

      • TO_STRING_COMPARATOR

        static final Comparator<?> TO_STRING_COMPARATOR
        A Comparator for comparing Objects according to their toString() value.
    • Method Detail

      • columnClass

        Class<?> columnClass​(C columnIdentifier)
        Returns the class of the column with the given identifier
        Parameters:
        columnIdentifier - the column identifier
        Returns:
        the Class representing the given column
      • comparator

        default Comparator<?> comparator​(C columnIdentifier)
        Returns the comparator to use when sorting by the give column, the comparator receives the column values, but never null.
        Parameters:
        columnIdentifier - the column identifier
        Returns:
        the comparator to use when sorting by the given column
      • value

        Object value​(R row,
                     C columnIdentifier)
        Returns a value for the given row and columnIdentifier
        Parameters:
        row - the object representing a given row
        columnIdentifier - the column identifier
        Returns:
        a value for the given row and column
      • string

        default String string​(R row,
                              C columnIdentifier)
        Returns a String representation of the value for the given row and columnIdentifier
        Parameters:
        row - the row
        columnIdentifier - the column identifier
        Returns:
        a String representation of the value for the given row and column