Modifier and Type | Field and Description |
---|---|
java.lang.String |
href
The link to display.
|
java.lang.String |
locale_href
The localized version of
href . |
java.lang.String |
wiki
The OSM wiki page to display.
|
locale_text, text, text_context
Constructor and Description |
---|
Link() |
Modifier and Type | Method and Description |
---|---|
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. |
protected java.lang.String |
fieldsToString() |
addCommands, initializeLocaleText, toString
fixPresetString, getLocaleText, getType, initAutoCompletionField, initAutoCompletionField, loadImageIcon, matches, matches, parseInteger
public java.lang.String wiki
public java.lang.String href
public java.lang.String locale_href
href
.public Link()
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.protected java.lang.String fieldsToString()
fieldsToString
in class TextItem