public class Slider extends org.apache.wicket.markup.html.WebMarkupContainer implements IWiQueryPlugin
Creates a slider UI component from this WebMarkupContainer's
HTML markup.
| Modifier and Type | Class and Description |
|---|---|
static class |
Slider.Orientation
Enumeration for the orientation option
|
| Modifier and Type | Field and Description |
|---|---|
static String |
UI_HANDLE
Properties on the ui parameter (use it into callback functions) :
DOMElement - the current focused handle
|
static String |
UI_VALUE
Properties on the ui parameter (use it into callback functions) :
Integer - the current handle's value
|
| Constructor and Description |
|---|
Slider(String id,
Number min,
Number max)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
contribute(WiQueryResourceManager wiQueryResourceManager)
Declares resources (JavaScript and CSS files) to import.
|
JsStatement |
destroy()
Method to destroy the slider
This will return the element back to its pre-init state.
|
void |
destroy(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to destroy the slider within the ajax request
|
protected void |
detachModel() |
JsStatement |
disable()
Method to disable the slider
|
void |
disable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to disable the slider within the ajax request
|
JsStatement |
enable()
Method to enable the slider
|
void |
enable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to enable the slider within the ajax request
|
SliderAnimate |
getAnimate() |
Number |
getMax() |
Number |
getMin() |
protected Options |
getOptions()
Method retrieving the options of the component
|
Slider.Orientation |
getOrientation() |
SliderRange |
getRange() |
int |
getStep() |
int |
getValue() |
ICollectionItemOptions |
getValues() |
boolean |
isAnimate() |
boolean |
isDisabled() |
Slider |
setAnimate(boolean animate)
Whether to slide handle smoothly when user click outside handle on the bar.
|
Slider |
setAnimate(Number number)
Whether to slide handle smoothly when user click outside handle on the bar.
|
Slider |
setAnimate(SliderAnimate.AnimateEnum animate)
Whether to slide handle smoothly when user click outside handle on the bar.
|
Slider |
setChangeEvent(JsScopeUiEvent change)
This event is triggered on slide stop, or if the value is changed
programmatically (by the value method).
|
Slider |
setDisabled(boolean disabled)
Disables (true) or enables (false) the slider.
|
Slider |
setMax(Number max)
Sets the maximum value of the slider.
|
Slider |
setMin(Number min)
Sets the minimum value of the slider.
|
Slider |
setOrientation(Slider.Orientation orientation)
Normally you don't need to set this option because the plugin detects
the slider orientation automatically.
|
Slider |
setRange(SliderRange range)
If set to true, the slider will detect if you have two handles and create
a stylable range element between these two.
|
Slider |
setSlideEvent(JsScopeUiEvent slide)
This event is triggered on every mouse move during slide.
|
Slider |
setStartEvent(JsScopeUiEvent start)
Set's the callback when when the user starts sliding.
|
Slider |
setStep(int step)
Sets the size or amount of each interval or step the slider takes between
min and max.
|
Slider |
setStopEvent(JsScopeUiEvent stop)
Set's the callback when when the user stops sliding.
|
Slider |
setValue(int value)
Sets the current value of the slider
(Determines the value of the slider, if there's only one handle.
|
Slider |
setValues(ArrayItemOptions<IntegerItemOptions> values)
This option can be used to specify multiple handles.
|
JsStatement |
statement()
Returns the main
JsStatement used to create the plugin. |
Slider |
unsetAnimate()
Unsets the animate property.
|
void |
value(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget,
int value)
Method to set the current value of the slider within the ajax request
|
JsStatement |
value(int value)
Method to set the current value of the slider
|
JsStatement |
values()
Method to get the values of the slider.
|
void |
values(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to set the current values of the slider within the ajax request
|
void |
values(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget,
int index,
int value)
Method to set the current values of the slider within the ajax request
|
JsStatement |
values(int index,
int value)
Method to set the values of the slider.
|
JsStatement |
widget()
Method to returns the .ui-slider element
|
void |
widget(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to returns the .ui-slider element within the ajax request
|
getMarkupType, getWebPage, getWebRequestadd, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onAfterRenderChildren, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, renderNext, replace, setDefaultModel, setMarkupStream, size, swap, toString, toString, visitChildren, visitChildrenadd, addStateChange, afterRender, beforeRender, callOnBeforeRenderIfNotVisible, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachBehaviors, detachModels, determineVisibility, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviors, getBehaviors, getBehaviorsRawList, getClassRelativePath, getComponentBorder, getConverter, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, getFlag, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdImpl, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalAttach, internalDetach, internalOnAttach, internalOnDetach, internalOnModelChanged, isActionAuthorized, isAncestorOf, isAttached, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markAttached, markRendering, modelChanged, modelChanging, onAfterRender, onAttach, onBeforeRender, onBeginRequest, onComponentTag, onConfigure, onDetach, onEndRequest, onInitialize, onModelChanged, onModelChanging, onRemove, prepareForRender, prepareForRender, redirectToInterceptPage, remove, remove, render, render, renderComponent, renderComponent, renderComponentTag, rendered, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, setAuto, setComponentBorder, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setFlag, setIgnoreAttributeModifier, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setRedirect, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn, wrappublic static final String UI_HANDLE
public static final String UI_VALUE
protected void detachModel()
detachModel in class org.apache.wicket.Componentpublic void contribute(WiQueryResourceManager wiQueryResourceManager)
IWiQueryPlugincontribute in interface IWiQueryPluginwiQueryResourceManager - The WiQueryResourceManager instance managing this
component resources.public JsStatement statement()
IWiQueryPluginJsStatement used to create the plugin.statement in interface IWiQueryPluginJsStatement corresponding to this component.protected Options getOptions()
public Slider setAnimate(boolean animate)
animate - public Slider setAnimate(SliderAnimate.AnimateEnum animate)
animate - public Slider setAnimate(Number number)
number - A number bigger than 0.public Slider unsetAnimate()
public SliderAnimate getAnimate()
public boolean isAnimate()
public Slider setDisabled(boolean disabled)
disabled - public boolean isDisabled()
public Slider setMax(Number max)
max - public Number getMax()
public Slider setMin(Number min)
min - public Number getMin()
public Slider setOrientation(Slider.Orientation orientation)
orientation - public Slider.Orientation getOrientation()
public Slider setRange(SliderRange range)
range - public SliderRange getRange()
public Slider setStep(int step)
step - public int getStep()
public Slider setValue(int value)
value - public int getValue()
public Slider setValues(ArrayItemOptions<IntegerItemOptions> values)
values - public ICollectionItemOptions getValues()
public Slider setChangeEvent(JsScopeUiEvent change)
change - public Slider setStartEvent(JsScopeUiEvent start)
start - public Slider setSlideEvent(JsScopeUiEvent slide)
start - public Slider setStopEvent(JsScopeUiEvent stop)
stop - public JsStatement destroy()
public void destroy(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
ajaxRequestTarget - public JsStatement disable()
public void disable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
ajaxRequestTarget - public JsStatement enable()
public void enable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
ajaxRequestTarget - public JsStatement value(int value)
value - public void value(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget,
int value)
ajaxRequestTarget - value - public JsStatement values()
public void values(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
ajaxRequestTarget - public JsStatement values(int index, int value)
index - value - public void values(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget,
int index,
int value)
ajaxRequestTarget - index - value - public JsStatement widget()
public void widget(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
ajaxRequestTarget - Copyright © 2009-2012. All Rights Reserved.