T
- The model object typeY
- The column model object typeS
- the type of the sort propertypublic class ChoiceFilteredPropertyColumn<T,Y,S> extends FilteredPropertyColumn<T,S>
Constructor and Description |
---|
ChoiceFilteredPropertyColumn(IModel<String> displayModel,
S sortProperty,
String propertyExpression,
IModel<? extends List<? extends Y>> filterChoices) |
ChoiceFilteredPropertyColumn(IModel<String> displayModel,
String propertyExpression,
IModel<? extends List<? extends Y>> filterChoices) |
Modifier and Type | Method and Description |
---|---|
void |
detach()
Detaches model after use.
|
protected boolean |
enableAutoSubmit()
Returns true if the constructed choice filter should autosubmit the form when its value is
changed.
|
protected IChoiceRenderer<Y> |
getChoiceRenderer()
Returns choice renderer that will be used to create the choice filter
|
Component |
getFilter(String componentId,
FilterForm<?> form)
Returns the component used by user to filter the column.
|
protected IModel<? extends List<? extends Y>> |
getFilterChoices() |
protected IModel<Y> |
getFilterModel(FilterForm<?> form)
Returns the model that will be passed on to the text filter.
|
getDataModel, getPropertyExpression, populateItem
getCssClass, getDisplayModel, getHeader, getSortProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHeader, getHeaderColspan, getHeaderRowspan, getSortProperty, isSortable
populateItem
getDisplayModel
public ChoiceFilteredPropertyColumn(IModel<String> displayModel, S sortProperty, String propertyExpression, IModel<? extends List<? extends Y>> filterChoices)
displayModel
- sortProperty
- propertyExpression
- filterChoices
- collection choices used in the choice filterpublic void detach()
IDetachable
detach
in interface IDetachable
detach
in class AbstractColumn<T,S>
IDetachable.detach()
public Component getFilter(String componentId, FilterForm<?> form)
IFilteredColumn
componentId
- component id for returned filter componentform
- FilterForm object for the toolbar. components can use this form's model to access
properties of the state object (
PropertyModel(form.getModel(), "property"
) or retrieve the
IFilterStateLocator
object by using FilterForm.getStateLocator()
IFilteredColumn.getFilter(java.lang.String,
org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilterForm)
protected IModel<Y> getFilterModel(FilterForm<?> form)
form
- filter formprotected boolean enableAutoSubmit()
protected IChoiceRenderer<Y> getChoiceRenderer()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.