Class TimeSpinner

    • Field Detail

      • options

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

      • TimeSpinner

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

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

        public TimeSpinner​(String id,
                           String pattern)
        Constructor
        Parameters:
        id - the markup id
        pattern - a SimpleDateFormat pattern
      • TimeSpinner

        public TimeSpinner​(String id,
                           String pattern,
                           com.googlecode.wicket.jquery.core.Options options)
        Main constructor
        Parameters:
        id - the markup id
        pattern - a SimpleDateFormat pattern
        options - the Options
      • TimeSpinner

        public TimeSpinner​(String id,
                           Locale locale)
        Constructor, which use Locale and Query UI Globalization
        Parameters:
        id - the markup id
        locale - the Locale
      • TimeSpinner

        public TimeSpinner​(String id,
                           Locale locale,
                           com.googlecode.wicket.jquery.core.Options options)
        Constructor, which use Locale and Query UI Globalization
        Parameters:
        id - the markup id
        locale - the Locale
        options - the Options
      • TimeSpinner

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

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

        public TimeSpinner​(String id,
                           IModel<Date> model,
                           String pattern)
        Constructor
        Parameters:
        id - the markup id
        model - the IModel
        pattern - a SimpleDateFormat pattern
      • TimeSpinner

        public TimeSpinner​(String id,
                           IModel<Date> model,
                           String pattern,
                           com.googlecode.wicket.jquery.core.Options options)
        Main constructor
        Parameters:
        id - the markup id
        model - the IModel
        pattern - a SimpleDateFormat pattern.
        options - the Options
      • TimeSpinner

        public TimeSpinner​(String id,
                           IModel<Date> model,
                           Locale locale)
        Constructor, which use Locale and Query UI Globalization
        Parameters:
        id - the markup id
        model - the IModel
        locale - the Locale
      • TimeSpinner

        public TimeSpinner​(String id,
                           IModel<Date> model,
                           Locale locale,
                           com.googlecode.wicket.jquery.core.Options options)
        Constructor, which use Locale and jQuery UI Globalization
        Parameters:
        id - the markup id
        model - the IModel
        locale - the Locale
        options - the Options
    • 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
      • getModelObjectAsString

        public String getModelObjectAsString()
        Gets a string representation given the time pattern in use.
        Returns:
        the model object as string
      • setCulture

        public TimeSpinner 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
      • newWidgetBehavior

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