Interface Column<T>

Type Parameters:
T - Domain Object
All Superinterfaces:
Function<T,Object>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Column<T> extends Function<T,Object>
Table column value writer
Author:
Pavel Ponec
  • Method Summary

    Modifier and Type
    Method
    Description
    default Object
    apply(T t)
    The method can be implemented for sortable columns
    void
    write(@NotNull Element parent, T value)
    Write a custom content of the table cell

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Method Details

    • apply

      default Object apply(@NotNull T t)
      The method can be implemented for sortable columns
      Specified by:
      apply in interface Function<T,Object>
      Parameters:
      t - A domaim objject
      Returns:
      Returns a constatn "?", for a Sortable columns must return a serializable object.
    • write

      void write(@NotNull @NotNull Element parent, T value)
      Write a custom content of the table cell
      Parameters:
      parent - An element of the table detail.
      value - Value to write.