Package org.openstreetmap.josm.gui.util
Interface MultikeyShortcutAction
- All Superinterfaces:
Action,ActionListener,EventListener
- All Known Implementing Classes:
ActivateLayerAction,FilterDialog.AbstractFilterAction,FilterDialog.EnableFilterAction,FilterDialog.HidingFilterAction,JumpToMarkerActions.JumpToMarker,JumpToMarkerActions.JumpToNextMarker,JumpToMarkerActions.JumpToPreviousMarker,ShowHideLayerAction
Action implementing a multikey shortcut - shortcuts like Ctrl+Alt+S,n will toggle n-th layer visibility.
- Since:
- 4595
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classInformation for a Multikey action -
Field Summary
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteMultikeyAction(int index, boolean repeatLastAction) Execute a multi key actionMethods inherited from interface javax.swing.Action
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledMethods inherited from interface java.awt.event.ActionListener
actionPerformed
-
Method Details
-
getMultikeyShortcut
-
executeMultikeyAction
Execute a multi key action- Parameters:
index- The index to executerepeatLastAction-trueif the last action should be executed if no action is found for the given index.
-
getMultikeyCombinations
-
getLastMultikeyAction
-