Class JosmComboBoxModel.Preferences

    • Constructor Detail

    • Method Detail

      • 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

        public List<StringasStringList()
        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.