Class ChoiceModelBehavior<T>
- java.lang.Object
-
- org.apache.wicket.behavior.Behavior
-
- org.apache.wicket.behavior.AbstractAjaxBehavior
-
- com.googlecode.wicket.jquery.core.behavior.AjaxCallbackBehavior
-
- com.googlecode.wicket.jquery.core.behavior.ChoiceModelBehavior<T>
-
- Type Parameters:
T- the model object type
- All Implemented Interfaces:
IChoiceProvider<T>,Serializable,IComponentAwareEventSink,IRequestListener,IComponentAwareHeaderContributor,IClusterable
public abstract class ChoiceModelBehavior<T> extends AjaxCallbackBehavior implements IChoiceProvider<T>
Provides the choiceAjaxCallbackBehavior- Author:
- Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringFILTER_VALUEurl param for server-side filteringprotected ITextRenderer<? super T>rendererprotected IJQueryTemplatetemplate
-
Constructor Summary
Constructors Modifier Constructor Description protectedChoiceModelBehavior(ITextRenderer<? super T> renderer)ConstructorprotectedChoiceModelBehavior(ITextRenderer<? super T> renderer, IJQueryTemplate template)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<String>getProperties()Gets the property list that should be appended to the JSON response.
The value corresponding to the property is retrieved from theITextRenderer.getText(Object, String)protected StringgetResponse(IRequestParameters parameters)Gets the response text-
Methods inherited from class com.googlecode.wicket.jquery.core.behavior.AjaxCallbackBehavior
onRequest, rendersPage
-
Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior
afterRender, bind, getCallbackUrl, getComponent, onBind, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind
-
Methods inherited from class org.apache.wicket.behavior.Behavior
beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTag, renderHead
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.googlecode.wicket.jquery.core.data.IChoiceProvider
getChoices
-
-
-
-
Field Detail
-
FILTER_VALUE
protected static final String FILTER_VALUE
url param for server-side filtering- See Also:
- Constant Field Values
-
renderer
protected final ITextRenderer<? super T> renderer
-
template
protected final IJQueryTemplate template
-
-
Constructor Detail
-
ChoiceModelBehavior
protected ChoiceModelBehavior(ITextRenderer<? super T> renderer)
Constructor- Parameters:
renderer- theITextRenderer
-
ChoiceModelBehavior
protected ChoiceModelBehavior(ITextRenderer<? super T> renderer, IJQueryTemplate template)
Constructor- Parameters:
renderer- theITextRenderertemplate- theIJQueryTemplate
-
-
Method Detail
-
getProperties
protected List<String> getProperties()
Gets the property list that should be appended to the JSON response.
The value corresponding to the property is retrieved from theITextRenderer.getText(Object, String)- Returns:
- the property list
-
getResponse
protected String getResponse(IRequestParameters parameters)
Description copied from class:AjaxCallbackBehaviorGets the response text- Specified by:
getResponsein classAjaxCallbackBehavior- Parameters:
parameters- theIRequestParameters- Returns:
- the response text
-
-