T - the model object typepublic abstract class AbstractSlider<T> extends org.apache.wicket.markup.html.form.FormComponentPanel<T> implements IJQueryWidget
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractSlider.SliderBehavior
Provides a jQuery slider
JQueryBehavior |
IJQueryWidget.JQueryWidget| Modifier and Type | Field and Description |
|---|---|
protected org.apache.wicket.markup.html.basic.Label |
label
the div on which the slider behavior will be applied to
|
protected java.lang.String |
labelId |
protected Options |
options |
| Constructor and Description |
|---|
AbstractSlider(java.lang.String id)
Constructor
|
AbstractSlider(java.lang.String id,
org.apache.wicket.model.IModel<T> model)
Constructor
|
AbstractSlider(java.lang.String id,
org.apache.wicket.model.IModel<T> model,
org.apache.wicket.markup.html.basic.Label label)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
convertInput() |
protected org.apache.wicket.markup.html.panel.Fragment |
newInputFragment(java.lang.String id)
Gets a new
Fragment containing the inputOverridden methods should provide a Fragment containing input(s) when no input(s) has been specified in implementation constructors. |
JQueryBehavior |
newWidgetBehavior(java.lang.String selector) |
void |
onBeforeRender(JQueryBehavior behavior) |
void |
onConfigure(JQueryBehavior behavior) |
protected void |
onInitialize() |
AbstractSlider<T> |
setLabelId(java.lang.String markupId)
Sets the label's markupId on which the current slide value will be displayed.
Warning: It cannot be set/changed once the Component has been initialized. |
<W extends AbstractSlider<T>> |
setMax(java.lang.Integer max)
Sets the max value
|
<W extends AbstractSlider<T>> |
setMin(java.lang.Integer min)
Sets the min value
|
<W extends AbstractSlider<T>> |
setOrientation(Orientation orientation)
Sets the
Orientation |
abstract <W extends AbstractSlider<T>> |
setRangeValidator(org.apache.wicket.validation.validator.RangeValidator<java.lang.Integer> validator)
Adds a
RangeValidator so slider value(s) are valid only if comprised between minimum and maximum.Warning: it does not define the minimum and maximum values the slider can slide on, but only valid ones. To define the minimum and maximum values the slider can slide on, use setMin(Integer) and setMax(Integer)Dev note: this method is masked abstract to make sure the developer that will add the validator to the right input(s) in onInitialize() |
<W extends AbstractSlider<T>> |
setStep(java.lang.Integer step)
Sets the step value
|
checkRequired, newMarkupSourcingStrategy, onComponentTagadd, add, clearInput, convertValue, error, getConvertedInput, getDefaultLabel, getDefaultLabel, getForm, getInput, getInputAsArray, getInputName, getModel, getModelObject, getModelValue, 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, visitFormComponentsPostOrdergetWebPage, getWebRequest, getWebResponse, getWebSessionadd, 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, visitChildrenadd, addStateChange, afterRender, beforeRender, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, debug, detach, detachModel, 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, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, 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, 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, wrapprotected Options options
protected org.apache.wicket.markup.html.basic.Label label
protected java.lang.String labelId
public AbstractSlider(java.lang.String id)
id - the markup idpublic AbstractSlider(java.lang.String id,
org.apache.wicket.model.IModel<T> model)
id - the markup idmodel - the IModelpublic AbstractSlider(java.lang.String id,
org.apache.wicket.model.IModel<T> model,
org.apache.wicket.markup.html.basic.Label label)
id - the markup idmodel - the IModellabel - Label on which the current slide value will be displayedprotected abstract void convertInput()
convertInput in class org.apache.wicket.markup.html.form.FormComponent<T>public abstract <W extends AbstractSlider<T>> W setRangeValidator(org.apache.wicket.validation.validator.RangeValidator<java.lang.Integer> validator)
RangeValidator so slider value(s) are valid only if comprised between minimum and maximum.setMin(Integer) and setMax(Integer)onInitialize()W - the widget typevalidator - the RangeValidatorpublic final AbstractSlider<T> setLabelId(java.lang.String markupId)
markupId - the label's markupIdprotected void onInitialize()
onInitialize in class org.apache.wicket.Componentpublic void onConfigure(JQueryBehavior behavior)
onConfigure in interface IJQueryWidgetpublic void onBeforeRender(JQueryBehavior behavior)
onBeforeRender in interface IJQueryWidgetpublic JQueryBehavior newWidgetBehavior(java.lang.String selector)
newWidgetBehavior in interface IJQueryWidgetprotected org.apache.wicket.markup.html.panel.Fragment newInputFragment(java.lang.String id)
Fragment containing the inputFragment containing input(s) when no input(s) has been specified in implementation constructors.id - the markup-idpublic <W extends AbstractSlider<T>> W setMin(java.lang.Integer min)
W - the widget typemin - public <W extends AbstractSlider<T>> W setMax(java.lang.Integer max)
W - the widget typemax - public <W extends AbstractSlider<T>> W setStep(java.lang.Integer step)
W - the widget typestep - public <W extends AbstractSlider<T>> W setOrientation(Orientation orientation)
OrientationW - the widget typeorientation - Copyright © 2014 7thWeb. All Rights Reserved.