package org.apache.wicket.extensions.ajax.markup.html.autocomplete;
An implementation of a textfield with the autoassist ajax behavior
AutoCompleteBehavior.
FIXME javadoc - constructors need proper descriptions
Note that you must add your own CSS to make the suggestion display properly,
see
DefaultCssAutocompleteTextField for an example.
auto complete behavior attached to this textfield
this(id, (IModel)null, type, false);
- Parameters:
idmodeltypepreselect
the first item
this(id, model, type, StringAutoCompleteRenderer.INSTANCE, preselect);
Construct.
- Parameters:
idmodeltypesettings
this(id, model, type, StringAutoCompleteRenderer.INSTANCE, settings);
- Parameters:
idobjectpreselect
this(id, object, (Class)null, preselect);
Construct.
- Parameters:
idobjectsettings
this(id, object, (Class)null, settings);
this(id, object, (Class)null, false);
this(id, (IModel)null, preselect);
this(id, (IModel)null, settings);
this(id, (IModel)null, false);
this(id, (IModel)null, renderer);
- Parameters:
idtyperenderer
this(id, null, type, renderer, false);
- Parameters:
idmodelrenderer
this(id, model, (Class)null, renderer, false);
- Parameters:
idmodeltyperendererpreselect
Constructor
- Parameters:
idmodeltyperenderersettings
this.renderer = renderer;
this.settings = settings;
Factory method for autocomplete behavior that will be added to this textfield
- Parameters:
renderer
auto complete renderersettings
auto complete settings- Returns:
- auto complete behavior
private static final long serialVersionUID = 1L;
tag.put("autocomplete", "off"); Callback method that should return an iterator over all possible assist choice objects. These
objects will be passed to the renderer to generate output. Usually it is enough to return an
iterator over strings.