|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.Component
org.apache.wicket.MarkupContainer
org.apache.wicket.markup.html.WebMarkupContainer
org.apache.wicket.markup.html.form.LabeledWebMarkupContainer
org.apache.wicket.markup.html.form.FormComponent<T>
org.apache.wicket.markup.html.form.AbstractTextComponent<T>
org.apache.wicket.markup.html.form.TextField<T>
org.odlabs.wiquery.ui.autocomplete.Autocomplete<T>
T
- The model object typepublic class Autocomplete<T>
$Id$
Creates an autocomplete UI component
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.wicket.markup.html.form.AbstractTextComponent |
---|
org.apache.wicket.markup.html.form.AbstractTextComponent.ITextFormatProvider |
Field Summary |
---|
Fields inherited from class org.apache.wicket.markup.html.form.FormComponent |
---|
FLAG_CONVERT_EMPTY_INPUT_STRING_TO_NULL, VALUE_SEPARATOR |
Fields inherited from class org.apache.wicket.Component |
---|
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER |
Constructor Summary | |
---|---|
Autocomplete(String id)
Constructor |
|
Autocomplete(String id,
org.apache.wicket.model.IModel<T> model)
Constructor |
Method Summary | |
---|---|
JsStatement |
close()
Method to close the autocomplete This will return the element back to its pre-init state. |
void |
close(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to close the autocomplete within the ajax request |
JsStatement |
destroy()
Method to destroy the autocomplete This will return the element back to its pre-init state. |
void |
destroy(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to destroy the autocomplete within the ajax request |
protected void |
detachModel()
|
JsStatement |
disable()
Method to disable the autocomplete |
void |
disable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to disable the button within the ajax request |
JsStatement |
enable()
Method to enable the autocomplete |
void |
enable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to enable the autocomplete within the ajax request |
String |
getAppendTo()
|
int |
getDelay()
|
int |
getMinLength()
|
protected Options |
getOptions()
Method retrieving the options of the component |
PositionOptions |
getPosition()
|
AutocompleteSource |
getSource()
|
boolean |
isDisabled()
|
void |
renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
|
JsStatement |
search()
Method to search the autocomplete |
void |
search(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to search the autocomplete within the ajax request |
void |
search(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget,
String value)
Method to search the autocomplete within the ajax request |
JsStatement |
search(String value)
Method to search the autocomplete |
Autocomplete<T> |
setAppendTo(String appendTo)
The element passed to or selected by the appendTo option will be used as the container for the suggested values |
Autocomplete<T> |
setChangeEvent(JsScopeUiEvent change)
After an item was selected; ui.item refers to the selected item. |
Autocomplete<T> |
setCloseEvent(JsScopeUiEvent close)
When the list is hidden - doesn't have to occur together with a change. |
Autocomplete<T> |
setDelay(int delay)
The delay in milliseconds the autocomplete waits after a keystroke to activate itself. |
Autocomplete<T> |
setDisabled(boolean disabled)
Disables (true) or enables (false) the autocomplete. |
Autocomplete<T> |
setFocusEvent(JsScopeUiEvent focus)
Before focus is moved to an item (not selecting), ui.item refers to the focused item. |
Autocomplete<T> |
setMinLength(int minLength)
The minimum number of characters a user has to type before the autocomplete activates. |
Autocomplete<T> |
setOpenEvent(JsScopeUiEvent open)
After a request with the data ready, before it is actually displayed; also indicates the suggestion menu will be opened. |
Autocomplete<T> |
setPosition(PositionOptions position)
Position of the component of the suggested values with the input field |
Autocomplete<T> |
setSearchEvent(JsScopeUiEvent search)
Before a request (source-option) is started, after minLength and delay are met. |
Autocomplete<T> |
setSelectEvent(JsScopeUiEvent select)
Triggered when an item is selected from the menu; ui.item refers to the selected item. |
Autocomplete<T> |
setSource(AutocompleteSource source)
Defines the data to use, must be specified. |
JsStatement |
statement()
Returns the main JsStatement used to create the plugin. |
JsStatement |
widget()
Method to returns the .ui-autocomplete element |
void |
widget(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to returns the .ui-autocomplete element within the ajax request |
Methods inherited from class org.apache.wicket.markup.html.form.TextField |
---|
getInputType, onComponentTag |
Methods inherited from class org.apache.wicket.markup.html.form.AbstractTextComponent |
---|
convertInput, getConvertEmptyInputStringToNull, isInputNullable, onBeforeRender, setConvertEmptyInputStringToNull |
Methods inherited from class org.apache.wicket.markup.html.form.FormComponent |
---|
add, add, checkRequired, clearInput, convertValue, error, getConvertedInput, getDefaultLabel, getDefaultLabel, getForm, getInput, getInputAsArray, getInputName, getModel, getModelObject, getModelValue, getRawInput, getType, getValidatorKeyPrefix, getValidators, getValue, hasRawInput, inputAsInt, inputAsInt, inputAsIntArray, inputChanged, internalOnModelChanged, invalid, isMultiPart, isRequired, isValid, newValidatable, onDetach, onDisabled, onInvalid, onValid, processChildren, processInput, remove, setConvertedInput, setLabel, setModel, setModelObject, setModelValue, setRequired, setType, shouldTrimInput, trim, updateCollectionModel, updateModel, valid, validate, validateRequired, validateValidators, visitComponentsPostOrder, visitFormComponentsPostOrder |
Methods inherited from class org.apache.wicket.markup.html.form.LabeledWebMarkupContainer |
---|
getLabel, setLabelInternal |
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer |
---|
getWebPage, getWebRequest |
Methods inherited from class org.apache.wicket.MarkupContainer |
---|
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, hasAssociatedMarkup, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onMarkupAttached, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren |
Methods inherited from class org.apache.wicket.Component |
---|
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onConfigure, onEvent, onInitialize, onModelChanged, onModelChanging, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn, wrap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Autocomplete(String id)
id
- Wicket identifiantpublic Autocomplete(String id, org.apache.wicket.model.IModel<T> model)
id
- Wicket identifiantmodel
- ModelMethod Detail |
---|
protected void detachModel()
detachModel
in class org.apache.wicket.Component
public void renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
renderHead
in interface org.apache.wicket.markup.html.IHeaderContributor
renderHead
in class org.apache.wicket.Component
protected Options getOptions()
public JsStatement statement()
IWiQueryPlugin
JsStatement
used to create the plugin.
statement
in interface IWiQueryPlugin
JsStatement
corresponding to this component.public Autocomplete<T> setAppendTo(String appendTo)
appendTo
-
public String getAppendTo()
public Autocomplete<T> setDelay(int delay)
delay
-
public int getDelay()
public Autocomplete<T> setMinLength(int minLength)
minLength
-
public int getMinLength()
public Autocomplete<T> setPosition(PositionOptions position)
position
-
public PositionOptions getPosition()
public Autocomplete<T> setSource(AutocompleteSource source)
source
-
public AutocompleteSource getSource()
public Autocomplete<T> setDisabled(boolean disabled)
disabled
-
public boolean isDisabled()
public Autocomplete<T> setChangeEvent(JsScopeUiEvent change)
change
-
public Autocomplete<T> setCloseEvent(JsScopeUiEvent close)
close
-
public Autocomplete<T> setFocusEvent(JsScopeUiEvent focus)
focus
-
public Autocomplete<T> setOpenEvent(JsScopeUiEvent open)
open
-
public Autocomplete<T> setSearchEvent(JsScopeUiEvent search)
search
-
public Autocomplete<T> setSelectEvent(JsScopeUiEvent select)
select
-
public JsStatement close()
public void close(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
ajaxRequestTarget
- public JsStatement destroy()
public void destroy(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
ajaxRequestTarget
- public JsStatement disable()
public void disable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
ajaxRequestTarget
- public JsStatement enable()
public void enable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
ajaxRequestTarget
- public JsStatement search()
public void search(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
ajaxRequestTarget
- public JsStatement search(String value)
value
- String
public void search(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget, String value)
ajaxRequestTarget
- value
- Stringpublic JsStatement widget()
public void widget(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
ajaxRequestTarget
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |