Interface ItemComboBoxBuilder<T>

    • Method Detail

      • nullable

        ItemComboBoxBuilder<T> nullable​(boolean nullable)
        Parameters:
        nullable - true if a null value should be added to the model if missing
        Returns:
        this builder instance
      • sorted

        ItemComboBoxBuilder<T> sorted​(boolean sorted)
        Sorts the contents by caption
        Parameters:
        sorted - if true then the items will be sorted by caption
        Returns:
        this builder instance
      • sortComparator

        ItemComboBoxBuilder<T> sortComparator​(Comparator<Item<T>> sortComparator)
        Parameters:
        sortComparator - if specified the combo box contents are sorted using this comparator
        Returns:
        this builder instance
      • mouseWheelScrolling

        ItemComboBoxBuilder<T> mouseWheelScrolling​(boolean mouseWheelScrolling)
        Enable mouse wheel scrolling on the combo box
        Parameters:
        mouseWheelScrolling - true if mouse wheel scrolling should be enabled
        Returns:
        this builder instance
      • mouseWheelScrollingWithWrapAround

        ItemComboBoxBuilder<T> mouseWheelScrollingWithWrapAround​(boolean mouseWheelScrollingWithWrapAround)
        Enable mouse wheel scrolling on the combo box, with wrap around
        Parameters:
        mouseWheelScrollingWithWrapAround - true if mouse wheel scrolling with wrap around should be enabled
        Returns:
        this builder instance
      • maximumRowCount

        ItemComboBoxBuilder<T> maximumRowCount​(int maximumRowCount)
        Parameters:
        maximumRowCount - the maximum row count
        Returns:
        this builder instance
      • popupWidth

        ItemComboBoxBuilder<T> popupWidth​(int popupWidth)
        Only used for the system and cross-platform Look and Feels.
        Parameters:
        popupWidth - a fixed popup width
        Returns:
        this builder instance
      • builder

        static <T> ItemComboBoxBuilder<T> builder​(ItemComboBoxModel<T> comboBoxModel)
        Type Parameters:
        T - the value type
        Parameters:
        comboBoxModel - the combo box model
        Returns:
        a builder for a component
      • builder

        static <T> ItemComboBoxBuilder<T> builder​(ItemComboBoxModel<T> comboBoxModel,
                                                  Value<T> linkedValue)
        Type Parameters:
        T - the value type
        Parameters:
        comboBoxModel - the combo box model
        linkedValue - the value to link to the component
        Returns:
        a builder for a component
      • builder

        static <T> ItemComboBoxBuilder<T> builder​(List<Item<T>> values)
        Type Parameters:
        T - the value type
        Parameters:
        values - the values
        Returns:
        a builder for a component
      • builder

        static <T> ItemComboBoxBuilder<T> builder​(List<Item<T>> values,
                                                  Value<T> linkedValue)
        Type Parameters:
        T - the value type
        Parameters:
        values - the values
        linkedValue - the value to link to the component
        Returns:
        a builder for a component