Class Check
- java.lang.Object
-
- org.openstreetmap.josm.gui.tagging.presets.TaggingPresetItem
-
- org.openstreetmap.josm.gui.tagging.presets.items.TextItem
-
- org.openstreetmap.josm.gui.tagging.presets.items.KeyedItem
-
- org.openstreetmap.josm.gui.tagging.presets.items.Check
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.gui.tagging.presets.items.KeyedItem
KeyedItem.MatchType, KeyedItem.Usage
-
-
Field Summary
Fields Modifier and Type Field Description private QuadStateCheckBox
check
private Boolean
def
String
default_
"on" or "off" or unset (default is unset)boolean
disable_off
whether the off value is disabled in the dialog, i.e., only unset or yes are providedprivate QuadStateCheckBox.State
initialState
String
value_off
the value to set when unchecked (default is "no")String
value_on
the value to set when checked (default is "yes")-
Fields inherited from class org.openstreetmap.josm.gui.tagging.presets.items.KeyedItem
DIFFERENT, DIFFERENT_I18N, key, LAST_VALUES, match, PROP_FILL_DEFAULT
-
Fields inherited from class org.openstreetmap.josm.gui.tagging.presets.items.TextItem
icon, icon_size, locale_text, text, text_context
-
Fields inherited from class org.openstreetmap.josm.gui.tagging.presets.TaggingPresetItem
DISPLAY_KEYS_AS_HINT
-
-
Constructor Summary
Constructors Constructor Description Check()
-
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.KeyedItem.MatchType
getDefaultMatch()
Returns the default match.protected String
getValue()
Collection<String>
getValues()
Returns the list of values.String
toString()
-
Methods inherited from class org.openstreetmap.josm.gui.tagging.presets.items.KeyedItem
determineBooleanUsage, determineTextUsage, getKeyTooltipText, getPopupMenu, isKeyRequired, matches
-
Methods inherited from class org.openstreetmap.josm.gui.tagging.presets.items.TextItem
addIcon, fieldsToString, getIcon, initializeLocaleText
-
Methods inherited from class org.openstreetmap.josm.gui.tagging.presets.TaggingPresetItem
fixPresetString, getAllForKeys, getLocaleText, getType, initAutoCompletionField, initAutoCompletionField, loadImageIcon, matches, parseInteger
-
-
-
-
Field Detail
-
disable_off
public boolean disable_off
whether the off value is disabled in the dialog, i.e., only unset or yes are provided
-
check
private QuadStateCheckBox check
-
initialState
private QuadStateCheckBox.State initialState
-
-
Constructor Detail
-
Check
public Check()
-
-
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.- Overrides:
addCommands
in classTextItem
- Parameters:
changedTags
- The list of changed tags to modify if needed
-
getDefaultMatch
public KeyedItem.MatchType getDefaultMatch()
Description copied from class:KeyedItem
Returns the default match.- Specified by:
getDefaultMatch
in classKeyedItem
- Returns:
- the default match
-
getValues
public Collection<String> getValues()
Description copied from class:KeyedItem
Returns the list of values.
-
-