wicket.markup.html.form
Class ListChoice

java.lang.Object
  extended bywicket.Component
      extended bywicket.MarkupContainer
          extended bywicket.markup.html.WebMarkupContainer
              extended bywicket.markup.html.form.FormComponent
                  extended bywicket.markup.html.form.AbstractChoice
                      extended bywicket.markup.html.form.AbstractSingleSelectChoice
                          extended bywicket.markup.html.form.DropDownChoice
                              extended bywicket.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

Nested Class Summary
 
Nested classes inherited from class wicket.markup.html.form.FormComponent
FormComponent.IVisitor
 
Nested classes inherited from class wicket.Component
Component.ComponentModelChange, Component.VisibilityChange
 
Field Summary
 
Fields inherited from class wicket.markup.html.form.FormComponent
FLAG_CONVERT_EMPTY_INPUT_STRING_TO_NULL, NO_INVALID_INPUT
 
Fields inherited from class wicket.Component
FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4
 
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)
           
 
Method Summary
protected static int getDefaultMaxRows()
          Gets the default maximum number of rows to display.
 int getMaxRows()
          Gets the maximum number of rows to display.
protected  void onComponentTag(ComponentTag tag)
          Processes the component tag.
protected static void setDefaultMaxRows(int defaultMaxRows)
          Sets the default maximum number of rows to display.
 ListChoice setMaxRows(int maxRows)
          Sets the maximum number of rows to display.
protected  boolean supportsPersistence()
           
 
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.markup.html.WebMarkupContainer
getMarkupType, onRender
 
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
 

Constructor Detail

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 Component
model - See Component
values - 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 Component
model - See Component
values - 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 Component
model - See Component
values - The collection of values in the list
maxRows - 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 Component
model - See Component
values - The collection of values in the list
maxRows - Maximum number of rows to show
See Also:
DropDownChoice.DropDownChoice(String, IModel, Collection)
Method Detail

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.