public class TaggingPresetMenu extends TaggingPreset
Used, to create the nested directory structure in the preset main menu entry.
| 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, iconName, locale_name, name, name_context, nameTemplate, nameTemplateFilter, OPTIONAL_TOOLTIP_TEXT, PRESET_ICON_ERROR_MSG_PREFIX, preset_name_label, roles, types| Constructor and Description |
|---|
TaggingPresetMenu() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
private static java.awt.Component |
copyMenuComponent(java.awt.Component menuComponent) |
boolean |
equals(java.lang.Object o)
TaggingPresetMenu are considered equivalent if (and only if) their TaggingPreset.getRawName() match. |
private static void |
handleMenuItem(javax.swing.JMenu menu,
TaggingPresetMenu.PresetTextComparator comp,
java.util.List<javax.swing.JMenuItem> sortarray,
int lastSeparator) |
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(javax.swing.JMenu menu)
Sorts the menu items using the translated item text
|
activeOrEditLayerChanged, createCommand, createPanel, createSelection, getChangedTags, getIcon, getIcon, getIconLoadingTask, getLocaleName, getName, getRawName, getToolbarString, isShowable, matches, setIcon, setName_template_filter, setName_template, setType, showDialog, suggestRoleForOsmPrimitive, test, toString, typeMatches, typeMatches, updateEnabledStateaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledfinalize, getClass, notify, notifyAll, wait, wait, waitpublic javax.swing.JMenu menu
public TaggingPresetMenu()
public boolean equals(java.lang.Object o)
TaggingPresetMenu are considered equivalent if (and only if) their TaggingPreset.getRawName() match.equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void setDisplayName()
TaggingPresetsetDisplayName in class TaggingPresetprivate static 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)
menu - menu to sortprivate static void handleMenuItem(javax.swing.JMenu menu, TaggingPresetMenu.PresetTextComparator comp, java.util.List<javax.swing.JMenuItem> sortarray, int lastSeparator)