org.openstreetmap.josm.gui.dialogs
Class LayerListDialog.ShowHideLayerAction
java.lang.Object
javax.swing.AbstractAction
org.openstreetmap.josm.gui.dialogs.LayerListDialog.ShowHideLayerAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, LayerListDialog.IEnabledStateUpdating, Layer.LayerAction, MultikeyShortcutAction
- Enclosing class:
- LayerListDialog
public final class LayerListDialog.ShowHideLayerAction
- extends javax.swing.AbstractAction
- implements LayerListDialog.IEnabledStateUpdating, Layer.LayerAction, MultikeyShortcutAction
- See Also:
- Serialized Form
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 |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.Action |
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
lastLayer
private java.lang.ref.WeakReference<Layer> lastLayer
multikeyShortcut
private Shortcut multikeyShortcut
LayerListDialog.ShowHideLayerAction
public LayerListDialog.ShowHideLayerAction(boolean init)
- Creates a
LayerListDialog.ShowHideLayerAction
which will toggle the visibility of
the currently selected layers
LayerListDialog.ShowHideLayerAction
public LayerListDialog.ShowHideLayerAction()
getMultikeyShortcut
public Shortcut getMultikeyShortcut()
- Specified by:
getMultikeyShortcut
in interface MultikeyShortcutAction
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
executeMultikeyAction
public void executeMultikeyAction(int index,
boolean repeat)
- Specified by:
executeMultikeyAction
in interface MultikeyShortcutAction
updateEnabledState
public void updateEnabledState()
- Specified by:
updateEnabledState
in interface LayerListDialog.IEnabledStateUpdating
createMenuComponent
public java.awt.Component createMenuComponent()
- Specified by:
createMenuComponent
in interface Layer.LayerAction
supportLayers
public boolean supportLayers(java.util.List<Layer> layers)
- Specified by:
supportLayers
in interface Layer.LayerAction
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
getMultikeyCombinations
public java.util.List<MultikeyShortcutAction.MultikeyInfo> getMultikeyCombinations()
- Specified by:
getMultikeyCombinations
in interface MultikeyShortcutAction
getLastMultikeyAction
public MultikeyShortcutAction.MultikeyInfo getLastMultikeyAction()
- Specified by:
getLastMultikeyAction
in interface MultikeyShortcutAction
JOSM