public static class TaggingPresetItems.Check extends TaggingPresetItems.KeyedItem
Modifier and Type | Field and Description |
---|---|
private QuadStateCheckBox |
check |
private boolean |
def |
boolean |
default_
ticked on/off (default is "off")
|
boolean |
disable_off
whether the off value is disabled in the dialog, i.e., only unset or yes are provided
|
private QuadStateCheckBox.State |
initialState |
String |
locale_text
The localized version of
TaggingPresetItems.KeyedItem.text . |
String |
value_off
the value to set when unchecked (default is "no")
|
String |
value_on
the value to set when checked (default is "yes")
|
key, match, text, text_context
Constructor and Description |
---|
TaggingPresetItems.Check() |
Modifier and Type | Method and 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,
Collection<OsmPrimitive> sel,
boolean presetInitiallyMatches)
Called by
TaggingPreset.createPanel(java.util.Collection<org.openstreetmap.josm.data.osm.OsmPrimitive>) during tagging preset panel creation. |
TaggingPresetItems.MatchType |
getDefaultMatch() |
Collection<String> |
getValues() |
(package private) boolean |
requestFocusInWindow() |
String |
toString() |
matches
initAutoCompletionField, initAutoCompletionField
public String locale_text
TaggingPresetItems.KeyedItem.text
.public boolean disable_off
public boolean default_
private QuadStateCheckBox check
private QuadStateCheckBox.State initialState
private boolean def
public TaggingPresetItems.Check()
public boolean addToPanel(JPanel p, Collection<OsmPrimitive> sel, boolean presetInitiallyMatches)
TaggingPresetItem
TaggingPreset.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.addToPanel
in class TaggingPresetItem
p
- The panel where components must be addedsel
- The related selected OSM primitivespresetInitiallyMatches
- Whether this TaggingPreset
already matched before applying,
i.e. whether the map feature already existed on the primitive.true
if this item adds semantic tagging elements, false
otherwise.public void addCommands(List<Tag> changedTags)
TaggingPresetItem
addCommands
in class TaggingPresetItem
changedTags
- The list of changed tags to modify if neededboolean requestFocusInWindow()
requestFocusInWindow
in class TaggingPresetItem
public TaggingPresetItems.MatchType getDefaultMatch()
getDefaultMatch
in class TaggingPresetItems.KeyedItem
public Collection<String> getValues()
getValues
in class TaggingPresetItems.KeyedItem
public String toString()
toString
in class TaggingPresetItems.KeyedItem