org.wicketstuff.datatable_autocomplete.behaviour
Class AutoCompletingBehavior
java.lang.Object
org.apache.wicket.behavior.Behavior
org.apache.wicket.behavior.AbstractAjaxBehavior
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
org.apache.wicket.ajax.AjaxEventBehavior
org.wicketstuff.datatable_autocomplete.panel.AJAXAutoCompleteBehavior
org.wicketstuff.datatable_autocomplete.behaviour.AutoCompletingBehavior
- All Implemented Interfaces:
- Serializable, IBehaviorListener, IClusterable, IComponentAwareEventSink, IRequestListener, IComponentAwareHeaderContributor
public class AutoCompletingBehavior
- extends AJAXAutoCompleteBehavior
- Author:
- mocleiri
- See Also:
- Serialized Form
|
Method Summary |
protected void |
addAdditionalJavaScript(List<String> eventScripts)
Allows subclasses to adjust the ordering of the scripts and to add in additional scripts. |
AutoCompletingBehavior
public AutoCompletingBehavior(HiddenField<?> selectedContextField,
TextField<String> textComponent,
AutoCompletingPanel<?> referenceAutoCompletingPanel,
long milisecondDurationBetweenRequests)
- A special behaviour to generate a GET request for changes to the textComponent provided.
- Parameters:
selectedContextField - the field where the id value of the selected row is placedtextComponent - the component whose value is updated on the request (this behavoir should be added
to textComponent).referenceAutoCompletingPanel - the completing panel that needs to be updated when the textfield value changes.milisecondDurationBetweenRequests - the number of mmiliseconds that must elapse before a subsequent get request will
be sent from the client.
AutoCompletingBehavior
public AutoCompletingBehavior(TextField<String> textComponent,
AutoCompletingPanel<?> referenceAutoCompletingPanel,
long milisecondDurationBetweenRequests)
addAdditionalJavaScript
protected void addAdditionalJavaScript(List<String> eventScripts)
- Description copied from class:
AJAXAutoCompleteBehavior
- Allows subclasses to adjust the ordering of the scripts and to add in additional scripts.
- Overrides:
addAdditionalJavaScript in class AJAXAutoCompleteBehavior
Copyright © 2009-2013. All Rights Reserved.