Class ListComboBoxModel<E>

    • Field Detail

      • UPDATE

        public static final String UPDATE
        A key used to notify the model that the backing List has changed.
        See Also:
        Constant Field Values
      • data

        protected final List<E> data
        A reference to the list backing this model.

        This model does not make a copy of the list, so any changes in the list without synchronizing the model may have drastic effects.

      • selected

        protected E selected
        The currently selected item.
    • Constructor Detail

      • ListComboBoxModel

        public ListComboBoxModel​(List<E> list)
        Creates a ListComboBoxModel backed by the supplied list.
        Parameters:
        list - the list backing this model
        Throws:
        NullPointerException - if list is null