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>lastLayerprivate JumpToMarkerActions.JumpToMarkerLayerlayerprivate ShortcutmultikeyShortcut
-
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 voidactionPerformed(java.awt.event.ActionEvent e)protected abstract voidexecute(JumpToMarkerActions.JumpToMarkerLayer l)voidexecuteMultikeyAction(int index, boolean repeat)Execute a multi key actionMultikeyShortcutAction.MultikeyInfogetLastMultikeyAction()java.util.List<MultikeyShortcutAction.MultikeyInfo>getMultikeyCombinations()ShortcutgetMultikeyShortcut()protected voidsetLastLayer(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:
getMultikeyShortcutin interfaceMultikeyShortcutAction
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
executeMultikeyAction
public void executeMultikeyAction(int index, boolean repeat)
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
protected abstract void execute(JumpToMarkerActions.JumpToMarkerLayer l)
-
getMultikeyCombinations
public java.util.List<MultikeyShortcutAction.MultikeyInfo> getMultikeyCombinations()
- Specified by:
getMultikeyCombinationsin interfaceMultikeyShortcutAction
-
getLastMultikeyAction
public MultikeyShortcutAction.MultikeyInfo getLastMultikeyAction()
- Specified by:
getLastMultikeyActionin interfaceMultikeyShortcutAction
-
-