|
||||||||||
| 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.Radio<T>
T - The model object typepublic class Radio<T>
Component representing a single radio choice in a org.apache.wicket.markup.html.form.RadioGroup. Must be attached to an <input type="radio" ... > markup.
STATELESS NOTES: By default this component cannot be used inside a stateless form. If it is desirable to use this inside a stateless form then
getStatelessHint() and return true
RadioGroup,
Serialized Form| Field Summary |
|---|
| 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 | |
|---|---|
Radio(String id)
|
|
Radio(String id,
IModel<T> model)
|
|
Radio(String id,
IModel<T> model,
RadioGroup<T> group)
|
|
Radio(String id,
RadioGroup<T> group)
|
|
| Method Summary | |
|---|---|
protected RadioGroup<T> |
getGroup()
|
IModel<T> |
getModel()
Gets model |
T |
getModelObject()
Gets model object |
protected boolean |
getStatelessHint()
Returns whether the component can be stateless. |
String |
getValue()
Form submission value used for this radio component. |
protected void |
onComponentTag(ComponentTag tag)
Processes the component tag. |
Radio<T> |
setLabel(IModel<String> labelModel)
The value will be made available to the validator property by means of ${label}. |
void |
setModel(IModel<T> model)
Sets model |
void |
setModelObject(T object)
Sets model object |
| Methods inherited from class org.apache.wicket.markup.html.form.LabeledWebMarkupContainer |
|---|
getLabel, onDetach, setLabelInternal |
| Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer |
|---|
getWebPage, getWebRequest |
| Methods inherited from class org.apache.wicket.MarkupContainer |
|---|
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, hasAssociatedMarkup, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onMarkupAttached, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Radio(String id)
WebMarkupContainer.WebMarkupContainer(String)
public Radio(String id,
IModel<T> model)
id - model - WebMarkupContainer.WebMarkupContainer(String, IModel)
public Radio(String id,
RadioGroup<T> group)
id - group - parent RadioGroupWebMarkupContainer.WebMarkupContainer(String)
public Radio(String id,
IModel<T> model,
RadioGroup<T> group)
id - model - group - parent RadioGroupWebMarkupContainer.WebMarkupContainer(String, IModel)| Method Detail |
|---|
public String getValue()
value html attribute for the input tag.
protected RadioGroup<T> getGroup()
protected void onComponentTag(ComponentTag tag)
Component
onComponentTag in class Componenttag - the abstraction representing html tag of this componentComponent.onComponentTag(ComponentTag)public Radio<T> setLabel(IModel<String> labelModel)
labelModel -
public final IModel<T> getModel()
public final void setModel(IModel<T> model)
model - public final T getModelObject()
public final void setModelObject(T object)
object - protected boolean getStatelessHint()
getStatelessHint in class Component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||