Class AddSelectionToRelations
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.actions.relation.AbstractRelationAction
-
- org.openstreetmap.josm.actions.relation.AddSelectionToRelations
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
,IPrimitiveAction
,DataSelectionListener
,Destroyable
public class AddSelectionToRelations extends AbstractRelationAction implements DataSelectionListener
Add all objects selected in the current dataset after the last member of relation(s).- Since:
- 5799
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openstreetmap.josm.data.osm.DataSelectionListener
DataSelectionListener.AbstractSelectionEvent, DataSelectionListener.SelectionAddEvent, DataSelectionListener.SelectionChangeEvent, DataSelectionListener.SelectionRemoveEvent, DataSelectionListener.SelectionReplaceEvent, DataSelectionListener.SelectionToggleEvent
-
-
Field Summary
-
Fields inherited from class org.openstreetmap.josm.actions.relation.AbstractRelationAction
relations
-
-
Constructor Summary
Constructors Constructor Description AddSelectionToRelations()
Constructs a newAddSelectionToRelation
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
private void
selectionChanged(java.util.Collection<? extends IPrimitive> newSelection)
void
selectionChanged(DataSelectionListener.SelectionChangeEvent event)
Called whenever the selection is changed.void
updateEnabledState()
Override in subclasses to update the enabled state of the action when something changes.-
Methods inherited from class org.openstreetmap.josm.actions.relation.AbstractRelationAction
canDownload, canModify, destroy, getRelations, setHelpId, setPrimitives
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
AddSelectionToRelations
public AddSelectionToRelations()
Constructs a newAddSelectionToRelation
.
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
-
updateEnabledState
public void updateEnabledState()
Description copied from class:AbstractRelationAction
Override in subclasses to update the enabled state of the action when something changes.- Overrides:
updateEnabledState
in classAbstractRelationAction
-
selectionChanged
private void selectionChanged(java.util.Collection<? extends IPrimitive> newSelection)
-
selectionChanged
public void selectionChanged(DataSelectionListener.SelectionChangeEvent event)
Description copied from interface:DataSelectionListener
Called whenever the selection is changed. You get notified about the new selection, the elements that were added and removed and the layer that triggered the event.- Specified by:
selectionChanged
in interfaceDataSelectionListener
- Parameters:
event
- The selection change event.- See Also:
DataSelectionListener.SelectionChangeEvent
-
-