|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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.AbstractCheckSelector org.apache.wicket.markup.html.form.CheckGroupSelector
public class CheckGroupSelector
Selects and deselects all Check components under the same CheckGroup as itself. Selection
toggling is accomplished by generating an onclick javascript event handler. This component must
be attached to markup of type <input type="checkbox"/>. Additionally, if
CheckGroupSelector(String)
constuctor is used the selector must be a descendant of the
CheckGroup it is meant to affect.
CheckGroup
,
Check
,
Serialized FormField 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 | |
---|---|
CheckGroupSelector(String id)
A Selector that will look for a CheckGroup in its parent hierarchy. |
|
CheckGroupSelector(String id,
CheckGroup<?> group)
A Selector that will work with the given group. |
Method Summary | |
---|---|
protected CharSequence |
getFindCheckboxesFunction()
Concrete subclasses must override this to provide a Javascript function that returns the IDs of all checkboxes that should be controlled by this selector. |
boolean |
isEnabled()
Gets whether this component is enabled. |
protected void |
onInitialize()
This method is meant to be used as an alternative to initialize components. |
void |
renderHead(IHeaderResponse response)
Render to the web response whatever the component wants to contribute to the head section. |
Methods inherited from class org.apache.wicket.markup.html.form.AbstractCheckSelector |
---|
onComponentTag, wantAutomaticUpdate |
Methods inherited from class org.apache.wicket.markup.html.form.LabeledWebMarkupContainer |
---|
getLabel, onDetach, setLabel |
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer |
---|
getWebPage, getWebRequest, getWebResponse, getWebSession |
Methods inherited from class org.apache.wicket.MarkupContainer |
---|
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, 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 CheckGroupSelector(String id)
CheckGroup
in its parent hierarchy.
id
- component idpublic CheckGroupSelector(String id, CheckGroup<?> group)
id
- component idgroup
- group to work withMethod Detail |
---|
public void renderHead(IHeaderResponse response)
Component
renderHead
in interface IHeaderContributor
renderHead
in class AbstractCheckSelector
response
- Response objectprotected void onInitialize()
Component
Page
thus providing the component with an atomic callback
when the component's environment is built out.
Overrides must call super#Component.onInitialize()
. Usually this should be the first thing an
override does, much like a constructor.
Parent containers are guaranteed to be initialized before their children
It is safe to use Component.getPage()
in this method
NOTE:The timing of this call is not precise, the contract is that it is called sometime
before Component.onBeforeRender()
.
onInitialize
in class Component
public boolean isEnabled()
Component
isEnabled
in class Component
protected CharSequence getFindCheckboxesFunction()
AbstractCheckSelector
getFindCheckboxesFunction
in class AbstractCheckSelector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |