Class ConvertToDataLayerAction<T extends Layer>
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.gui.layer.gpx.ConvertToDataLayerAction<T>
-
- Type Parameters:
T
- the source layer class
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
- Direct Known Subclasses:
ConvertFromGpxLayerAction
,ConvertFromMarkerLayerAction
public abstract class ConvertToDataLayerAction<T extends Layer> extends AbstractAction
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected T
layer
source layer-
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
Constructors Modifier Constructor Description protected
ConvertToDataLayerAction(T layer)
Constructs a newConvertToDataLayerAction
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent e)
abstract DataSet
convert()
Performs the conversion to aDataSet
.-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
ConvertToDataLayerAction
protected ConvertToDataLayerAction(T layer)
Constructs a newConvertToDataLayerAction
- Parameters:
layer
- source layer
-
-
Method Detail
-
convert
public abstract DataSet convert()
Performs the conversion to aDataSet
.- Returns:
- the resulting dataset
-
actionPerformed
public void actionPerformed(ActionEvent e)
-
-