public class ButtonGroup<T extends Serializable> extends org.apache.wicket.markup.html.form.FormComponentPanel<T> implements com.googlecode.wicket.jquery.core.IJQueryWidget, IButtonGroupListener
FormComponentPanel| Modifier and Type | Field and Description |
|---|---|
protected com.googlecode.wicket.jquery.core.Options |
options |
FLAG_CONVERT_EMPTY_INPUT_STRING_TO_NULL, VALUE_SEPARATORENABLE, FLAG_AFTER_RENDERING, FLAG_INITIALIZED, FLAG_PREPARED_FOR_RENDER, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RENDERING, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING| Constructor and Description |
|---|
ButtonGroup(String id,
org.apache.wicket.model.IModel<? extends List<T>> choices)
Constructor
|
ButtonGroup(String id,
org.apache.wicket.model.IModel<T> model,
org.apache.wicket.model.IModel<? extends List<T>> choices)
Constructor
|
ButtonGroup(String id,
org.apache.wicket.model.IModel<T> model,
List<T> choices)
Constructor
|
ButtonGroup(String id,
List<T> choices)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
convertInput() |
protected void |
detachModel() |
protected boolean |
isSelectEventEnabled()
Indicates whether the 'select' event is enabled.
If true, the onSelect(AjaxRequestTarget, int) event will be triggered.Note: this property is not part of the IButtonGroupListener as it is done usually, because it does not condition the ButtonGroupBehavior.OnSelectAjaxBehavior binding |
protected org.apache.wicket.Component |
newLabel(String id,
org.apache.wicket.model.IModel<T> model)
Gets a new
Component that acts as the button's label |
ButtonGroupBehavior |
newWidgetBehavior(String selector) |
void |
onBeforeRender(com.googlecode.wicket.jquery.core.JQueryBehavior behavior) |
void |
onConfigure(com.googlecode.wicket.jquery.core.JQueryBehavior behavior) |
protected void |
onInitialize() |
void |
onSelect(org.apache.wicket.ajax.AjaxRequestTarget target,
int index)
Triggered when a button is selected/clicked
|
protected void |
onSelect(org.apache.wicket.ajax.AjaxRequestTarget target,
T value)
Triggered when a new value is selected
|
checkRequired, newMarkupSourcingStrategy, onComponentTagadd, add, clearInput, convertValue, error, getConvertedInput, getDefaultLabel, getDefaultLabel, getForm, getInput, getInputAsArray, getInputName, getModel, getModelObject, getModelValue, getParameterValues, getRawInput, getType, getValidatorKeyPrefix, getValidators, getValue, hasRawInput, inputAsInt, inputAsInt, inputAsIntArray, inputChanged, internalOnModelChanged, invalid, isInputNullable, isMultiPart, isRequired, isValid, newValidatable, newValidationError, onDetach, onDisabled, onInvalid, onRequired, onValid, processChildren, processInput, remove, reportRequiredError, setConvertedInput, setLabel, setModel, setModelObject, setModelValue, setRequired, setType, shouldTrimInput, trim, updateAutoLabels, updateCollectionModel, updateModel, valid, validate, validateRequired, validateValidators, visitComponentsPostOrder, visitFormComponentsPostOrdergetWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSessionadd, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findChildComponent, findComponentToDequeue, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, getRegionMarkup, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onAfterRenderChildren, onComponentTagBody, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildrenadd, addStateChange, afterRender, beforeRender, canCallListenerInterface, canCallListenerInterfaceAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, createConverter, debug, detach, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalPrepareForRender, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onConfigure, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdequeue, getRegionMarkup, newDequeueContextforEach, spliteratorpublic ButtonGroup(String id, List<T> choices)
id - the markup idchoices - the list of choicespublic ButtonGroup(String id, org.apache.wicket.model.IModel<? extends List<T>> choices)
id - the markup idchoices - the list of choicespublic ButtonGroup(String id, org.apache.wicket.model.IModel<T> model, List<T> choices)
id - the markup idmodel - the IModelchoices - the list of choicesprotected void onInitialize()
onInitialize in class org.apache.wicket.MarkupContainerpublic void onConfigure(com.googlecode.wicket.jquery.core.JQueryBehavior behavior)
onConfigure in interface com.googlecode.wicket.jquery.core.IJQueryWidgetpublic void onBeforeRender(com.googlecode.wicket.jquery.core.JQueryBehavior behavior)
onBeforeRender in interface com.googlecode.wicket.jquery.core.IJQueryWidgetpublic final void onSelect(org.apache.wicket.ajax.AjaxRequestTarget target,
int index)
IButtonGroupListeneronSelect in interface IButtonGroupListenertarget - the AjaxRequestTargetindex - the tab index that triggered this eventprotected void onSelect(org.apache.wicket.ajax.AjaxRequestTarget target,
T value)
target - the AjaxRequestTargetvalue - the new selected valueisSelectEventEnabled()protected boolean isSelectEventEnabled()
onSelect(AjaxRequestTarget, int) event will be triggered.IButtonGroupListener as it is done usually, because it does not condition the ButtonGroupBehavior.OnSelectAjaxBehavior bindingpublic void convertInput()
convertInput in class org.apache.wicket.markup.html.form.FormComponent<T extends Serializable>protected void detachModel()
detachModel in class org.apache.wicket.Componentprotected org.apache.wicket.Component newLabel(String id, org.apache.wicket.model.IModel<T> model)
Component that acts as the button's labelid - the label markup idmodel - the label IModelComponentpublic ButtonGroupBehavior newWidgetBehavior(String selector)
newWidgetBehavior in interface com.googlecode.wicket.jquery.core.IJQueryWidgetCopyright © 2021 7thWeb. All rights reserved.