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.ActionListenerpublic java.awt.Component createMenuComponent()
Layer.LayerActioncreateMenuComponent in interface Layer.LayerActionpublic boolean supportLayers(java.util.List<Layer> layers)
Layer.LayerActionsupportLayers in interface Layer.LayerActionlayers - list of layerstrue if this action supports the given list of layers, false otherwise