public class AddSelectionToRelations extends AbstractRelationAction implements SelectionChangedListener
relations
Constructor and Description |
---|
AddSelectionToRelations()
Constructs a new
AddSelectionToRelation . |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
selectionChanged(java.util.Collection<? extends OsmPrimitive> newSelection)
Informs the listener that the selection in the dataset has changed.
|
void |
updateEnabledState()
Override in subclasses to update the enabled state of the action when something changes.
|
canDownload, getRelations, setPrimitives
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public AddSelectionToRelations()
AddSelectionToRelation
.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void updateEnabledState()
AbstractRelationAction
updateEnabledState
in class AbstractRelationAction
public void selectionChanged(java.util.Collection<? extends OsmPrimitive> newSelection)
SelectionChangedListener
selectionChanged
in interface SelectionChangedListener
newSelection
- The new selection.