org.apache.wicket.markup.html.form
Class ListChoice<T>
java.lang.Object
org.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.AbstractChoice<T,T>
org.apache.wicket.markup.html.form.AbstractSingleSelectChoice<T>
org.apache.wicket.markup.html.form.DropDownChoice<T>
org.apache.wicket.markup.html.form.ListChoice<T>
- Type Parameters:
T
- The model object type
- All Implemented Interfaces:
- Serializable, Iterable<Component>, IEventSink, IEventSource, IConverterLocator, IGenericComponent<T>, IRequestListener, IFormModelUpdateListener, IFormVisitorParticipant, ILabelProvider<String>, IOnChangeListener, IHeaderContributor, IRequestableComponent, IHierarchical<Component>, IClusterable
public class ListChoice<T>
- extends DropDownChoice<T>
Essentially a drop down choice that doesn't drop down. Instead, it scrolls and displays a given
number of rows.
- Author:
- Jonathan Locke, Johan Compagner, Eelco Hillenius
- See Also:
- Serialized Form
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 |
ListChoice(String id)
|
ListChoice(String id,
IModel<? extends List<? extends T>> choices)
|
ListChoice(String id,
IModel<? extends List<? extends T>> choices,
IChoiceRenderer<? super T> renderer)
|
ListChoice(String id,
IModel<T> model,
IModel<? extends List<? extends T>> choices)
|
ListChoice(String id,
IModel<T> model,
IModel<? extends List<? extends T>> choices,
IChoiceRenderer<? super T> renderer)
|
ListChoice(String id,
IModel<T> model,
IModel<? extends List<? extends T>> choices,
IChoiceRenderer<? super T> renderer,
int maxRows)
|
ListChoice(String id,
IModel<T> model,
List<? extends T> choices)
|
ListChoice(String id,
IModel<T> model,
List<? extends T> choices,
IChoiceRenderer<? super T> renderer)
|
ListChoice(String id,
IModel<T> model,
List<? extends T> choices,
IChoiceRenderer<? super T> renderer,
int maxRows)
|
ListChoice(String id,
IModel<T> model,
List<? extends T> choices,
int maxRows)
|
ListChoice(String id,
List<? extends T> choices)
|
ListChoice(String id,
List<? extends T> choices,
IChoiceRenderer<? super T> renderer)
|
Methods inherited from class org.apache.wicket.markup.html.form.AbstractSingleSelectChoice |
convertChoiceIdToChoice, convertValue, getDefaultChoice, getModelValue, getNullKey, getNullKeyDisplayValue, getNullValidDisplayValue, getNullValidKey, isNullValid, isSelected, setNullValid |
Methods inherited from class org.apache.wicket.markup.html.form.AbstractChoice |
appendOptionHtml, detachModel, escapeOptionHtml, getChoiceRenderer, getChoices, isDisabled, localizeDisplayValues, onComponentTagBody, setChoiceRenderer, setChoices, setChoices, setOptionAttributes, setType |
Methods inherited from class org.apache.wicket.markup.html.form.FormComponent |
add, add, checkRequired, clearInput, convertInput, error, getConvertedInput, getDefaultLabel, getDefaultLabel, getForm, getInput, getInputAsArray, getInputName, getModel, getModelObject, getRawInput, getType, getValidatorKeyPrefix, getValidators, getValue, hasRawInput, inputAsInt, inputAsInt, inputAsIntArray, inputChanged, internalOnModelChanged, invalid, isInputNullable, isMultiPart, isRequired, isValid, newValidatable, newValidationError, onDetach, onDisabled, onInvalid, onRequired, onValid, processChildren, processInput, remove, reportRequiredError, setConvertedInput, setLabel, setModel, setModelObject, setModelValue, setRequired, shouldTrimInput, trim, updateAutoLabels, updateCollectionModel, updateModel, valid, validate, validateRequired, validateValidators, visitComponentsPostOrder, visitFormComponentsPostOrder |
Methods inherited from class org.apache.wicket.MarkupContainer |
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, 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, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, 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, 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, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onBeforeRender, onConfigure, onEvent, onInitialize, onModelChanged, onModelChanging, onReAdd, 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, wrap |
ListChoice
public ListChoice(String id)
- See Also:
AbstractChoice.AbstractChoice(String)
ListChoice
public ListChoice(String id,
List<? extends T> choices)
- See Also:
AbstractChoice.AbstractChoice(String, List)
ListChoice
public ListChoice(String id,
List<? extends T> choices,
IChoiceRenderer<? super T> renderer)
- Parameters:
id
- See Componentchoices
- The list of values in the listrenderer
- See AbstractChoice- See Also:
AbstractChoice.AbstractChoice(String,
List,IChoiceRenderer)
ListChoice
public ListChoice(String id,
IModel<T> model,
List<? extends T> choices)
- Parameters:
id
- See Componentmodel
- See Componentchoices
- The list of values in the list- See Also:
DropDownChoice.DropDownChoice(String, IModel, List)
ListChoice
public ListChoice(String id,
IModel<T> model,
List<? extends T> choices,
int maxRows)
- Parameters:
id
- See Componentmodel
- See Componentchoices
- The list of values in the listmaxRows
- Maximum number of rows to show- See Also:
DropDownChoice.DropDownChoice(String, IModel, List)
ListChoice
public ListChoice(String id,
IModel<T> model,
List<? extends T> choices,
IChoiceRenderer<? super T> renderer)
- Parameters:
id
- See Componentmodel
- See Componentchoices
- The list of values in the listrenderer
- See AbstractChoice- See Also:
DropDownChoice.DropDownChoice(String, IModel, List)
ListChoice
public ListChoice(String id,
IModel<T> model,
List<? extends T> choices,
IChoiceRenderer<? super T> renderer,
int maxRows)
- Parameters:
id
- See Componentmodel
- See Componentchoices
- The list of values in the listrenderer
- See AbstractChoicemaxRows
- Maximum number of rows to show- See Also:
DropDownChoice.DropDownChoice(String, IModel, List)
ListChoice
public ListChoice(String id,
IModel<? extends List<? extends T>> choices)
- See Also:
AbstractChoice.AbstractChoice(String, IModel)
ListChoice
public ListChoice(String id,
IModel<T> model,
IModel<? extends List<? extends T>> choices)
- See Also:
AbstractChoice.AbstractChoice(String, IModel,IModel)
ListChoice
public ListChoice(String id,
IModel<? extends List<? extends T>> choices,
IChoiceRenderer<? super T> renderer)
- See Also:
AbstractChoice.AbstractChoice(String,
IModel,IChoiceRenderer)
ListChoice
public ListChoice(String id,
IModel<T> model,
IModel<? extends List<? extends T>> choices,
IChoiceRenderer<? super T> renderer)
- See Also:
AbstractChoice.AbstractChoice(String, IModel,
IModel,IChoiceRenderer)
ListChoice
public ListChoice(String id,
IModel<T> model,
IModel<? extends List<? extends T>> choices,
IChoiceRenderer<? super T> renderer,
int maxRows)
- Parameters:
id
- model
- choices
- renderer
- maxRows
- - See Also:
AbstractChoice.AbstractChoice(String, IModel,
IModel,IChoiceRenderer)
getMaxRows
public final int getMaxRows()
- Gets the maximum number of rows to display.
- Returns:
- the maximum number of rows to display
setMaxRows
public final ListChoice<T> setMaxRows(int maxRows)
- Sets the maximum number of rows to display.
- Parameters:
maxRows
- the maximum number of rows to display
- Returns:
- This
onComponentTag
protected void onComponentTag(ComponentTag tag)
- Description copied from class:
DropDownChoice
- Processes the component tag.
- Overrides:
onComponentTag
in class DropDownChoice<T>
- Parameters:
tag
- Tag to modify- See Also:
Component.onComponentTag(ComponentTag)
Copyright © 2006–2016 Apache Software Foundation. All rights reserved.