T
- the model object typepublic abstract class AbstractSlider<T>
extends org.apache.wicket.markup.html.form.FormComponentPanel<T>
implements com.googlecode.wicket.jquery.core.IJQueryWidget
Modifier and Type | Class and Description |
---|---|
static class |
AbstractSlider.SliderBehavior
Provides a jQuery slider
JQueryBehavior |
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 String |
labelId |
protected com.googlecode.wicket.jquery.core.Options |
options |
Constructor and Description |
---|
AbstractSlider(String id)
Constructor
|
AbstractSlider(String id,
org.apache.wicket.model.IModel<T> model)
Constructor
|
AbstractSlider(String id,
org.apache.wicket.model.IModel<T> model,
org.apache.wicket.markup.html.basic.Label label)
Constructor
|
Modifier and Type | Method and Description |
---|---|
abstract void |
convertInput() |
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. |
com.googlecode.wicket.jquery.core.JQueryBehavior |
newWidgetBehavior(String selector) |
void |
onBeforeRender(com.googlecode.wicket.jquery.core.JQueryBehavior behavior) |
void |
onConfigure(com.googlecode.wicket.jquery.core.JQueryBehavior behavior) |
protected void |
onInitialize() |
AbstractSlider<T> |
setLabelId(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. |
AbstractSlider<T> |
setMax(Integer max)
Sets the max value
|
AbstractSlider<T> |
setMin(Integer min)
Sets the min value
|
AbstractSlider<T> |
setOrientation(Orientation orientation)
Sets the
Orientation |
abstract AbstractSlider<T> |
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 setMin(Integer) and setMax(Integer) Dev note: this method is marked as abstract to make sure the developer that will add the validator to the right input(s) in onInitialize() |
AbstractSlider<T> |
setStep(Integer step)
Sets the step value
|
checkRequired, clearInput, newMarkupSourcingStrategy, onComponentTag
add, add, convertValue, error, getConvertedInput, getDefaultLabel, getDefaultLabel, getForm, getInput, getInputAsArray, getInputName, 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, setModelValue, setRequired, setType, shouldTrimInput, trim, updateAutoLabels, updateCollectionModel, updateModel, valid, validate, validateRequired, validateValidators, visitComponentsPostOrder, visitFormComponentsPostOrder
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession
add, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findChildComponent, findComponentToDequeue, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, getRegionMarkup, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onComponentTagBody, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, stream, streamChildren, toString, toString, visitChildren, visitChildren
add, addStateChange, beforeRender, canCallListener, canCallListenerAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, createConverter, 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, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isInitialized, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onConfigure, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderPart, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlForListener, urlForListener, visitParents, visitParents, warn, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
dequeue, getRegionMarkup, newDequeueContext
getDefaultModel, getDefaultModelObject, getModel, getModelObject, setDefaultModel, setDefaultModelObject, setModel, setModelObject
forEach, spliterator
protected com.googlecode.wicket.jquery.core.Options options
protected org.apache.wicket.markup.html.basic.Label label
protected String labelId
public AbstractSlider(String id)
id
- the markup idpublic AbstractSlider(String id, org.apache.wicket.model.IModel<T> model)
id
- the markup idmodel
- the IModel
public abstract void convertInput()
convertInput
in class org.apache.wicket.markup.html.form.FormComponent<T>
public abstract AbstractSlider<T> setRangeValidator(org.apache.wicket.validation.validator.RangeValidator<Integer> validator)
RangeValidator
so slider value(s) are valid only if comprised between minimum and maximum.setMin(Integer)
and setMax(Integer)
onInitialize()
validator
- the RangeValidator
public final AbstractSlider<T> setLabelId(String markupId)
markupId
- the label's markupIdprotected void onInitialize()
onInitialize
in class org.apache.wicket.MarkupContainer
public void onConfigure(com.googlecode.wicket.jquery.core.JQueryBehavior behavior)
onConfigure
in interface com.googlecode.wicket.jquery.core.IJQueryWidget
public void onBeforeRender(com.googlecode.wicket.jquery.core.JQueryBehavior behavior)
onBeforeRender
in interface com.googlecode.wicket.jquery.core.IJQueryWidget
public com.googlecode.wicket.jquery.core.JQueryBehavior newWidgetBehavior(String selector)
newWidgetBehavior
in interface com.googlecode.wicket.jquery.core.IJQueryWidget
protected org.apache.wicket.markup.html.panel.Fragment newInputFragment(String id)
Fragment
containing the inputFragment
containing input(s) when no input(s) has been specified in implementation constructors.id
- the markup idpublic AbstractSlider<T> setMin(Integer min)
min
- the min valuepublic AbstractSlider<T> setMax(Integer max)
max
- the max valuepublic AbstractSlider<T> setStep(Integer step)
step
- the step valuepublic AbstractSlider<T> setOrientation(Orientation orientation)
Orientation
orientation
- the Orientation
Copyright © 2018 7thWeb. All rights reserved.