public class TaggingPresetMenu extends TaggingPreset
Modifier and Type | Class and Description |
---|---|
private static class |
TaggingPresetMenu.PresetTextComparator |
TaggingPreset.ToolbarButtonAction
Modifier and Type | Field and Description |
---|---|
JMenu |
menu |
data, DIALOG_ANSWER_APPLY, DIALOG_ANSWER_CANCEL, DIALOG_ANSWER_NEW_RELATION, group, iconName, locale_name, name, name_context, nameTemplate, nameTemplateFilter, OPTIONAL_TOOLTIP_TEXT, PRESET_ICON_ERROR_MSG_PREFIX, preset_name_label, roles, types
changeSupport, enabled
ACCELERATOR_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 static Component |
copyMenuComponent(Component menuComponent) |
boolean |
equals(Object o)
TaggingPresetMenu are considered equivalent if (and only if) their TaggingPreset.getRawName() match. |
int |
hashCode() |
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, evaluate, getChangedTags, getIcon, getLocaleName, getName, getRawName, getToolbarString, isShowable, layerAdded, layerRemoved, matches, setIcon, setName_template_filter, setName_template, setType, showDialog, suggestRoleForOsmPrimitive, toString, typeMatches, updateEnabledState
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public TaggingPresetMenu()
public boolean equals(Object o)
TaggingPresetMenu
are considered equivalent if (and only if) their TaggingPreset.getRawName()
match.public void setDisplayName()
TaggingPreset
setDisplayName
in class TaggingPreset
private static Component copyMenuComponent(Component menuComponent)
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
actionPerformed
in class TaggingPreset
public void sortMenu()