Interface ItemSpinnerBuilder<T>

All Superinterfaces:
ComponentBuilder<T,JSpinner,ItemSpinnerBuilder<T>>, SpinnerBuilder<T,ItemSpinnerBuilder<T>>

public interface ItemSpinnerBuilder<T> extends SpinnerBuilder<T,ItemSpinnerBuilder<T>>
A builder for JSpinner based on a list of Items.
  • Method Details

    • builder

      static <T> ItemSpinnerBuilder<T> builder(SpinnerListModel spinnerModel)
      Type Parameters:
      T - the value type
      Parameters:
      spinnerModel - the spinner model
      Returns:
      a builder for a JSpinner
    • builder

      static <T> ItemSpinnerBuilder<T> builder(SpinnerListModel spinnerModel, Value<T> linkedValue)
      Type Parameters:
      T - the value type
      Parameters:
      spinnerModel - the spinner model
      linkedValue - the value to link to the component
      Returns:
      a builder for a JSpinner