Class SimpleListViewPanel.Builder<T extends Serializable>

java.lang.Object
org.apache.syncope.client.ui.commons.panels.SimpleListViewPanel.Builder<T>
Type Parameters:
T - list item reference type.
All Implemented Interfaces:
Serializable
Enclosing class:
SimpleListViewPanel<T extends Serializable>

public static class SimpleListViewPanel.Builder<T extends Serializable> extends Object implements Serializable
SimpleListViewPanel builder.
See Also:
  • Constructor Details

  • Method Details

    • setItems

      public SimpleListViewPanel.Builder<T> setItems(List<T> items)
      Sets list of items.
      Parameters:
      items - list of items.
      Returns:
      current builder object.
    • addItem

      public SimpleListViewPanel.Builder<T> addItem(T item)
      Adds item.
      Parameters:
      item - item.
      Returns:
      current builder object.
    • includes

      public SimpleListViewPanel.Builder<T> includes(String... includes)
      Gives fields to be shown. It could be used to give an order as well.
      Parameters:
      includes - field names to be shown.
      Returns:
      current builder object.
    • getValueComponent

      protected Component getValueComponent(String key, T bean)
      Overridable method to generate field value rendering component.
      Parameters:
      key - field key.
      bean - source bean.
      Returns:
      field rendering component.
    • getActualItem

      protected T getActualItem(T item, List<T> list)
    • build

      public SimpleListViewPanel<T> build(String id)