public class RangeSlider extends AbstractSlider<RangeValue>
FormComponentPanel
AbstractSlider.SliderBehavior
Modifier and Type | Field and Description |
---|---|
protected org.apache.wicket.markup.html.form.AbstractTextComponent<Integer> |
lower |
protected org.apache.wicket.markup.html.form.AbstractTextComponent<Integer> |
upper |
label, labelId, options
Constructor and Description |
---|
RangeSlider(String id)
Constructor
|
RangeSlider(String id,
org.apache.wicket.model.IModel<RangeValue> model)
Constructor
|
RangeSlider(String id,
org.apache.wicket.model.IModel<RangeValue> model,
org.apache.wicket.markup.html.basic.Label label)
Constructor
|
RangeSlider(String id,
org.apache.wicket.model.IModel<RangeValue> model,
org.apache.wicket.markup.html.form.TextField<Integer> lower,
org.apache.wicket.markup.html.form.TextField<Integer> upper)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
convertInput() |
protected String |
getLabelPattern()
Get the label pattern to be used to display the value.
|
protected org.apache.wicket.markup.html.panel.Fragment |
newInputFragment(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. |
void |
onConfigure(com.googlecode.wicket.jquery.core.JQueryBehavior behavior) |
protected void |
onInitialize() |
<W extends AbstractSlider<RangeValue>> |
setRangeValidator(org.apache.wicket.validation.validator.RangeValidator<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 AbstractSlider.setMin(Integer) and AbstractSlider.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 AbstractSlider.onInitialize() |
newWidgetBehavior, onBeforeRender, setLabelId, setMax, setMin, setOrientation, setStep
checkRequired, newMarkupSourcingStrategy, onComponentTag
add, 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, visitFormComponentsPostOrder
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession
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
add, 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, 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, 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, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected org.apache.wicket.markup.html.form.AbstractTextComponent<Integer> lower
protected org.apache.wicket.markup.html.form.AbstractTextComponent<Integer> upper
public RangeSlider(String id)
id
- the markup idpublic RangeSlider(String id, org.apache.wicket.model.IModel<RangeValue> model)
id
- the markup idmodel
- the IModel
public RangeSlider(String id, org.apache.wicket.model.IModel<RangeValue> model, org.apache.wicket.markup.html.basic.Label label)
id
- the markup idmodel
- the IModel
label
- Label
on which the current slide value will be displayedpublic RangeSlider(String id, org.apache.wicket.model.IModel<RangeValue> model, org.apache.wicket.markup.html.form.TextField<Integer> lower, org.apache.wicket.markup.html.form.TextField<Integer> upper)
id
- the markup idmodel
- the IModel
lower
- upper
- protected void convertInput()
convertInput
in class AbstractSlider<RangeValue>
public <W extends AbstractSlider<RangeValue>> W setRangeValidator(org.apache.wicket.validation.validator.RangeValidator<Integer> validator)
AbstractSlider
RangeValidator
so slider value(s) are valid only if comprised between minimum and maximum.AbstractSlider.setMin(Integer)
and AbstractSlider.setMax(Integer)
AbstractSlider.onInitialize()
setRangeValidator
in class AbstractSlider<RangeValue>
W
- the widget typevalidator
- the RangeValidator
protected String getLabelPattern()
protected void onInitialize()
onInitialize
in class AbstractSlider<RangeValue>
public void onConfigure(com.googlecode.wicket.jquery.core.JQueryBehavior behavior)
onConfigure
in interface com.googlecode.wicket.jquery.core.IJQueryWidget
onConfigure
in class AbstractSlider<RangeValue>
protected org.apache.wicket.markup.html.panel.Fragment newInputFragment(String id)
AbstractSlider
Fragment
containing the inputFragment
containing input(s) when no input(s) has been specified in implementation constructors.newInputFragment
in class AbstractSlider<RangeValue>
id
- the markup idCopyright © 2016 7thWeb. All rights reserved.