public class TaggingPresetMenu extends TaggingPreset
| Modifier and Type | Class and Description |
|---|---|
private static class |
TaggingPresetMenu.PresetTextComparator |
TaggingPreset.ToolbarButtonAction| Modifier and Type | Field and Description |
|---|---|
javax.swing.JMenu |
menu |
data, DIALOG_ANSWER_APPLY, DIALOG_ANSWER_CANCEL, DIALOG_ANSWER_NEW_RELATION, group, locale_name, name, name_context, nameTemplate, nameTemplateFilter, OPTIONAL_TOOLTIP_TEXT, preset_name_label, roles, types| Constructor and Description |
|---|
TaggingPresetMenu() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
private java.awt.Component |
copyMenuComponent(java.awt.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(javax.swing.JMenu menu)
Sorts the menu items using the translated item text
|
activeLayerChange, createCommand, createPanel, createSelection, evaluate, getChangedTags, getIcon, getLocaleName, getMatchingPresets, getName, getRawName, getToolbarString, isShowable, layerAdded, layerRemoved, matches, setIcon, setName_template_filter, setName_template, setType, showDialog, suggestRoleForOsmPrimitive, toString, typeMatches, updateEnabledStatepublic javax.swing.JMenu menu
public TaggingPresetMenu()
public void setDisplayName()
TaggingPresetsetDisplayName in class TaggingPresetprivate java.awt.Component copyMenuComponent(java.awt.Component menuComponent)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class TaggingPresetpublic void sortMenu()
public static void sortMenu(javax.swing.JMenu menu)