Interface ColumnProvider


@ConsumerType public interface ColumnProvider
The handler of a column. Responsible for - providing the definition of a Column - providing the value of the column for a given InboxItem
  • Method Summary

    Modifier and Type
    Method
    Description
    The column handled by this handler
    default Object
    getValue(InboxItem inboxItem)
    The underlying value of the column for the given Inbox Item.
  • Method Details

    • getColumn

      @Nonnull Column getColumn()
      The column handled by this handler
      Returns:
      Column definition
    • getValue

      default Object getValue(InboxItem inboxItem)
      The underlying value of the column for the given Inbox Item. Used for sorting the items by current column. If template path and template name aren't provide in Column definition, this value is also used to render the cell content of the column (by html encoding the provided 'value') The type of returned value must match the type provided from Column.getType().
      Parameters:
      inboxItem - the InboxItem
      Returns:
      Underlying value of column for inbox item