com.googlecode.wicket.jquery.ui.form.autocomplete
Class AutoCompleteBehavior

java.lang.Object
  extended by org.apache.wicket.behavior.Behavior
      extended by com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
          extended by com.googlecode.wicket.jquery.core.JQueryBehavior
              extended by com.googlecode.wicket.jquery.ui.form.autocomplete.AutoCompleteBehavior
All Implemented Interfaces:
IJQueryAjaxAware, Serializable, org.apache.wicket.IClusterable, org.apache.wicket.IComponentAwareEventSink, org.apache.wicket.markup.html.IComponentAwareHeaderContributor

public abstract class AutoCompleteBehavior
extends JQueryBehavior
implements IJQueryAjaxAware

Provides a jQuery resizable behavior

Author:
Sebastien Briquet - sebfz1
See Also:
Serialized Form

Nested Class Summary
protected static class AutoCompleteBehavior.SelectEvent
          Provides an event object that will be broadcasted by the JQueryAjaxBehavior select callback
 
Field Summary
 
Fields inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior
method, options, selector
 
Constructor Summary
AutoCompleteBehavior(String selector)
          Constructor
AutoCompleteBehavior(String selector, Options options)
          Constructor
 
Method Summary
 void bind(org.apache.wicket.Component component)
           
protected  JQueryAjaxBehavior newOnSelectBehavior()
          Gets a new JQueryAjaxBehavior that will be called on 'select' javascript method
 void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target, JQueryEvent event)
           
 void onConfigure(org.apache.wicket.Component component)
           
 void onSelect(org.apache.wicket.ajax.AjaxRequestTarget target, int index)
           
 
Methods inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior
$, $, $, getOption, on, on, renderHead, setOption, setOptions
 
Methods inherited from class com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
add, beforeRender, toString
 
Methods inherited from class org.apache.wicket.behavior.Behavior
afterRender, canCallListenerInterface, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onComponentTag, onEvent, onException, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AutoCompleteBehavior

public AutoCompleteBehavior(String selector)
Constructor

Parameters:
selector - the html selector (ie: "#myId")

AutoCompleteBehavior

public AutoCompleteBehavior(String selector,
                            Options options)
Constructor

Parameters:
selector - the html selector (ie: "#myId")
options - the Options
Method Detail

bind

public void bind(org.apache.wicket.Component component)
Overrides:
bind in class org.apache.wicket.behavior.Behavior

onConfigure

public void onConfigure(org.apache.wicket.Component component)
Overrides:
onConfigure in class org.apache.wicket.behavior.Behavior

onAjax

public void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
                   JQueryEvent event)
Specified by:
onAjax in interface IJQueryAjaxAware

newOnSelectBehavior

protected JQueryAjaxBehavior newOnSelectBehavior()
Gets a new JQueryAjaxBehavior that will be called on 'select' javascript method

Returns:
the JQueryAjaxBehavior

onSelect

public void onSelect(org.apache.wicket.ajax.AjaxRequestTarget target,
                     int index)


Copyright © 2013 7thWeb. All Rights Reserved.