Class Spinner<T extends Number>

    • Field Detail

      • options

        protected final com.googlecode.wicket.jquery.core.Options options
    • Constructor Detail

      • Spinner

        public Spinner​(String id)
        Constructor
        Parameters:
        id - the markup id
      • Spinner

        public Spinner​(String id,
                       com.googlecode.wicket.jquery.core.Options options)
        Constructor
        Parameters:
        id - the markup id
        options - the Options
      • Spinner

        public Spinner​(String id,
                       Class<T> type)
        Constructor
        Parameters:
        id - the markup id
        type - type for field validation
      • Spinner

        public Spinner​(String id,
                       com.googlecode.wicket.jquery.core.Options options,
                       Class<T> type)
        Constructor
        Parameters:
        id - the markup id
        options - the Options
        type - Type for field validation
      • Spinner

        public Spinner​(String id,
                       IModel<T> model)
        Constructor
        Parameters:
        id - the markup id
        model - the IModel
      • Spinner

        public Spinner​(String id,
                       IModel<T> model,
                       com.googlecode.wicket.jquery.core.Options options)
        Constructor
        Parameters:
        id - the markup id
        model - the IModel
        options - the Options
      • Spinner

        public Spinner​(String id,
                       IModel<T> model,
                       Class<T> type)
        Constructor
        Parameters:
        id - the markup id
        model - the IModel
        type - type for field validation
      • Spinner

        public Spinner​(String id,
                       IModel<T> model,
                       com.googlecode.wicket.jquery.core.Options options,
                       Class<T> type)
        Constructor
        Parameters:
        id - the markup id
        model - the IModel
        options - the Options
        type - Type for field validation
    • Method Detail

      • onConfigure

        public void onConfigure​(com.googlecode.wicket.jquery.core.JQueryBehavior behavior)
        Specified by:
        onConfigure in interface com.googlecode.wicket.jquery.core.IJQueryWidget
      • onBeforeRender

        public void onBeforeRender​(com.googlecode.wicket.jquery.core.JQueryBehavior behavior)
        Specified by:
        onBeforeRender in interface com.googlecode.wicket.jquery.core.IJQueryWidget
      • setCulture

        public Spinner<T> setCulture​(String culture)
        Sets the culture to use for parsing and formatting the value.
        More: https://github.com/jquery/globalize
        Specified by:
        setCulture in interface com.googlecode.wicket.jquery.core.IJQueryCultureWidget
        Parameters:
        culture - the culture to be used
        Returns:
        this, for chaining
      • getCulture

        public String getCulture()
        Specified by:
        getCulture in interface com.googlecode.wicket.jquery.core.IJQueryCultureWidget
      • setMin

        public Spinner<T> setMin​(Number min)
        Sets the min.
        Parameters:
        min - the min
        Returns:
        this, for chaining
      • setMin

        public 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
        Parameters:
        min - the min
        Returns:
        this, for chaining
      • setMax

        public Spinner<T> setMax​(Number max)
        Sets the max.
        Parameters:
        max - the max
        Returns:
        this, for chaining
      • setMax

        public 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
        Parameters:
        max - the max
        Returns:
        this, for chaining
      • setPage

        public Spinner<T> setPage​(Number steps)
        Sets the number of steps to take when paging via the pageUp/pageDown methods.
        Parameters:
        steps - the number of steps. Default is 10
        Returns:
        this, for chaining
      • setStep

        public Spinner<T> setStep​(Number size)
        Sets the size of the step to take when spinning via buttons or via the stepUp()/stepDown() methods. The element's step attribute is used if it exists and the option is not explicitly set.
        Parameters:
        size - the size of the step. Default is 1
        Returns:
        this, for chaining
      • newWidgetBehavior

        public JQueryUIBehavior newWidgetBehavior​(String selector)
        Specified by:
        newWidgetBehavior in interface com.googlecode.wicket.jquery.core.IJQueryWidget