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
Fields Modifier and Type Field Description private WeakReference<Layer>
lastLayer
private JumpToMarkerActions.JumpToMarkerLayer
layer
private Shortcut
multikeyShortcut
-
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
-
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
-
-
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(ActionEvent e)
protected abstract void
execute(JumpToMarkerActions.JumpToMarkerLayer l)
void
executeMultikeyAction(int index, boolean repeat)
MultikeyShortcutAction.MultikeyInfo
getLastMultikeyAction()
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
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.swing.Action
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
layer
private final transient JumpToMarkerActions.JumpToMarkerLayer layer
-
multikeyShortcut
private final transient Shortcut multikeyShortcut
-
lastLayer
private transient WeakReference<Layer> lastLayer
-
-
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(ActionEvent e)
- Specified by:
actionPerformed
in interfaceActionListener
-
executeMultikeyAction
public void executeMultikeyAction(int index, boolean repeat)
- Specified by:
executeMultikeyAction
in interfaceMultikeyShortcutAction
-
execute
protected abstract void execute(JumpToMarkerActions.JumpToMarkerLayer l)
-
getMultikeyCombinations
public List<MultikeyShortcutAction.MultikeyInfo> getMultikeyCombinations()
- Specified by:
getMultikeyCombinations
in interfaceMultikeyShortcutAction
-
getLastMultikeyAction
public MultikeyShortcutAction.MultikeyInfo getLastMultikeyAction()
- Specified by:
getLastMultikeyAction
in interfaceMultikeyShortcutAction
-
-