|
||||||||||
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_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED6, FLAG_RESERVED7, FLAG_RESERVED8, PATH_SEPARATOR, RENDER |
Constructor Summary | |
---|---|
Check(java.lang.String id)
|
|
Check(java.lang.String id,
CheckGroup<T> group)
|
|
Check(java.lang.String id,
IModel<T> model)
|
|
Check(java.lang.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. |
java.lang.String |
getValue()
Form submission value used for this radio component. |
protected void |
onBeforeRender()
Called just before a component is rendered. |
protected void |
onComponentTag(ComponentTag tag)
Processes the component tag. |
Check<T> |
setLabel(IModel<java.lang.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, 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(java.lang.String id)
WebMarkupContainer.WebMarkupContainer(String)
public Check(java.lang.String id, IModel<T> model)
id
- model
- WebMarkupContainer.WebMarkupContainer(String, IModel)
public Check(java.lang.String id, CheckGroup<T> group)
id
- group
- parent CheckGroup
of this checkWebMarkupContainer.WebMarkupContainer(String)
public Check(java.lang.String id, IModel<T> model, CheckGroup<T> group)
id
- model
- group
- parent CheckGroup
of this checkWebMarkupContainer.WebMarkupContainer(String, IModel)
Method Detail |
---|
public java.lang.String getValue()
value
html attribute for the input
tag.
protected CheckGroup<T> getGroup()
protected void onBeforeRender()
NOTE: If you override this, you *must* call super.onBeforeRender() within
your implementation.
Because this method is responsible for cascading Component.onBeforeRender()
call to its
children it is strongly recommended that super call is made at the end of the override.
onBeforeRender
in class Component
Component.callOnBeforeRenderIfNotVisible()
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<java.lang.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 |