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:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
,MultikeyShortcutAction
- Direct Known Subclasses:
JumpToMarkerActions.JumpToNextMarker
,JumpToMarkerActions.JumpToPreviousMarker
- Enclosing class:
- JumpToMarkerActions
private abstract static class JumpToMarkerActions.JumpToMarker extends javax.swing.AbstractAction implements MultikeyShortcutAction
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openstreetmap.josm.gui.util.MultikeyShortcutAction
MultikeyShortcutAction.MultikeyInfo
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.ref.WeakReference<Layer>
lastLayer
private JumpToMarkerActions.JumpToMarkerLayer
layer
private Shortcut
multikeyShortcut
-
Constructor Summary
Constructors Constructor Description JumpToMarker(JumpToMarkerActions.JumpToMarkerLayer layer, Shortcut shortcut)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
protected abstract void
execute(JumpToMarkerActions.JumpToMarkerLayer l)
void
executeMultikeyAction(int index, boolean repeat)
Execute a multi key actionMultikeyShortcutAction.MultikeyInfo
getLastMultikeyAction()
java.util.List<MultikeyShortcutAction.MultikeyInfo>
getMultikeyCombinations()
Shortcut
getMultikeyShortcut()
protected void
setLastLayer(Layer l)
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
layer
private final transient JumpToMarkerActions.JumpToMarkerLayer layer
-
multikeyShortcut
private final transient Shortcut multikeyShortcut
-
-
Constructor Detail
-
JumpToMarker
JumpToMarker(JumpToMarkerActions.JumpToMarkerLayer layer, Shortcut shortcut)
-
-
Method Detail
-
setLastLayer
protected final void setLastLayer(Layer l)
-
getMultikeyShortcut
public Shortcut getMultikeyShortcut()
- Specified by:
getMultikeyShortcut
in interfaceMultikeyShortcutAction
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
-
executeMultikeyAction
public void executeMultikeyAction(int index, boolean repeat)
Description copied from interface:MultikeyShortcutAction
Execute a multi key action- Specified by:
executeMultikeyAction
in interfaceMultikeyShortcutAction
- Parameters:
index
- The index to executerepeat
-true
if the last action should be executed if no action is found for the given index.
-
execute
protected abstract void execute(JumpToMarkerActions.JumpToMarkerLayer l)
-
getMultikeyCombinations
public java.util.List<MultikeyShortcutAction.MultikeyInfo> getMultikeyCombinations()
- Specified by:
getMultikeyCombinations
in interfaceMultikeyShortcutAction
-
getLastMultikeyAction
public MultikeyShortcutAction.MultikeyInfo getLastMultikeyAction()
- Specified by:
getLastMultikeyAction
in interfaceMultikeyShortcutAction
-
-