Package org.openstreetmap.josm.gui.layer
Class JumpToMarkerActions.JumpToMarker
java.lang.Object
javax.swing.AbstractAction
org.openstreetmap.josm.gui.layer.JumpToMarkerActions.JumpToMarker
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action,MultikeyShortcutAction
- Direct Known Subclasses:
JumpToMarkerActions.JumpToNextMarker,JumpToMarkerActions.JumpToPreviousMarker
- Enclosing class:
- JumpToMarkerActions
private abstract static class JumpToMarkerActions.JumpToMarker
extends AbstractAction
implements MultikeyShortcutAction
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openstreetmap.josm.gui.util.MultikeyShortcutAction
MultikeyShortcutAction.MultikeyInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate WeakReference<Layer>private final JumpToMarkerActions.JumpToMarkerLayerprivate final ShortcutFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields 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 -
Constructor Summary
ConstructorsConstructorDescriptionJumpToMarker(JumpToMarkerActions.JumpToMarkerLayer layer, Shortcut shortcut) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected abstract voidvoidexecuteMultikeyAction(int index, boolean repeat) Execute a multi key actionprotected final voidMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.Action
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
layer
-
multikeyShortcut
-
lastLayer
-
-
Constructor Details
-
JumpToMarker
JumpToMarker(JumpToMarkerActions.JumpToMarkerLayer layer, Shortcut shortcut)
-
-
Method Details
-
setLastLayer
-
getMultikeyShortcut
- Specified by:
getMultikeyShortcutin interfaceMultikeyShortcutAction
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
executeMultikeyAction
Description copied from interface:MultikeyShortcutActionExecute a multi key action- Specified by:
executeMultikeyActionin interfaceMultikeyShortcutAction- Parameters:
index- The index to executerepeat-trueif the last action should be executed if no action is found for the given index.
-
execute
-
getMultikeyCombinations
- Specified by:
getMultikeyCombinationsin interfaceMultikeyShortcutAction
-
getLastMultikeyAction
- Specified by:
getLastMultikeyActionin interfaceMultikeyShortcutAction
-