Class JosmComboBoxModel.Preferences

java.lang.Object
org.openstreetmap.josm.gui.widgets.JosmComboBoxModel.Preferences
Enclosing class:
JosmComboBoxModel<E>

public final class JosmComboBoxModel.Preferences extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • load

      public void load(String key)
      Loads the model from the JOSM preferences.
      Parameters:
      key - The preferences key
    • load

      public void load(String key, List<String> defaults)
      Loads the model from the JOSM preferences.
      Parameters:
      key - The preferences key
      defaults - A list of default values.
    • load

      public void load(ListProperty prop)
      Loads the model from the JOSM preferences.
      Parameters:
      prop - The property holding the strings.
    • asStringList

      Returns the model elements as list of strings.
      Returns:
      a list of strings
    • save

      public void save(String key)
      Saves the model to the JOSM preferences.
      Parameters:
      key - The preferences key
    • save

      public void save(ListProperty prop)
      Saves the model to the JOSM preferences.
      Parameters:
      prop - The property to write to.