Class CheckGroup
- java.lang.Object
-
- org.openstreetmap.josm.gui.tagging.presets.TaggingPresetItem
-
- org.openstreetmap.josm.gui.tagging.presets.items.CheckGroup
-
public class CheckGroup extends TaggingPresetItem
A group ofCheck
s.- Since:
- 6114
-
-
Field Summary
Fields Modifier and Type Field Description List<Check>
checks
List of checkboxesshort
columns
Number of columns (positive integer)-
Fields inherited from class org.openstreetmap.josm.gui.tagging.presets.TaggingPresetItem
DISPLAY_KEYS_AS_HINT
-
-
Constructor Summary
Constructors Constructor Description CheckGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCommands(List<Tag> changedTags)
Adds the new tags to apply to selected OSM primitives when the preset holding this item is applied.boolean
addToPanel(JPanel p, TaggingPresetItemGuiSupport support)
Called byTaggingPreset.createPanel(java.util.Collection<org.openstreetmap.josm.data.osm.OsmPrimitive>)
during tagging preset panel creation.Boolean
matches(Map<String,String> tags)
Tests whether the tags match this item.String
toString()
-
Methods inherited from class org.openstreetmap.josm.gui.tagging.presets.TaggingPresetItem
fixPresetString, getAllForKeys, getLocaleText, getType, initAutoCompletionField, initAutoCompletionField, loadImageIcon, matches, parseInteger
-
-
-
-
Constructor Detail
-
CheckGroup
public CheckGroup()
-
-
Method Detail
-
addToPanel
public boolean addToPanel(JPanel p, TaggingPresetItemGuiSupport support)
Description copied from class:TaggingPresetItem
Called byTaggingPreset.createPanel(java.util.Collection<org.openstreetmap.josm.data.osm.OsmPrimitive>)
during tagging preset panel creation. All components defining this tagging preset item must be added to given panel.- Specified by:
addToPanel
in classTaggingPresetItem
- Parameters:
p
- The panel where components must be addedsupport
- supporting class for creating the GUI- Returns:
true
if this item adds semantic tagging elements,false
otherwise.
-
addCommands
public void addCommands(List<Tag> changedTags)
Description copied from class:TaggingPresetItem
Adds the new tags to apply to selected OSM primitives when the preset holding this item is applied.- Specified by:
addCommands
in classTaggingPresetItem
- Parameters:
changedTags
- The list of changed tags to modify if needed
-
matches
public Boolean matches(Map<String,String> tags)
Description copied from class:TaggingPresetItem
Tests whether the tags match this item. Note that for a match, at least one positive and no negative is required.- Overrides:
matches
in classTaggingPresetItem
- Parameters:
tags
- the tags of anOsmPrimitive
- Returns:
true
if matches (positive),null
if neutral,false
if mismatches (negative).
-
-