|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectwicket.Component
wicket.MarkupContainer
wicket.markup.html.WebMarkupContainer
wicket.markup.html.form.FormComponent
wicket.markup.html.form.AbstractChoice
Abstract base class for all choice (html select) options.
| 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 | |
AbstractChoice(java.lang.String id)
Constructor. |
|
AbstractChoice(java.lang.String id,
IModel choices)
Constructor. |
|
AbstractChoice(java.lang.String id,
IModel choices,
IChoiceRenderer renderer)
Constructor. |
|
AbstractChoice(java.lang.String id,
IModel model,
IModel choices)
Constructor. |
|
AbstractChoice(java.lang.String id,
IModel model,
IModel choices,
IChoiceRenderer renderer)
Constructor. |
|
AbstractChoice(java.lang.String id,
IModel model,
java.util.List choices)
Constructor. |
|
AbstractChoice(java.lang.String id,
IModel model,
java.util.List choices,
IChoiceRenderer renderer)
Constructor. |
|
AbstractChoice(java.lang.String id,
java.util.List choices)
Constructor. |
|
AbstractChoice(java.lang.String id,
java.util.List choices,
IChoiceRenderer renderer)
Constructor. |
|
| Method Summary | |
protected void |
appendOptionHtml(java.lang.StringBuffer buffer,
java.lang.Object choice,
int index)
Generats and appends html for a single choice into the provided buffer |
protected void |
detachModel()
Detaches the model for this component if it is detachable. |
IChoiceRenderer |
getChoiceRenderer()
|
java.util.List |
getChoices()
|
protected java.lang.String |
getDefaultChoice(java.lang.Object selected)
|
protected abstract boolean |
isSelected(java.lang.Object object,
int index)
Gets whether the given value represents the current selection. |
protected void |
onComponentTagBody(MarkupStream markupStream,
ComponentTag openTag)
Handle the container's body. |
void |
setChoiceRenderer(IChoiceRenderer renderer)
Set the choice renderer to be used. |
void |
setChoices(java.util.List choices)
Sets the list of choices. |
protected boolean |
supportsPersistence()
|
abstract void |
updateModel()
Updates the model of this component from the request. |
| Methods inherited from class wicket.markup.html.form.FormComponent |
add, getForm, getInput, getInputName, getLabel, getModelValue, getValidationType, getValidators, getValue, inputAsInt, inputAsInt, inputAsIntArray, inputAsStringArray, invalid, isMultiPart, isPersistent, isValid, isValidated, onComponentTag, onInvalid, onModelChanged, onValid, setLabel, setModelValue, setPersistent, valid, validate |
| Methods inherited from class wicket.markup.html.WebMarkupContainer |
getMarkupType, onRender, renderHead |
| Methods inherited from class wicket.MarkupContainer |
add, autoAdd, contains, findMarkupStream, get, getAssociatedMarkupStream, getMarkupStream, internalAdd, internalBeginRequest, internalEndRequest, iterator, iterator, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, replace, setMarkupStream, setModel, size, toString, toString, visitChildren, visitChildren |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AbstractChoice(java.lang.String id)
id - See ComponentComponent.Component(String)
public AbstractChoice(java.lang.String id,
java.util.List choices)
id - See Componentchoices - The collection of choices in the dropdownComponent.Component(String)
public AbstractChoice(java.lang.String id,
java.util.List choices,
IChoiceRenderer renderer)
id - See Componentrenderer - The rendering enginechoices - The collection of choices in the dropdownComponent.Component(String)
public AbstractChoice(java.lang.String id,
IModel model,
java.util.List choices)
id - See Componentmodel - See Componentchoices - The collection of choices in the dropdownComponent.Component(String, IModel)
public AbstractChoice(java.lang.String id,
IModel model,
java.util.List choices,
IChoiceRenderer renderer)
id - See Componentmodel - See Componentchoices - The drop down choicesrenderer - The rendering engineComponent.Component(String, IModel)
public AbstractChoice(java.lang.String id,
IModel choices)
id - See Componentchoices - The collection of choices in the dropdownComponent.Component(String)
public AbstractChoice(java.lang.String id,
IModel choices,
IChoiceRenderer renderer)
id - See Componentrenderer - The rendering enginechoices - The collection of choices in the dropdownComponent.Component(String)
public AbstractChoice(java.lang.String id,
IModel model,
IModel choices)
id - See Componentmodel - See Componentchoices - The collection of choices in the dropdownComponent.Component(String, IModel)
public AbstractChoice(java.lang.String id,
IModel model,
IModel choices,
IChoiceRenderer renderer)
id - See Componentmodel - See Componentrenderer - The rendering enginechoices - The drop down choicesComponent.Component(String, IModel)| Method Detail |
public java.util.List getChoices()
public final void setChoices(java.util.List choices)
choices - the list of choicespublic final IChoiceRenderer getChoiceRenderer()
public final void setChoiceRenderer(IChoiceRenderer renderer)
renderer - protected void detachModel()
Component
detachModel in class ComponentComponent.detachModel()protected java.lang.String getDefaultChoice(java.lang.Object selected)
selected - The object that's currently selected
protected abstract boolean isSelected(java.lang.Object object,
int index)
object - The object to checkindex - The index in the choices collection this object is in.
protected void onComponentTagBody(MarkupStream markupStream,
ComponentTag openTag)
onComponentTagBody in class MarkupContainermarkupStream - The markup streamopenTag - The open tag for the bodyComponent.onComponentTagBody(MarkupStream, ComponentTag)
protected void appendOptionHtml(java.lang.StringBuffer buffer,
java.lang.Object choice,
int index)
buffer - string buffer that will have the generated html appendedchoice - choice objectindex - protected boolean supportsPersistence()
supportsPersistence in class FormComponentFormComponent.supportsPersistence()public abstract void updateModel()
updateModel in class FormComponentFormComponent.updateModel()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||