wicket.markup.html.form
Class ListChoice
java.lang.Object
wicket.Component
wicket.MarkupContainer
wicket.markup.html.WebMarkupContainer
wicket.markup.html.form.FormComponent
wicket.markup.html.form.AbstractChoice
wicket.markup.html.form.AbstractSingleSelectChoice
wicket.markup.html.form.DropDownChoice
wicket.markup.html.form.ListChoice
- All Implemented Interfaces:
- IOnChangeListener, IRequestListener, java.io.Serializable
- public class ListChoice
- extends DropDownChoice
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
|
Constructor Summary |
ListChoice(java.lang.String id)
|
ListChoice(java.lang.String id,
java.util.Collection values)
|
ListChoice(java.lang.String id,
IChoiceList values)
|
ListChoice(java.lang.String id,
IModel model,
java.util.Collection values)
|
ListChoice(java.lang.String id,
IModel model,
java.util.Collection values,
int maxRows)
|
ListChoice(java.lang.String id,
IModel model,
IChoiceList values)
|
ListChoice(java.lang.String id,
IModel model,
IChoiceList values,
int maxRows)
|
| Methods inherited from class wicket.markup.html.form.DropDownChoice |
detachModel, getChoices, getDefaultChoice, getModelValue, isNullValid, isSelected, onComponentTagBody, onSelectionChanged, onSelectionChanged, setChoices, setModelValue, setNullValid, updateModel, wantOnSelectionChangedNotifications |
| Methods inherited from class wicket.markup.html.form.FormComponent |
add, getForm, getInput, getValidationType, getValidators, getValue, inputAsInt, inputAsInt, inputAsIntArray, inputAsStringArray, invalid, isPersistent, isValid, isValidated, onInvalid, onModelChanged, onValid, setPersistent, valid, validate |
| Methods inherited from class wicket.MarkupContainer |
add, autoAdd, contains, findMarkupStream, get, getMarkupStream, internalAdd, internalBeginRequest, internalEndRequest, iterator, remove, removeAll, renderAssociatedMarkup, renderComponentTagBody, replace, setMarkupStream, setModel, size, toString, toString, visitChildren, visitChildren |
| Methods inherited from class wicket.Component |
add, addStateChange, checkComponentTag, checkComponentTagAttribute, debug, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getApplication, getApplicationPages, getApplicationSettings, getClassRelativePath, getConverter, getEscapeModelStrings, getFeedbackMessage, getFlag, getId, getLocale, getLocalizer, getModel, getModelObject, getModelObjectAsString, getPage, getPageFactory, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResource, getResponse, getSession, getString, getString, getString, getStyle, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnBeginRequest, internalOnEndRequest, internalOnModelChanged, internalOnModelChanging, isAncestorOf, isVersioned, isVisible, isVisibleInHierarchy, modelChanged, modelChanging, newPage, newPage, onBeginRequest, onEndRequest, onModelChanging, onSessionAttach, redirectTo, remove, render, renderComponent, renderComponentTag, rendered, replaceComponentTagBody, sameRootModel, sameRootModel, setFlag, setModelObject, setRedirect, setRenderBodyOnly, setResponsePage, setShouldEscapeModelStrings, setVersioned, setVisible, urlFor, visitParents, warn |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ListChoice
public ListChoice(java.lang.String id)
- See Also:
AbstractChoice.AbstractChoice(String)
ListChoice
public ListChoice(java.lang.String id,
java.util.Collection values)
- See Also:
AbstractChoice.AbstractChoice(String, Collection)
ListChoice
public ListChoice(java.lang.String id,
IChoiceList values)
- See Also:
AbstractChoice.AbstractChoice(String, IChoiceList)
ListChoice
public ListChoice(java.lang.String id,
IModel model,
java.util.Collection values)
- Parameters:
id - See Componentmodel - See Componentvalues - The collection of values in the list- See Also:
DropDownChoice.DropDownChoice(String, IModel, Collection)
ListChoice
public ListChoice(java.lang.String id,
IModel model,
IChoiceList values)
- Parameters:
id - See Componentmodel - See Componentvalues - The collection of values in the list- See Also:
DropDownChoice.DropDownChoice(String, IModel, Collection)
ListChoice
public ListChoice(java.lang.String id,
IModel model,
java.util.Collection values,
int maxRows)
- Parameters:
id - See Componentmodel - See Componentvalues - The collection of values in the listmaxRows - Maximum number of rows to show- See Also:
DropDownChoice.DropDownChoice(String, IModel, Collection)
ListChoice
public ListChoice(java.lang.String id,
IModel model,
IChoiceList values,
int maxRows)
- Parameters:
id - See Componentmodel - See Componentvalues - The collection of values in the listmaxRows - Maximum number of rows to show- See Also:
DropDownChoice.DropDownChoice(String, IModel, Collection)
getDefaultMaxRows
protected static int getDefaultMaxRows()
- Gets the default maximum number of rows to display.
- Returns:
- Returns the defaultMaxRows.
setDefaultMaxRows
protected static void setDefaultMaxRows(int defaultMaxRows)
- Sets the default maximum number of rows to display.
- Parameters:
defaultMaxRows - The defaultMaxRows to set.
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 setMaxRows(int maxRows)
- Sets the maximum number of rows to display.
- Parameters:
maxRows - the maximum number of rows to display
- Returns:
- This
onComponentTag
protected final void onComponentTag(ComponentTag tag)
- Description copied from class:
DropDownChoice
- Processes the component tag.
- Overrides:
onComponentTag in class DropDownChoice
- Parameters:
tag - Tag to modify- See Also:
Component.onComponentTag(ComponentTag)
supportsPersistence
protected final boolean supportsPersistence()
- See Also:
FormComponent.supportsPersistence()
Copyright © 2004-2005 Wicket developers. All Rights Reserved.