|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn<T>
org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn<T>
org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilteredPropertyColumn<T>
org.apache.wicket.extensions.markup.html.repeater.data.table.filter.ChoiceFilteredPropertyColumn<T,Y>
T
- The model object typeY
- The column model object typepublic class ChoiceFilteredPropertyColumn<T,Y>
A filtered property column that creates a textfield filter component. The default model of the created textfield is a property model with the same property expression as the one used to display data. This works well when the filter state object is of the same type as the objects in the data table.
Constructor Summary | |
---|---|
ChoiceFilteredPropertyColumn(IModel<String> displayModel,
String propertyExpression,
IModel<List<? extends Y>> filterChoices)
|
|
ChoiceFilteredPropertyColumn(IModel<String> displayModel,
String sortProperty,
String propertyExpression,
IModel<List<? extends Y>> filterChoices)
|
Method Summary | |
---|---|
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<List<? extends Y>> |
getFilterChoices()
|
protected IModel<Y> |
getFilterModel(FilterForm<?> form)
Returns the model that will be passed on to the text filter. |
Methods inherited from class org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn |
---|
createLabelModel, getPropertyExpression, populateItem |
Methods inherited from class org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn |
---|
getCssClass, getDisplayModel, getHeader, getSortProperty, isSortable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn |
---|
getHeader, getSortProperty, isSortable |
Methods inherited from interface org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator |
---|
populateItem |
Constructor Detail |
---|
public ChoiceFilteredPropertyColumn(IModel<String> displayModel, String sortProperty, String propertyExpression, IModel<List<? extends Y>> filterChoices)
displayModel
- sortProperty
- propertyExpression
- filterChoices
- collection choices used in the choice filterpublic ChoiceFilteredPropertyColumn(IModel<String> displayModel, String propertyExpression, IModel<List<? extends Y>> filterChoices)
displayModel
- propertyExpression
- filterChoices
- collection of choices used in the choice filterMethod Detail |
---|
public void detach()
IDetachable
detach
in interface IDetachable
detach
in class AbstractColumn<T>
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 form
protected boolean enableAutoSubmit()
protected IChoiceRenderer<Y> getChoiceRenderer()
protected final IModel<List<? extends Y>> getFilterChoices()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |