org.openstreetmap.josm.gui.dialogs
Class LayerListDialog.ShowHideLayerAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openstreetmap.josm.tools.MultikeyShortcutAction
MultikeyShortcutAction.MultikeyInfo
 
Field Summary
private  java.lang.ref.WeakReference<Layer> lastLayer
           
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
LayerListDialog.ShowHideLayerAction()
           
LayerListDialog.ShowHideLayerAction(boolean init)
          Creates a LayerListDialog.ShowHideLayerAction which will toggle the visibility of the currently selected layers
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 java.awt.Component createMenuComponent()
           
 boolean equals(java.lang.Object obj)
           
 void executeMultikeyAction(int index, boolean repeat)
           
 MultikeyShortcutAction.MultikeyInfo getLastMultikeyAction()
           
 java.util.List<MultikeyShortcutAction.MultikeyInfo> getMultikeyCombinations()
           
 Shortcut getMultikeyShortcut()
           
 int hashCode()
           
 boolean supportLayers(java.util.List<Layer> layers)
           
 void updateEnabledState()
           
 
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
 

Field Detail

lastLayer

private java.lang.ref.WeakReference<Layer> lastLayer

multikeyShortcut

private Shortcut multikeyShortcut
Constructor Detail

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()
Method Detail

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