Class ListViewPanel.Builder<T extends Serializable>
- java.lang.Object
-
- org.apache.syncope.client.console.wizards.WizardMgtPanel.Builder<T>
-
- org.apache.syncope.client.console.panels.ListViewPanel.Builder<T>
-
- Type Parameters:
T
- list item reference type.
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ListViewPanel<T extends Serializable>
public static class ListViewPanel.Builder<T extends Serializable> extends WizardMgtPanel.Builder<T>
ListViewPanel builder.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.syncope.client.console.wizards.WizardMgtPanel.Builder
pageRef
-
-
Constructor Summary
Constructors Constructor Description Builder(Class<T> reference, PageReference pageRef)
-
Method Summary
-
Methods inherited from class org.apache.syncope.client.console.wizards.WizardMgtPanel.Builder
addNewItemPanelBuilder, addNewItemPanelBuilder, addNotificationPanel, build, setShowResultPage, setWizardInModal
-
-
-
-
Constructor Detail
-
Builder
public Builder(Class<T> reference, PageReference pageRef)
-
-
Method Detail
-
setModel
public ListViewPanel.Builder<T> setModel(IModel<? extends Collection<T>> model)
-
setItems
public ListViewPanel.Builder<T> setItems(List<T> items)
Sets list of items.- Parameters:
items
- list of items.- Returns:
- current builder object.
-
addItem
public ListViewPanel.Builder<T> addItem(T item)
Adds item.- Parameters:
item
- item.- Returns:
- current builder object.
-
withChecks
public ListViewPanel.Builder<T> withChecks(ListViewPanel.CheckAvailability check)
-
setReuseItem
public ListViewPanel.Builder<T> setReuseItem(boolean reuseItem)
-
setCaptionVisible
public ListViewPanel.Builder<T> setCaptionVisible(boolean captionVisible)
-
includes
public ListViewPanel.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.
-
addAction
public ListViewPanel.Builder<T> addAction(ActionLink<T> link, ActionLink.ActionType type, String entitlements)
Add item action (the given order is ignored.- Parameters:
link
- action link.type
- action type.entitlements
- entitlements.- Returns:
- current builder object.
-
addAction
public ListViewPanel.Builder<T> addAction(ActionLink<T> link, ActionLink.ActionType type, String entitlements, boolean onConfirm)
Add item action (the given order is ignored.- Parameters:
link
- action link.type
- action type.entitlements
- entitlements.onConfirm
- specify TRUE to ask for confirmation.- 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.
-
newInstance
protected WizardMgtPanel<T> newInstance(String id, boolean wizardInModal)
- Specified by:
newInstance
in classWizardMgtPanel.Builder<T extends Serializable>
-
getTogglePanel
protected ActionLinksTogglePanel<T> getTogglePanel()
-
customActionCallback
protected void customActionCallback(AjaxRequestTarget target)
-
customActionOnCancelCallback
protected void customActionOnCancelCallback(AjaxRequestTarget target)
-
customActionOnFinishCallback
protected void customActionOnFinishCallback(AjaxRequestTarget target)
-
-