|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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<java.util.Collection<T>,T>
org.apache.wicket.markup.html.form.ListMultipleChoice<T>
org.apache.wicket.markup.html.form.CheckBoxMultipleChoice<T>
T
- The model object typepublic class CheckBoxMultipleChoice<T>
A choice subclass that shows choices via checkboxes.
Java:
List SITES = Arrays.asList(new String[] { "The Server Side", "Java Lobby", "Java.Net" }); // Add a set of checkboxes uses Input's 'site' property to designate the // current selections, and that uses the SITES list for the available options. form.add(new CheckBoxMultipleChoice("site", SITES));HTML:
<span valign="top" wicket:id="site"> <input type="checkbox">site 1</input> <input type="checkbox">site 2</input> </span>
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.wicket.markup.html.form.FormComponent |
---|
FormComponent.AbstractVisitor, FormComponent.IVisitor |
Nested classes/interfaces inherited from class org.apache.wicket.Component |
---|
Component.ComponentModelChange, Component.EnabledChange, Component.VisibilityChange |
Field Summary |
---|
Fields inherited from class org.apache.wicket.markup.html.form.FormComponent |
---|
FLAG_CONVERT_EMPTY_INPUT_STRING_TO_NULL, VALUE_SEPARATOR |
Fields inherited from class org.apache.wicket.Component |
---|
ENABLE, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED6, FLAG_RESERVED7, FLAG_RESERVED8, PATH_SEPARATOR, RENDER |
Constructor Summary | |
---|---|
CheckBoxMultipleChoice(java.lang.String id)
Constructor |
|
CheckBoxMultipleChoice(java.lang.String id,
IModel<? extends java.util.List<? extends T>> choices)
Constructor |
|
CheckBoxMultipleChoice(java.lang.String id,
IModel<? extends java.util.List<? extends T>> choices,
IChoiceRenderer<T> renderer)
Constructor |
|
CheckBoxMultipleChoice(java.lang.String id,
IModel<java.util.Collection<T>> model,
IModel<? extends java.util.List<? extends T>> choices)
Constructor |
|
CheckBoxMultipleChoice(java.lang.String id,
IModel<java.util.Collection<T>> model,
IModel<? extends java.util.List<? extends T>> choices,
IChoiceRenderer<T> renderer)
Constructor |
|
CheckBoxMultipleChoice(java.lang.String id,
IModel<java.util.Collection<T>> model,
java.util.List<? extends T> choices)
Constructor |
|
CheckBoxMultipleChoice(java.lang.String id,
IModel<java.util.Collection<T>> model,
java.util.List<? extends T> choices,
IChoiceRenderer<T> renderer)
Constructor |
|
CheckBoxMultipleChoice(java.lang.String id,
java.util.List<? extends T> choices)
Constructor |
|
CheckBoxMultipleChoice(java.lang.String id,
java.util.List<? extends T> choices,
IChoiceRenderer<T> renderer)
Constructor |
Method Summary | |
---|---|
java.lang.String |
getPrefix()
|
java.lang.String |
getSuffix()
|
protected boolean |
isEscapeLabelMarkup()
Deprecated. use Component.setEscapeModelStrings(boolean) |
protected void |
onComponentTag(ComponentTag tag)
Processes the component tag. |
protected void |
onComponentTagBody(MarkupStream markupStream,
ComponentTag openTag)
Handle the container's body. |
CheckBoxMultipleChoice<T> |
setPrefix(java.lang.String prefix)
|
CheckBoxMultipleChoice<T> |
setSuffix(java.lang.String suffix)
|
Methods inherited from class org.apache.wicket.markup.html.form.ListMultipleChoice |
---|
convertChoiceIdsToChoices, convertValue, getDefaultMaxRows, getModelValue, isSelected, setDefaultMaxRows, setMaxRows, updateModel |
Methods inherited from class org.apache.wicket.markup.html.form.AbstractChoice |
---|
appendOptionHtml, detachModel, escapeOptionHtml, getChoiceRenderer, getChoices, getDefaultChoice, isDisabled, localizeDisplayValues, setChoiceRenderer, setChoices, setChoices, supportsPersistence |
Methods inherited from class org.apache.wicket.markup.html.form.FormComponent |
---|
add, add, checkRequired, clearInput, convertInput, error, getConvertedInput, getForm, getInput, getInputAsArray, getInputName, getModel, getModelObject, getRawInput, getType, getValidatorKeyPrefix, getValidators, getValue, hasRawInput, inputAsInt, inputAsInt, inputAsIntArray, inputChanged, internalOnModelChanged, invalid, isInputNullable, isMultiPart, isPersistent, isRequired, isValid, newValidatable, onDetach, onDisabled, onInvalid, onValid, processChildren, processInput, setConvertedInput, setLabel, setModel, setModelObject, setModelValue, setModelValue, setPersistent, setRequired, setType, shouldTrimInput, trim, valid, validate, validateRequired, validateValidators, visitComponentsPostOrder, visitFormComponentsPostOrder |
Methods inherited from class org.apache.wicket.markup.html.form.LabeledWebMarkupContainer |
---|
getLabel, setLabelInternal |
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer |
---|
getMarkupType, getWebPage, getWebRequest |
Methods inherited from class org.apache.wicket.MarkupContainer |
---|
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, replace, setDefaultModel, setMarkupStream, size, swap, toString, toString, visitChildren, visitChildren |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CheckBoxMultipleChoice(java.lang.String id)
id
- See ComponentComponent.Component(String)
,
AbstractChoice.AbstractChoice(String)
public CheckBoxMultipleChoice(java.lang.String id, java.util.List<? extends T> choices)
id
- See Componentchoices
- The collection of choices in the radio choiceComponent.Component(String)
,
AbstractChoice.AbstractChoice(String, java.util.List)
public CheckBoxMultipleChoice(java.lang.String id, java.util.List<? extends T> choices, IChoiceRenderer<T> renderer)
id
- See Componentrenderer
- The rendering enginechoices
- The collection of choices in the radio choiceComponent.Component(String)
,
AbstractChoice.AbstractChoice(String,
java.util.List,org.apache.wicket.markup.html.form.IChoiceRenderer)
public CheckBoxMultipleChoice(java.lang.String id, IModel<java.util.Collection<T>> model, java.util.List<? extends T> choices)
id
- See Componentmodel
- See Componentchoices
- The collection of choices in the radio choiceComponent.Component(String, org.apache.wicket.model.IModel)
,
AbstractChoice.AbstractChoice(String, org.apache.wicket.model.IModel, java.util.List)
public CheckBoxMultipleChoice(java.lang.String id, IModel<java.util.Collection<T>> model, java.util.List<? extends T> choices, IChoiceRenderer<T> renderer)
id
- See Componentmodel
- See Componentchoices
- The collection of choices in the radio choicerenderer
- The rendering engineComponent.Component(String, org.apache.wicket.model.IModel)
,
AbstractChoice.AbstractChoice(String, org.apache.wicket.model.IModel,
java.util.List,org.apache.wicket.markup.html.form.IChoiceRenderer)
public CheckBoxMultipleChoice(java.lang.String id, IModel<? extends java.util.List<? extends T>> choices)
id
- See Componentchoices
- The collection of choices in the radio choiceComponent.Component(String)
,
AbstractChoice.AbstractChoice(String, org.apache.wicket.model.IModel)
public CheckBoxMultipleChoice(java.lang.String id, IModel<java.util.Collection<T>> model, IModel<? extends java.util.List<? extends T>> choices)
id
- See Componentmodel
- The model that is updated with changes in this component. See Componentchoices
- The collection of choices in the radio choiceAbstractChoice.AbstractChoice(String,
org.apache.wicket.model.IModel,org.apache.wicket.model.IModel)
,
Component.Component(String, org.apache.wicket.model.IModel)
public CheckBoxMultipleChoice(java.lang.String id, IModel<? extends java.util.List<? extends T>> choices, IChoiceRenderer<T> renderer)
id
- See Componentchoices
- The collection of choices in the radio choicerenderer
- The rendering engineAbstractChoice.AbstractChoice(String,
org.apache.wicket.model.IModel,org.apache.wicket.markup.html.form.IChoiceRenderer)
,
Component.Component(String)
public CheckBoxMultipleChoice(java.lang.String id, IModel<java.util.Collection<T>> model, IModel<? extends java.util.List<? extends T>> choices, IChoiceRenderer<T> renderer)
id
- See Componentmodel
- The model that is updated with changes in this component. See Componentchoices
- The collection of choices in the radio choicerenderer
- The rendering engineComponent.Component(String, org.apache.wicket.model.IModel)
,
AbstractChoice.AbstractChoice(String, org.apache.wicket.model.IModel,
org.apache.wicket.model.IModel,org.apache.wicket.markup.html.form.IChoiceRenderer)
Method Detail |
---|
public java.lang.String getPrefix()
public final CheckBoxMultipleChoice<T> setPrefix(java.lang.String prefix)
prefix
- Prefix to use before choice
public java.lang.String getSuffix()
public final CheckBoxMultipleChoice<T> setSuffix(java.lang.String suffix)
suffix
- Separator to use between radio options
protected void onComponentTag(ComponentTag tag)
FormComponent
onComponentTag
in class ListMultipleChoice<T>
tag
- Tag to modifyListMultipleChoice.onComponentTag(org.apache.wicket.markup.ComponentTag)
protected final void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag)
AbstractChoice
onComponentTagBody
in class AbstractChoice<java.util.Collection<T>,T>
markupStream
- The markup streamopenTag
- The open tag for the bodyComponent.onComponentTagBody(org.apache.wicket.markup.MarkupStream,
org.apache.wicket.markup.ComponentTag)
@Deprecated protected final boolean isEscapeLabelMarkup()
Component.setEscapeModelStrings(boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |