Class Spinner

    • Constructor Detail

      • Spinner

        public Spinner()
    • Method Detail

      • configure

        protected void configure​(Properties p)
        This method can be overridden to customize the Spinner.
        The following options are used by the Spinner:
        • interval The amount to increment (default=1)
        • round The number of decimal points to which to round (default=0)
        • min The lowest allowed value, false for no min (default=false)
        • max The highest allowed value, false for no max (default=false)
        • prefix String to prepend when updating (default='')
        • suffix String to append when updating (default='')
        • data An array giving a list of items through which to iterate
        • onIncrement Function to call after incrementing
        • onDecrement Function to call after decrementing
        • afterUpdate Function to call after update of the value
        • onStop Function to call on click or mouseup (default=false)
        Parameters:
        p -
      • getSpinDownComponent

        protected Component getSpinDownComponent()
        Returns:
        the component the is used to spin down.
      • getSpinUpComponent

        protected Component getSpinUpComponent()
        Returns:
        the component that is used to spin up.