org.apache.wicket.extensions.markup.html.repeater.data.table.filter
Class ChoiceFilter<T>
java.lang.Object
org.apache.wicket.Component
org.apache.wicket.MarkupContainer
org.apache.wicket.markup.html.WebMarkupContainer
org.apache.wicket.markup.html.panel.Panel
org.apache.wicket.extensions.markup.html.repeater.data.table.filter.AbstractFilter
org.apache.wicket.extensions.markup.html.repeater.data.table.filter.ChoiceFilter<T>
- Type Parameters:
T
- The model object type
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Iterable<Component>, IEventSink, IEventSource, IClusterable, IConverterLocator, IHeaderContributor, IRequestableComponent, IHierarchical<Component>
public class ChoiceFilter<T>
- extends AbstractFilter
Filter that can be represented by a drop down list of choices
- Author:
- Igor Vaynberg (ivaynberg)
- See Also:
DropDownChoice
,
Serialized Form
Fields inherited from class org.apache.wicket.markup.html.panel.Panel |
PANEL |
Fields inherited from class org.apache.wicket.Component |
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER |
Constructor Summary |
ChoiceFilter(java.lang.String id,
IModel<T> model,
FilterForm<?> form,
IModel<java.util.List<? extends T>> choices,
boolean autoSubmit)
|
ChoiceFilter(java.lang.String id,
IModel<T> model,
FilterForm<?> form,
IModel<java.util.List<? extends T>> choices,
IChoiceRenderer<T> renderer,
boolean autoSubmit)
|
ChoiceFilter(java.lang.String id,
IModel<T> model,
FilterForm<?> form,
java.util.List<? extends T> choices,
boolean autoSubmit)
|
ChoiceFilter(java.lang.String id,
IModel<T> model,
FilterForm<?> form,
java.util.List<? extends T> choices,
IChoiceRenderer<T> renderer,
boolean autoSubmit)
|
Methods inherited from class org.apache.wicket.MarkupContainer |
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, hasAssociatedMarkup, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onMarkupAttached, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren |
Methods inherited from class org.apache.wicket.Component |
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onDetach, onEvent, onInitialize, onModelChanged, onModelChanging, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn, wrap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ChoiceFilter
public ChoiceFilter(java.lang.String id,
IModel<T> model,
FilterForm<?> form,
IModel<java.util.List<? extends T>> choices,
boolean autoSubmit)
- Parameters:
id
- model
- form
- choices
- autoSubmit
-
ChoiceFilter
public ChoiceFilter(java.lang.String id,
IModel<T> model,
FilterForm<?> form,
java.util.List<? extends T> choices,
boolean autoSubmit)
- Parameters:
id
- model
- form
- choices
- autoSubmit
-
ChoiceFilter
public ChoiceFilter(java.lang.String id,
IModel<T> model,
FilterForm<?> form,
java.util.List<? extends T> choices,
IChoiceRenderer<T> renderer,
boolean autoSubmit)
- Parameters:
id
- model
- form
- choices
- renderer
- autoSubmit
-
ChoiceFilter
public ChoiceFilter(java.lang.String id,
IModel<T> model,
FilterForm<?> form,
IModel<java.util.List<? extends T>> choices,
IChoiceRenderer<T> renderer,
boolean autoSubmit)
- Parameters:
id
- component idmodel
- model for the drop down choice componentform
- filter form this component will be attached tochoices
- list of choices, see DropDownChoice
renderer
- choice renderer, see DropDownChoice
autoSubmit
- if true this filter will submit the form on selection change- See Also:
DropDownChoice
newDropDownChoice
protected DropDownChoice<T> newDropDownChoice(java.lang.String id,
IModel<T> model,
IModel<java.util.List<? extends T>> choices,
IChoiceRenderer<T> renderer)
- Factory method for the drop down choice component
- Parameters:
id
- component idmodel
- component modelchoices
- choices modelrenderer
- choice renderer
- Returns:
- created drop down component
getChoice
public DropDownChoice<T> getChoice()
- Returns:
- the DropDownChoice form component created to represent this filter
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.