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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Builder(Class<T> reference, PageReference pageRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleListViewPanel.Builder<T>
addItem(T item)
Adds item.SimpleListViewPanel<T>
build(String id)
protected T
getActualItem(T item, List<T> list)
protected Component
getValueComponent(String key, T bean)
Overridable method to generate field value rendering component.SimpleListViewPanel.Builder<T>
includes(String... includes)
Gives fields to be shown.SimpleListViewPanel.Builder<T>
setItems(List<T> items)
Sets list of items.
-
-
-
Constructor Detail
-
Builder
public Builder(Class<T> reference, PageReference pageRef)
-
-
Method Detail
-
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.
-
build
public SimpleListViewPanel<T> build(String id)
-
-