org.wicketstuff.datatable_autocomplete.behaviour
Class AutoCompletingBehavior

java.lang.Object
  extended by org.apache.wicket.behavior.Behavior
      extended by org.apache.wicket.behavior.AbstractAjaxBehavior
          extended by org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
              extended by org.apache.wicket.ajax.AjaxEventBehavior
                  extended by org.wicketstuff.datatable_autocomplete.panel.AJAXAutoCompleteBehavior
                      extended by 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

Field Summary
 
Fields inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
INDICATOR
 
Fields inherited from interface org.apache.wicket.behavior.IBehaviorListener
INTERFACE
 
Constructor Summary
AutoCompletingBehavior(HiddenField<?> selectedContextField, TextField<String> textComponent, AutoCompletingPanel<?> referenceAutoCompletingPanel, long milisecondDurationBetweenRequests)
          A special behaviour to generate a GET request for changes to the textComponent provided.
AutoCompletingBehavior(TextField<String> textComponent, AutoCompletingPanel<?> referenceAutoCompletingPanel, long milisecondDurationBetweenRequests)
           
 
Method Summary
protected  void addAdditionalJavaScript(List<String> eventScripts)
          Allows subclasses to adjust the ordering of the scripts and to add in additional scripts.
 
Methods inherited from class org.wicketstuff.datatable_autocomplete.panel.AJAXAutoCompleteBehavior
getCallbackScript, getFailureScript, getSuccessScript, onComponentTag, onEvent, setDependencyProcessor
 
Methods inherited from class org.apache.wicket.ajax.AjaxEventBehavior
generateCallbackScript, getEvent, getEventHandler, onCheckEvent, respond, setThrottleDelay, toString
 
Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
findIndicatorId, getAjaxCallDecorator, getChannel, getChannelName, getPreconditionScript, onBind, onRequest, renderHead, throttleScript
 
Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior
afterRender, bind, getCallbackUrl, getComponent, getStatelessHint, onComponentRendered, onComponentTag, onUnbind, unbind
 
Methods inherited from class org.apache.wicket.behavior.Behavior
beforeRender, canCallListenerInterface, canCallListenerInterface, detach, isEnabled, isTemporary, onConfigure, onEvent, onException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 placed
textComponent - 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)
Method Detail

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.