|
||||||||||
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.Check<T>
T
- The model object typepublic class Check<T>
Component representing a single checkbox choice in a org.apache.wicket.markup.html.form.CheckGroup. Must be attached to an <input type="checkbox" ... > 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
CheckGroup
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.wicket.Component |
---|
Component.ComponentModelChange, Component.EnabledChange, Component.IVisitor<T extends Component>, Component.VisibilityChange |
Field Summary |
---|
Fields inherited from class org.apache.wicket.Component |
---|
ENABLE, FLAG_CONFIGURED, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED6, FLAG_RESERVED7, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER |
Constructor Summary | |
---|---|
Check(String id)
|
|
Check(String id,
CheckGroup<T> group)
|
|
Check(String id,
IModel<T> model)
|
|
Check(String id,
IModel<T> model,
CheckGroup<T> group)
|
Method Summary | |
---|---|
protected CheckGroup<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. |
Check<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 |
---|
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, onAfterRenderChildren, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, renderNext, 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 Check(String id)
WebMarkupContainer.WebMarkupContainer(String)
public Check(String id, IModel<T> model)
id
- model
- WebMarkupContainer.WebMarkupContainer(String, IModel)
public Check(String id, CheckGroup<T> group)
id
- group
- parent CheckGroup
of this checkWebMarkupContainer.WebMarkupContainer(String)
public Check(String id, IModel<T> model, CheckGroup<T> group)
id
- model
- group
- parent CheckGroup
of this checkWebMarkupContainer.WebMarkupContainer(String, IModel)
Method Detail |
---|
public String getValue()
value
html attribute for the input
tag.
protected CheckGroup<T> getGroup()
protected void onComponentTag(ComponentTag tag)
Component
onComponentTag
in class Component
tag
- the abstraction representing html tag of this componentComponent.onComponentTag(ComponentTag)
public Check<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 |