T - the type of the model objectpublic class ComboBox<T> extends org.apache.wicket.markup.html.form.TextField<String> implements IJQueryWidget
org.apache.wicket.markup.html.form.AbstractTextComponent.ITextFormatProviderIJQueryWidget.JQueryWidget| Constructor and Description |
|---|
ComboBox(String id,
org.apache.wicket.model.IModel<List<? extends T>> choices)
Constructor
|
ComboBox(String id,
org.apache.wicket.model.IModel<List<? extends T>> choices,
ComboBoxRenderer<? super T> renderer)
Constructor
|
ComboBox(String id,
org.apache.wicket.model.IModel<String> model,
org.apache.wicket.model.IModel<List<? extends T>> choices)
Constructor
|
ComboBox(String id,
org.apache.wicket.model.IModel<String> model,
org.apache.wicket.model.IModel<List<? extends T>> choices,
ComboBoxRenderer<? super T> renderer)
Constructor
|
ComboBox(String id,
org.apache.wicket.model.IModel<String> model,
List<? extends T> choices)
Constructor
|
ComboBox(String id,
org.apache.wicket.model.IModel<String> model,
List<? extends T> choices,
ComboBoxRenderer<? super T> renderer)
Constructor
|
ComboBox(String id,
List<? extends T> choices)
Constructor
|
ComboBox(String id,
List<? extends T> choices,
ComboBoxRenderer<? super T> renderer)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getListWidth()
Gets the (inner) list width.
|
protected 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.") |
JQueryBehavior |
newWidgetBehavior(String selector) |
void |
onBeforeRender(JQueryBehavior behavior) |
void |
onConfigure(JQueryBehavior behavior) |
protected void |
onInitialize() |
ComboBox<?> |
setListWidth(int width)
Sets the (inner) list width.
|
getInputType, onComponentTagconvertInput, getConvertEmptyInputStringToNull, isInputNullable, onBeforeRender, setConvertEmptyInputStringToNulladd, 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, newValidationError, onDetach, onDisabled, onInvalid, onRequired, onValid, processChildren, processInput, remove, reportRequiredError, setConvertedInput, setLabel, setModel, setModelObject, setModelValue, setRequired, setType, shouldTrimInput, trim, updateAutoLabels, updateCollectionModel, updateModel, valid, validate, validateRequired, validateValidators, visitComponentsPostOrder, visitFormComponentsPostOrdergetWebPage, getWebRequest, getWebResponse, getWebSessionadd, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildrenadd, addStateChange, afterRender, beforeRender, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, 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, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onConfigure, onEvent, onModelChanged, onModelChanging, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, 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, wrappublic ComboBox(String id, List<? extends T> choices)
id - the markup idchoices - the list of choicespublic ComboBox(String id, List<? extends T> choices, ComboBoxRenderer<? super T> renderer)
id - the markup idchoices - the list of choicesrenderer - the renderer to be used, so the renderer item text and its values can be dissociatedpublic ComboBox(String id, org.apache.wicket.model.IModel<List<? extends T>> choices)
id - the markup idchoices - the list model of choicespublic ComboBox(String id, org.apache.wicket.model.IModel<List<? extends T>> choices, ComboBoxRenderer<? super T> renderer)
id - the markup idchoices - the list model of choicesrenderer - the renderer to be used, so the renderer item text and its values can be dissociatedpublic ComboBox(String id, org.apache.wicket.model.IModel<String> model, List<? extends T> choices)
id - the markup idmodel - the IModelchoices - the list of choicespublic ComboBox(String id, org.apache.wicket.model.IModel<String> model, List<? extends T> choices, ComboBoxRenderer<? super T> renderer)
id - the markup idmodel - the IModelchoices - the list model of choicesrenderer - the renderer to be used, so the renderer item text and its values can be dissociatedpublic ComboBox(String id, org.apache.wicket.model.IModel<String> model, org.apache.wicket.model.IModel<List<? extends T>> choices)
id - the markup idmodel - the IModelchoices - the list model of choicespublic ComboBox(String id, org.apache.wicket.model.IModel<String> model, org.apache.wicket.model.IModel<List<? extends T>> choices, ComboBoxRenderer<? super T> renderer)
id - the markup idmodel - the IModelchoices - the list model of choicesrenderer - the renderer to be used, so the renderer item text and its values can be dissociatedpublic int getListWidth()
public ComboBox<?> setListWidth(int width)
width - the list widthprotected void onInitialize()
onInitialize in class org.apache.wicket.Componentpublic void onConfigure(JQueryBehavior behavior)
onConfigure in interface IJQueryWidgetpublic void onBeforeRender(JQueryBehavior behavior)
onBeforeRender in interface IJQueryWidgetpublic JQueryBehavior newWidgetBehavior(String selector)
newWidgetBehavior in interface IJQueryWidgetprotected IJQueryTemplate newTemplate()
IJQueryTemplate to customize the renderingIJQueryTemplate.getTextProperties() (without "data.")Copyright © 2014 7thWeb. All Rights Reserved.