|
||||||||||
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.apache.wicket.markup.html.form.LabeledWebMarkupContainer
org.apache.wicket.markup.html.form.FormComponent<T>
org.apache.wicket.markup.html.form.FormComponentPanel<T>
com.googlecode.wicket.jquery.ui.form.slider.AbstractSlider<T>
T
- the model object typepublic abstract class AbstractSlider<T>
Base class for implementing jQuery slider(s)
Nested Class Summary | |
---|---|
static class |
AbstractSlider.SliderBehavior
Provides a jQuery slider JQueryBehavior |
Nested classes/interfaces inherited from interface com.googlecode.wicket.jquery.core.IJQueryWidget |
---|
IJQueryWidget.JQueryWidget |
Field Summary | |
---|---|
protected org.apache.wicket.markup.html.basic.Label |
label
|
protected String |
labelId
|
protected Options |
options
|
Fields inherited from class org.apache.wicket.markup.html.form.FormComponent |
---|
FLAG_CONVERT_EMPTY_INPUT_STRING_TO_NULL, VALUE_SEPARATOR |
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 | |
---|---|
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 |
Method Summary | ||
---|---|---|
protected abstract void |
convertInput()
|
|
protected void |
init()
Initialization, should be called manually by overridden classes, in their constructors. Warning: Options should not be set before this method has been called. |
|
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. |
|
JQueryBehavior |
newWidgetBehavior(String selector)
|
|
protected void |
onConfigure(JQueryBehavior behavior)
Called immediately after the onConfigure method in a 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. |
|
|
setMax(Integer max)
Sets the max value |
|
|
setMin(Integer min)
Sets the min value |
|
|
setOrientation(Orientation orientation)
Sets the Orientation |
|
abstract
|
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 masked abstract to make sure the developer that will add the validator to the right input(s) in onInitialize() |
|
|
setStep(Integer step)
Sets the step value |
Methods inherited from class org.apache.wicket.markup.html.form.FormComponentPanel |
---|
checkRequired, newMarkupSourcingStrategy, onComponentTag |
Methods inherited from class org.apache.wicket.markup.html.form.FormComponent |
---|
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, onDetach, onDisabled, onInvalid, onValid, processChildren, processInput, remove, reportRequiredError, setConvertedInput, setLabel, setModel, setModelObject, setModelValue, setRequired, setType, shouldTrimInput, trim, updateCollectionModel, updateModel, valid, validate, validateRequired, validateValidators, visitComponentsPostOrder, visitFormComponentsPostOrder |
Methods inherited from class org.apache.wicket.markup.html.form.LabeledWebMarkupContainer |
---|
getLabel, setLabelInternal |
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, detachModel, 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, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onConfigure, onEvent, onModelChanged, onModelChanging, 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, urlFor, urlFor, visitParents, warn, wrap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Options options
protected org.apache.wicket.markup.html.basic.Label label
protected String labelId
Constructor Detail |
---|
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 AbstractSlider(String id, org.apache.wicket.model.IModel<T> 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 displayedMethod Detail |
---|
protected void init()
protected 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<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 RangeValidator
public AbstractSlider<T> setLabelId(String markupId)
markupId
- the label's markupId
protected void onInitialize()
onInitialize
in class org.apache.wicket.Component
protected void onConfigure(JQueryBehavior behavior)
Options
)
behavior
- the JQueryBehavior
public JQueryBehavior newWidgetBehavior(String selector)
newWidgetBehavior
in interface 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.
public <W extends AbstractSlider<T>> W setMin(Integer min)
W
- the widget typemin
-
public <W extends AbstractSlider<T>> W setMax(Integer max)
W
- the widget typemax
-
public <W extends AbstractSlider<T>> W setStep(Integer step)
W
- the widget typestep
-
public <W extends AbstractSlider<T>> W setOrientation(Orientation orientation)
Orientation
W
- the widget typeorientation
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |