public class ToggleUploadDiscouragedLayerAction extends javax.swing.AbstractAction implements Layer.LayerAction
Modifier and Type | Field and Description |
---|---|
private OsmDataLayer |
layer |
Constructor and Description |
---|
ToggleUploadDiscouragedLayerAction(OsmDataLayer layer)
Constructs a new
ToggleUploadDiscouragedLayerAction . |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
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.
|
private final transient OsmDataLayer layer
public ToggleUploadDiscouragedLayerAction(OsmDataLayer layer)
ToggleUploadDiscouragedLayerAction
.layer
- the layer for which to toggle the discouraged upload flagpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public java.awt.Component createMenuComponent()
Layer.LayerAction
createMenuComponent
in interface Layer.LayerAction
public boolean supportLayers(java.util.List<Layer> layers)
Layer.LayerAction
supportLayers
in interface Layer.LayerAction
layers
- list of layerstrue
if this action supports the given list of layers, false
otherwise