Class PresetListPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.openstreetmap.josm.gui.dialogs.properties.PresetListPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class PresetListPanel extends JPanel
A list of matching presets for a set of tags.
See Also:
  • Constructor Details

    • PresetListPanel

      public PresetListPanel()
      Constructs a new PresetListPanel.
  • Method Details

    • updatePresets

      public void updatePresets(Collection<TaggingPresetType> types, Map<String,String> tags, TaggingPresetHandler presetHandler)
      Updates the preset list based on the tags and types, and associates an interaction with (matching) presets via presetHandler.
      Parameters:
      types - collection of tagging presets types
      tags - collection of tags
      presetHandler - tagging preset handler