public static class AjaxPalettePanel.Builder<T extends Serializable> extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
AjaxPalettePanel.Builder.Query<T extends Serializable> |
Modifier and Type | Field and Description |
---|---|
protected Function<Object,Map<String,String>> |
additionalAttributes |
protected boolean |
allowMoveAll |
protected boolean |
allowOrder |
protected String |
availableLabel |
protected String |
filter |
protected boolean |
filtered |
protected Function<String,Stream<String>> |
idExtractor |
protected String |
name |
protected IChoiceRenderer<T> |
renderer |
protected String |
selectedLabel |
protected boolean |
warnIfEmptyFilter |
Constructor and Description |
---|
Builder() |
protected String name
protected IChoiceRenderer<T extends Serializable> renderer
protected boolean allowOrder
protected boolean allowMoveAll
protected String selectedLabel
protected String availableLabel
protected boolean filtered
protected String filter
protected boolean warnIfEmptyFilter
public AjaxPalettePanel.Builder<T> setName(String name)
public AjaxPalettePanel.Builder<T> setAllowOrder(boolean allowOrder)
public AjaxPalettePanel.Builder<T> setAllowMoveAll(boolean allowMoveAll)
public AjaxPalettePanel.Builder<T> setSelectedLabel(String selectedLabel)
public AjaxPalettePanel.Builder<T> setAvailableLabel(String availableLabel)
public AjaxPalettePanel.Builder<T> setRenderer(IChoiceRenderer<T> renderer)
public AjaxPalettePanel.Builder<T> withFilter()
public AjaxPalettePanel.Builder<T> withFilter(String defaultFilter)
public AjaxPalettePanel.Builder<T> warnIfEmptyFilter(boolean warnIfEmptyFilter)
public AjaxPalettePanel.Builder<T> idExtractor(Function<String,Stream<String>> idExtractor)
public AjaxPalettePanel.Builder<T> additionalAttributes(Function<Object,Map<String,String>> additionalAttributes)
public AjaxPalettePanel<T> build(String id, IModel<List<T>> model, AjaxPalettePanel.Builder.Query<T> choices)
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.