Class ShowErrorsAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.gui.layer.imagery.ShowErrorsAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
,Layer.LayerAction
public class ShowErrorsAction extends javax.swing.AbstractAction implements Layer.LayerAction
Show tile errors.- Since:
- 11950 (extracted from
AbstractTileSourceLayer
) - See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private AbstractTileSourceLayer<?>
layer
-
Constructor Summary
Constructors Constructor Description ShowErrorsAction(AbstractTileSourceLayer<?> layer)
Constructs a newShowErrorsAction
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent ae)
java.awt.Component
createMenuComponent()
Creates and return the menu component.boolean
supportLayers(java.util.List<Layer> layers)
Determines if this action supports a given list of layers.-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
layer
private final AbstractTileSourceLayer<?> layer
-
-
Constructor Detail
-
ShowErrorsAction
public ShowErrorsAction(AbstractTileSourceLayer<?> layer)
Constructs a newShowErrorsAction
.- Parameters:
layer
- imagery layer
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent ae)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
-
createMenuComponent
public java.awt.Component createMenuComponent()
Description copied from interface:Layer.LayerAction
Creates and return the menu component.- Specified by:
createMenuComponent
in interfaceLayer.LayerAction
- Returns:
- the menu component
-
supportLayers
public boolean supportLayers(java.util.List<Layer> layers)
Description copied from interface:Layer.LayerAction
Determines if this action supports a given list of layers.- Specified by:
supportLayers
in interfaceLayer.LayerAction
- Parameters:
layers
- list of layers- Returns:
true
if this action supports the given list of layers,false
otherwise
-
-