T - the type of the model objectpublic class Spinner<T extends java.lang.Number> extends org.apache.wicket.markup.html.form.TextField<T> implements IJQueryCultureWidget
TextField| Modifier and Type | Class and Description |
|---|---|
static class |
Spinner.SpinnerBehavior
Provides a jQuery spinner
JQueryBehavior |
org.apache.wicket.markup.html.form.AbstractTextComponent.ITextFormatProviderIJQueryWidget.JQueryWidget| Constructor and Description |
|---|
Spinner(java.lang.String id)
Constructor
|
Spinner(java.lang.String id,
java.lang.Class<T> type)
Constructor
|
Spinner(java.lang.String id,
org.apache.wicket.model.IModel<T> model)
Constructor
|
Spinner(java.lang.String id,
org.apache.wicket.model.IModel<T> model,
java.lang.Class<T> type)
Constructor
|
Spinner(java.lang.String id,
org.apache.wicket.model.IModel<T> model,
Options options)
Constructor
|
Spinner(java.lang.String id,
org.apache.wicket.model.IModel<T> model,
Options options,
java.lang.Class<T> type)
Constructor
|
Spinner(java.lang.String id,
Options options)
Constructor
|
Spinner(java.lang.String id,
Options options,
java.lang.Class<T> type)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCulture() |
Spinner.SpinnerBehavior |
newWidgetBehavior(java.lang.String selector) |
void |
onBeforeRender(JQueryBehavior behavior) |
protected void |
onConfigure() |
void |
onConfigure(JQueryBehavior behavior) |
protected void |
onInitialize() |
Spinner<T> |
setCulture(java.lang.String culture)
Sets the culture to use for parsing and formatting the value.
More: https://github.com/jquery/globalize |
Spinner<T> |
setMax(java.lang.Number max)
Sets the max.
|
Spinner<T> |
setMax(java.lang.String max)
Sets the max.
If Globalize is included, the max option canbe passed as a string which will be parsed based on the numberFormat and culture options; otherwise it will fall back to the native parseFloat() method. More: https://github.com/jquery/globalize |
Spinner<T> |
setMin(java.lang.Number min)
Sets the min.
|
Spinner<T> |
setMin(java.lang.String min)
Sets the min.
If Globalize is included, the min option can be passed as a string which will be parsed based on the numberFormat and culture options; otherwise it will fall back to the native parseFloat() method. More: https://github.com/jquery/globalize |
Spinner<T> |
setPage(java.lang.Number steps)
Sets the number of steps to take when paging via the pageUp/pageDown methods.
|
Spinner<T> |
setStep(java.lang.Number size)
Sets the size of the step to take when spinning via buttons or via the stepUp()/stepDown() methods.
|
getInputType, onComponentTagconvertInput, getConvertEmptyInputStringToNull, isInputNullable, onBeforeRender, setConvertEmptyInputStringToNulladd, add, checkRequired, 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, 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, visitFormComponentsPostOrdergetWebPage, getWebRequest, getWebResponse, getWebSessionadd, 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, visitChildrenadd, 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, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, 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, wrappublic Spinner(java.lang.String id)
id - the markup idpublic Spinner(java.lang.String id,
Options options)
id - the markup idoptions - Optionspublic Spinner(java.lang.String id,
java.lang.Class<T> type)
id - the markup idtype - type for field validationpublic Spinner(java.lang.String id,
Options options,
java.lang.Class<T> type)
id - the markup idoptions - Optionstype - Type for field validationpublic Spinner(java.lang.String id,
org.apache.wicket.model.IModel<T> model)
id - the markup idmodel - the IModelpublic Spinner(java.lang.String id,
org.apache.wicket.model.IModel<T> model,
Options options)
id - the markup idmodel - the IModeloptions - Optionspublic Spinner(java.lang.String id,
org.apache.wicket.model.IModel<T> model,
java.lang.Class<T> type)
id - the markup idmodel - the IModeltype - type for field validationprotected void onInitialize()
onInitialize in class org.apache.wicket.Componentprotected void onConfigure()
onConfigure in class org.apache.wicket.Componentpublic void onConfigure(JQueryBehavior behavior)
onConfigure in interface IJQueryWidgetpublic void onBeforeRender(JQueryBehavior behavior)
onBeforeRender in interface IJQueryWidgetpublic Spinner<T> setCulture(java.lang.String culture)
setCulture in interface IJQueryCultureWidgetculture - the culture to be usedpublic java.lang.String getCulture()
getCulture in interface IJQueryCultureWidgetpublic Spinner<T> setMin(java.lang.Number min)
min - the minpublic Spinner<T> setMin(java.lang.String min)
min - the minpublic Spinner<T> setMax(java.lang.Number max)
max - the maxpublic Spinner<T> setMax(java.lang.String max)
max - the maxpublic Spinner<T> setPage(java.lang.Number steps)
steps - the number of steps. Default is 10public Spinner<T> setStep(java.lang.Number size)
size - the size of the step. Default is 1public Spinner.SpinnerBehavior newWidgetBehavior(java.lang.String selector)
newWidgetBehavior in interface IJQueryWidgetCopyright © 2014 7thWeb. All Rights Reserved.