Interface SpinnerBuilder<T,B extends SpinnerBuilder<T,B>>

All Superinterfaces:
ComponentBuilder<T,JSpinner,B>
All Known Subinterfaces:
ItemSpinnerBuilder<T>, ListSpinnerBuilder<T>, NumberSpinnerBuilder<T>

public interface SpinnerBuilder<T,B extends SpinnerBuilder<T,B>> extends ComponentBuilder<T,JSpinner,B>
A builder for JSpinner.
  • Method Details

    • editable

      B editable(boolean editable)
      Parameters:
      editable - false if the spinner field should not be editable
      Returns:
      this builder instance
    • columns

      B columns(int columns)
      Parameters:
      columns - the number of colums in the spinner text component
      Returns:
      this builder instance
    • mouseWheelScrolling

      B mouseWheelScrolling(boolean mouseWheelScrolling)
      Enable mouse wheel scrolling on the spinner
      Parameters:
      mouseWheelScrolling - true if mouse wheel scrolling should be enabled
      Returns:
      this builder instance
    • mouseWheelScrollingReversed

      B mouseWheelScrollingReversed(boolean mouseWheelScrollingReversed)
      Enable reversed mouse wheel scrolling on the spinner
      Parameters:
      mouseWheelScrollingReversed - if true then up/away decreases the value and down/towards increases it.
      Returns:
      this builder instance
    • horizontalAlignment

      B horizontalAlignment(int horizontalAlignment)
      Parameters:
      horizontalAlignment - the horizontal text alignment
      Returns:
      this builder instance