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 voidactionPerformed(java.awt.event.ActionEvent e)private voidselectionChanged(java.util.Collection<? extends IPrimitive> newSelection)voidselectionChanged(DataSelectionListener.SelectionChangeEvent event)Called whenever the selection is changed.voidupdateEnabledState()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:
actionPerformedin interfacejava.awt.event.ActionListener
-
updateEnabledState
public void updateEnabledState()
Description copied from class:AbstractRelationActionOverride in subclasses to update the enabled state of the action when something changes.- Overrides:
updateEnabledStatein classAbstractRelationAction
-
selectionChanged
private void selectionChanged(java.util.Collection<? extends IPrimitive> newSelection)
-
selectionChanged
public void selectionChanged(DataSelectionListener.SelectionChangeEvent event)
Description copied from interface:DataSelectionListenerCalled 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:
selectionChangedin interfaceDataSelectionListener- Parameters:
event- The selection change event.- See Also:
DataSelectionListener.SelectionChangeEvent
-
-