Interface FilterTableModel.Columns<R,C>

Type Parameters:
R - the row type
C - the column identifier type
All Known Implementing Classes:
ClientMonitor.RemoteClientColumns, ClientUserMonitor.UserHistoryColumns, DomainGeneratorModel.EntityColumns, DomainGeneratorModel.SchemaColumns, ServerMonitor.DomainColumns, ServerMonitor.OperationColumns, ServerMonitor.ReportColumns
Enclosing interface:
FilterTableModel<R,C>

public static interface FilterTableModel.Columns<R,C>
Specifies the columns for a table model
  • Method Summary

    Modifier and Type
    Method
    Description
    columnClass(C identifier)
     
    default <T> Comparable<T>
    comparable(R row, C identifier)
    Returns a Comparable instance for the given row and column.
    Null is returned if the underlying column value is not a Comparable instance.
    default Comparator<?>
    comparator(C identifier)
    Returns the comparator to use when comparing the values of the given column
    default C
    identifier(int index)
     
     
    default String
    string(R row, C identifier)
    Returns a String representation of the value for the given row and column, an empty String in case of null.
    value(R row, C identifier)
    Returns a value for the given row and identifier
  • Method Details

    • identifiers

      List<C> identifiers()
      Returns:
      the column identifiers
    • columnClass

      Class<?> columnClass(C identifier)
      Parameters:
      identifier - the column identifier
      Returns:
      the column class for the given column
    • value

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

      default C identifier(int index)
      Parameters:
      index - the identifier index
      Returns:
      the identifier at the given index
    • string

      default String string(R row, C identifier)
      Returns a String representation of the value for the given row and column, an empty String in case of null.
      Parameters:
      row - the row
      identifier - the column identifier
      Returns:
      a String representation of the value for the given row and column, an empty String in case of null
    • comparable

      default <T> Comparable<T> comparable(R row, C identifier)
      Returns a Comparable instance for the given row and column.
      Null is returned if the underlying column value is not a Comparable instance.
      Type Parameters:
      T - the column value type
      Parameters:
      row - the object representing a given row
      identifier - the column identifier
      Returns:
      a Comparable for the given row and column
    • comparator

      default Comparator<?> comparator(C identifier)
      Returns the comparator to use when comparing the values of the given column
      Parameters:
      identifier - the column identifier
      Returns:
      a Comparator for the given column