Class SelectRelationAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.actions.relation.AbstractRelationAction
-
- org.openstreetmap.josm.actions.relation.SelectRelationAction
-
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
,IPrimitiveAction
,Destroyable
public class SelectRelationAction extends AbstractRelationAction
Sets the current selection to specified list of relations- Since:
- 5793
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
add
-
Fields inherited from class org.openstreetmap.josm.actions.relation.AbstractRelationAction
relations
-
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 Constructor Description SelectRelationAction(boolean add)
Constructs a newSelectRelationAction
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent e)
-
Methods inherited from class org.openstreetmap.josm.actions.relation.AbstractRelationAction
canDownload, canModify, destroy, getRelations, setHelpId, setPrimitives, updateEnabledState
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.swing.Action
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
add
private final boolean add
-
-
Constructor Detail
-
SelectRelationAction
public SelectRelationAction(boolean add)
Constructs a newSelectRelationAction
.- Parameters:
add
- iftrue
, the relation will be added to current selection. Iffalse
, the relation will replace the current selection.
-
-
Method Detail
-
actionPerformed
public void actionPerformed(ActionEvent e)
-
-