KeyedItem.MatchType, KeyedItem.Usage
Modifier and Type | Field and Description |
---|---|
private QuadStateCheckBox |
check |
private java.lang.Boolean |
def |
java.lang.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 provided
|
private QuadStateCheckBox.State |
initialState |
java.lang.String |
locale_text
The localized version of
KeyedItem.text . |
java.lang.String |
value_off
the value to set when unchecked (default is "no")
|
java.lang.String |
value_on
the value to set when checked (default is "yes")
|
DIFFERENT, key, LAST_VALUES, match, PROP_FILL_DEFAULT, text, text_context
Constructor and Description |
---|
Check() |
Modifier and Type | Method and Description |
---|---|
void |
addCommands(java.util.List<Tag> changedTags)
Adds the new tags to apply to selected OSM primitives when the preset holding this item is applied.
|
boolean |
addToPanel(javax.swing.JPanel p,
java.util.Collection<OsmPrimitive> sel,
boolean presetInitiallyMatches)
Called by
TaggingPreset.createPanel(java.util.Collection<org.openstreetmap.josm.data.osm.OsmPrimitive>) during tagging preset panel creation. |
KeyedItem.MatchType |
getDefaultMatch()
Returns the default match.
|
java.util.Collection<java.lang.String> |
getValues()
Returns the list of values.
|
java.lang.String |
toString() |
determineBooleanUsage, determineTextUsage, getKeyTooltipText, isKeyRequired, matches
fixPresetString, getLocaleText, getType, initAutoCompletionField, initAutoCompletionField, loadImageIcon, matches, parseInteger
public java.lang.String locale_text
KeyedItem.text
.public java.lang.String value_on
public java.lang.String value_off
public boolean disable_off
public java.lang.String default_
private QuadStateCheckBox check
private QuadStateCheckBox.State initialState
private java.lang.Boolean def
public Check()
public boolean addToPanel(javax.swing.JPanel p, java.util.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(java.util.List<Tag> changedTags)
TaggingPresetItem
addCommands
in class TaggingPresetItem
changedTags
- The list of changed tags to modify if neededpublic KeyedItem.MatchType getDefaultMatch()
KeyedItem
getDefaultMatch
in class KeyedItem
public java.util.Collection<java.lang.String> getValues()
KeyedItem