Class HistoryComboBoxModel

All Implemented Interfaces:
Serializable, Iterable<String>, ComboBoxModel<String>, ListModel<String>, MutableComboBoxModel<String>

A data model for the HistoryComboBox.

This model is an AutoCompComboBoxModel specialized in Strings. It offers convenience functions to serialize to and from the JOSM preferences.

Since:
18173
See Also:
  • Constructor Details

  • Method Details

    • addAllStrings

      public void addAllStrings(List<String> strings)
      Adds strings to the model.

      Strings are added only until the max. history size is reached.

      Parameters:
      strings - the strings to add
    • asStringList

      Gets all items in the history as a list of strings.
      Returns:
      the items in the history
    • prefs

      Gets a preference loader and saver for this model.
      Returns:
      the instance