T - the model object typepublic abstract class MultiSelect<T> extends org.apache.wicket.markup.html.form.FormComponent<Collection<T>> implements com.googlecode.wicket.jquery.core.IJQueryWidget, com.googlecode.wicket.jquery.core.data.IChoiceProvider<T>
FLAG_CONVERT_EMPTY_INPUT_STRING_TO_NULL, VALUE_SEPARATORENABLE, FLAG_AFTER_RENDERING, FLAG_INITIALIZED, FLAG_PREPARED_FOR_RENDER, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RENDERING, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING| Constructor and Description |
|---|
MultiSelect(String id)
Constructor
|
MultiSelect(String id,
com.googlecode.wicket.jquery.core.renderer.IChoiceRenderer<? super T> renderer)
Constructor
|
MultiSelect(String id,
org.apache.wicket.model.IModel<? extends Collection<T>> model)
Constructor
|
MultiSelect(String id,
org.apache.wicket.model.IModel<? extends Collection<T>> model,
com.googlecode.wicket.jquery.core.renderer.IChoiceRenderer<? super T> renderer)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
convertInput() |
protected CharSequence |
getCallbackUrl()
Gets the
ChoiceModelBehavior callback url |
int |
getListWidth()
Gets the (inner) list width.
|
protected String |
getModelValue() |
String |
getTemplateToken()
Gets the template script token/id
|
protected com.googlecode.wicket.jquery.core.behavior.ChoiceModelBehavior<T> |
newChoiceModelBehavior()
Gets a new
ChoiceModelBehavior |
protected com.googlecode.wicket.jquery.core.template.IJQueryTemplate |
newTemplate()
Gets a new
IJQueryTemplate to customize the renderingThe properties used in the template text (ie: ${data.name}) should be of the prefixed by "data." and should be identified in the list returned by IJQueryTemplate.getTextProperties() (without "data.") |
com.googlecode.wicket.jquery.core.JQueryBehavior |
newWidgetBehavior(String selector) |
void |
onBeforeRender(com.googlecode.wicket.jquery.core.JQueryBehavior behavior) |
void |
onConfigure(com.googlecode.wicket.jquery.core.JQueryBehavior behavior) |
protected void |
onConfigure(KendoDataSource dataSource)
Configure the
KendoDataSource with additional options |
protected void |
onInitialize() |
void |
refresh(org.apache.wicket.ajax.AjaxRequestTarget target)
Refreshes the widget by reading from the datasource
|
MultiSelect<T> |
setListWidth(int width)
Sets the (inner) list width.
|
void |
updateModel() |
String |
widget()
Gets the Kendo UI widget
|
add, add, checkRequired, clearInput, convertValue, error, getConvertedInput, getDefaultLabel, getDefaultLabel, getForm, getInput, getInputAsArray, getInputName, getModel, getModelObject, getParameterValues, getRawInput, getType, getValidatorKeyPrefix, getValidators, getValue, hasRawInput, inputAsInt, inputAsInt, inputAsIntArray, inputChanged, internalOnModelChanged, invalid, isInputNullable, isMultiPart, isRequired, isValid, newValidatable, newValidationError, onComponentTag, onDetach, onDisabled, onInvalid, onRequired, onValid, processChildren, processInput, remove, reportRequiredError, setConvertedInput, setLabel, setModel, setModelObject, setModelValue, setRequired, setType, shouldTrimInput, trim, updateAutoLabels, updateCollectionModel, valid, validate, validateRequired, validateValidators, visitComponentsPostOrder, visitFormComponentsPostOrdergetWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSessionadd, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findChildComponent, findComponentToDequeue, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, getRegionMarkup, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onAfterRenderChildren, onComponentTagBody, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildrenadd, addStateChange, afterRender, beforeRender, canCallListenerInterface, canCallListenerInterfaceAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, createConverter, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, 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, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onBeforeRender, onConfigure, onEvent, onModelChanged, onModelChanging, onReAdd, 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, visitParents, visitParents, warn, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic MultiSelect(String id)
id - the markup idpublic MultiSelect(String id, org.apache.wicket.model.IModel<? extends Collection<T>> model)
id - the markup idmodel - the IModelpublic MultiSelect(String id, com.googlecode.wicket.jquery.core.renderer.IChoiceRenderer<? super T> renderer)
id - the markup idrenderer - the IChoiceRendererpublic MultiSelect(String id, org.apache.wicket.model.IModel<? extends Collection<T>> model, com.googlecode.wicket.jquery.core.renderer.IChoiceRenderer<? super T> renderer)
id - the markup idmodel - the IModelrenderer - the ChoiceRendererprotected CharSequence getCallbackUrl()
ChoiceModelBehavior callback urlChoiceModelBehavior callback urlpublic String getTemplateToken()
public int getListWidth()
public MultiSelect<T> setListWidth(int width)
width - the list widthpublic void convertInput()
convertInput in class org.apache.wicket.markup.html.form.FormComponent<Collection<T>>public void updateModel()
updateModel in interface org.apache.wicket.markup.html.form.IFormModelUpdateListenerupdateModel in class org.apache.wicket.markup.html.form.FormComponent<Collection<T>>public String widget()
public void refresh(org.apache.wicket.ajax.AjaxRequestTarget target)
target - the AjaxRequestTargetprotected String getModelValue()
getModelValue in class org.apache.wicket.markup.html.form.FormComponent<Collection<T>>protected void onInitialize()
onInitialize in class org.apache.wicket.MarkupContainerpublic void onConfigure(com.googlecode.wicket.jquery.core.JQueryBehavior behavior)
onConfigure in interface com.googlecode.wicket.jquery.core.IJQueryWidgetprotected void onConfigure(KendoDataSource dataSource)
KendoDataSource with additional optionsdataSource - the KendoDataSourcepublic void onBeforeRender(com.googlecode.wicket.jquery.core.JQueryBehavior behavior)
onBeforeRender in interface com.googlecode.wicket.jquery.core.IJQueryWidgetpublic com.googlecode.wicket.jquery.core.JQueryBehavior newWidgetBehavior(String selector)
newWidgetBehavior in interface com.googlecode.wicket.jquery.core.IJQueryWidgetprotected com.googlecode.wicket.jquery.core.template.IJQueryTemplate newTemplate()
IJQueryTemplate to customize the renderingIJQueryTemplate.getTextProperties() (without "data.")protected com.googlecode.wicket.jquery.core.behavior.ChoiceModelBehavior<T> newChoiceModelBehavior()
ChoiceModelBehaviorChoiceModelBehaviorCopyright © 2021 7thWeb. All rights reserved.