T
- the type of the model objectpublic class Spinner<T extends Number>
extends org.apache.wicket.markup.html.form.TextField<T>
implements com.googlecode.wicket.jquery.core.IJQueryCultureWidget
TextField
Constructor and Description |
---|
Spinner(String id)
Constructor
|
Spinner(String id,
Class<T> type)
Constructor
|
Spinner(String id,
org.apache.wicket.model.IModel<T> model)
Constructor
|
Spinner(String id,
org.apache.wicket.model.IModel<T> model,
Class<T> type)
Constructor
|
Spinner(String id,
org.apache.wicket.model.IModel<T> model,
com.googlecode.wicket.jquery.core.Options options)
Constructor
|
Spinner(String id,
org.apache.wicket.model.IModel<T> model,
com.googlecode.wicket.jquery.core.Options options,
Class<T> type)
Constructor
|
Spinner(String id,
com.googlecode.wicket.jquery.core.Options options)
Constructor
|
Spinner(String id,
com.googlecode.wicket.jquery.core.Options options,
Class<T> type)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getCulture() |
JQueryUIBehavior |
newWidgetBehavior(String selector) |
void |
onBeforeRender(com.googlecode.wicket.jquery.core.JQueryBehavior behavior) |
protected void |
onConfigure() |
void |
onConfigure(com.googlecode.wicket.jquery.core.JQueryBehavior behavior) |
protected void |
onInitialize() |
Spinner<T> |
setCulture(String culture)
Sets the culture to use for parsing and formatting the value.
More: https://github.com/jquery/globalize |
Spinner<T> |
setMax(Number max)
Sets the max.
|
Spinner<T> |
setMax(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(Number min)
Sets the min.
|
Spinner<T> |
setMin(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(Number steps)
Sets the number of steps to take when paging via the pageUp/pageDown methods.
|
Spinner<T> |
setStep(Number size)
Sets the size of the step to take when spinning via buttons or via the stepUp()/stepDown() methods.
|
getInputType, onComponentTag
convertInput, getConvertEmptyInputStringToNull, isInputNullable, onBeforeRender, setConvertEmptyInputStringToNull
add, 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, visitFormComponentsPostOrder
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession
add, 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, visitChildren
add, 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, isRendering, 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, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public Spinner(String id)
id
- the markup idpublic Spinner(String id, com.googlecode.wicket.jquery.core.Options options)
id
- the markup idoptions
- the Options
public Spinner(String id, Class<T> type)
id
- the markup idtype
- type for field validationpublic Spinner(String id, com.googlecode.wicket.jquery.core.Options options, Class<T> type)
id
- the markup idoptions
- the Options
type
- Type for field validationpublic Spinner(String id, org.apache.wicket.model.IModel<T> model)
id
- the markup idmodel
- the IModel
public Spinner(String id, org.apache.wicket.model.IModel<T> model, com.googlecode.wicket.jquery.core.Options options)
id
- the markup idmodel
- the IModel
options
- the Options
public Spinner(String id, org.apache.wicket.model.IModel<T> model, Class<T> type)
id
- the markup idmodel
- the IModel
type
- type for field validationprotected void onInitialize()
onInitialize
in class org.apache.wicket.Component
protected void onConfigure()
onConfigure
in class org.apache.wicket.Component
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 Spinner<T> setCulture(String culture)
setCulture
in interface com.googlecode.wicket.jquery.core.IJQueryCultureWidget
culture
- the culture to be usedpublic String getCulture()
getCulture
in interface com.googlecode.wicket.jquery.core.IJQueryCultureWidget
public Spinner<T> setMin(Number min)
min
- the minpublic Spinner<T> setMin(String min)
min
- the minpublic Spinner<T> setMax(Number max)
max
- the maxpublic Spinner<T> setMax(String max)
max
- the maxpublic Spinner<T> setPage(Number steps)
steps
- the number of steps. Default is 10public Spinner<T> setStep(Number size)
size
- the size of the step. Default is 1public JQueryUIBehavior newWidgetBehavior(String selector)
newWidgetBehavior
in interface com.googlecode.wicket.jquery.core.IJQueryWidget
Copyright © 2016 7thWeb. All rights reserved.