public class TaggingPresetMenu extends TaggingPreset
| Modifier and Type | Field and Description |
|---|---|
JMenu |
menu |
data, DIALOG_ANSWER_APPLY, DIALOG_ANSWER_CANCEL, DIALOG_ANSWER_NEW_RELATION, group, locale_name, name, name_context, nameTemplate, nameTemplateFilter, OPTIONAL_TOOLTIP_TEXT, roles, typeschangeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
TaggingPresetMenu() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
private Component |
copyMenuComponent(Component menuComponent) |
void |
setDisplayName()
Change the display name without changing the toolbar value.
|
void |
sortMenu()
Sorts the menu items using the translated item text
|
static void |
sortMenu(JMenu menu)
Sorts the menu items using the translated item text
|
activeLayerChange, createCommand, createPanel, createSelection, getChangedTags, getIcon, getLocaleName, getMatchingPresets, getName, getRawName, isShowable, layerAdded, layerRemoved, matches, setIcon, setName_template_filter, setName_template, setType, showDialog, suggestRoleForOsmPrimitive, toString, typeMatches, updateEnabledStateaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic TaggingPresetMenu()
public void setDisplayName()
TaggingPresetsetDisplayName in class TaggingPresetprivate Component copyMenuComponent(Component menuComponent)
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListeneractionPerformed in class TaggingPresetpublic void sortMenu()