T
- list item reference type.public static class ListViewPanel.Builder<T extends Serializable> extends WizardMgtPanel.Builder<T>
pageRef
Constructor and Description |
---|
Builder(Class<T> reference,
PageReference pageRef) |
addNewItemPanelBuilder, addNewItemPanelBuilder, addNotificationPanel, build, setShowResultPage, setWizardInModal
public Builder(Class<T> reference, PageReference pageRef)
public ListViewPanel.Builder<T> setModel(IModel<? extends Collection<T>> model)
public ListViewPanel.Builder<T> setItems(List<T> items)
items
- list of items.public ListViewPanel.Builder<T> addItem(T item)
item
- item.public ListViewPanel.Builder<T> withChecks(ListViewPanel.CheckAvailability check)
public ListViewPanel.Builder<T> setReuseItem(boolean reuseItem)
public ListViewPanel.Builder<T> setCaptionVisible(boolean captionVisible)
public ListViewPanel.Builder<T> includes(String... includes)
includes
- field names to be shown.public ListViewPanel.Builder<T> addAction(ActionLink<T> link, ActionLink.ActionType type, String entitlements)
link
- action link.type
- action type.entitlements
- entitlements.public ListViewPanel.Builder<T> addAction(ActionLink<T> link, ActionLink.ActionType type, String entitlements, boolean onConfirm)
link
- action link.type
- action type.entitlements
- entitlements.onConfirm
- specify TRUE to ask for confirmation.protected Component getValueComponent(String key, T bean)
key
- field key.bean
- source bean.protected WizardMgtPanel<T> newInstance(String id, boolean wizardInModal)
newInstance
in class WizardMgtPanel.Builder<T extends Serializable>
protected ActionLinksTogglePanel<T> getTogglePanel()
protected void customActionCallback(AjaxRequestTarget target)
protected void customActionOnCancelCallback(AjaxRequestTarget target)
protected void customActionOnFinishCallback(AjaxRequestTarget target)
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.