|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.Component
org.apache.wicket.MarkupContainer
org.apache.wicket.markup.html.WebMarkupContainer
org.odlabs.wiquery.ui.slider.Slider
public class Slider
$Id: Slider.java
Creates a slider UI component from this WebMarkupContainer
's HTML markup.
Nested Class Summary | |
---|---|
static class |
Slider.Orientation
Enumeration for the orientation option |
Field Summary | |
---|---|
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 |
static String |
UI_VALUES
Properties on the ui parameter (use it into callback functions) : Integers - all handlers' values |
Fields inherited from class org.apache.wicket.Component |
---|
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER |
Constructor Summary | |
---|---|
Slider(String id,
Number min,
Number max)
Constructor |
Method Summary | |
---|---|
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()
|
void |
renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
|
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. |
Slider |
setValues(Integer value1,
Integer value2)
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 |
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer |
---|
getWebPage, getWebRequest |
Methods inherited from class org.apache.wicket.MarkupContainer |
---|
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, hasAssociatedMarkup, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onMarkupAttached, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren |
Methods inherited from class org.apache.wicket.Component |
---|
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, 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, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onDetach, onEvent, onInitialize, onModelChanged, onModelChanging, 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, urlFor, urlFor, visitParents, warn, wrap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String UI_HANDLE
public static final String UI_VALUE
public static final String UI_VALUES
Constructor Detail |
---|
public Slider(String id, Number min, Number max)
id
- Markup identifiantmin
- Minimum valuemax
- Maximum valueMethod Detail |
---|
protected void detachModel()
detachModel
in class org.apache.wicket.Component
public void renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
renderHead
in interface org.apache.wicket.markup.html.IHeaderContributor
renderHead
in class org.apache.wicket.Component
public JsStatement statement()
IWiQueryPlugin
JsStatement
used to create the plugin.
statement
in interface IWiQueryPlugin
JsStatement
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 Slider setValues(Integer value1, Integer value2)
value1
- value2
-
public ICollectionItemOptions getValues()
public Slider setChangeEvent(JsScopeUiEvent change)
change
-
public Slider setStartEvent(JsScopeUiEvent start)
start
-
public Slider setSlideEvent(JsScopeUiEvent slide)
slide
-
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
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |