Class DownloadSelectedIncompleteMembersAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.actions.relation.AbstractRelationAction
-
- org.openstreetmap.josm.actions.relation.DownloadSelectedIncompleteMembersAction
-
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
,IPrimitiveAction
,Destroyable
public class DownloadSelectedIncompleteMembersAction extends AbstractRelationAction
Action for downloading incomplete members of selected relations- Since:
- 5793
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Collection<IPrimitive>
incompleteMembers
-
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 DownloadSelectedIncompleteMembersAction()
Constructs a newDownloadSelectedIncompleteMembersAction
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent e)
static Set<IPrimitive>
buildSetOfIncompleteMembers(Collection<IRelation<?>> rels)
Returns the set of incomplete members of the given relations.void
setPrimitives(Collection<? extends IPrimitive> primitives)
Specifies the working set of primitives.protected 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
-
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
-
incompleteMembers
private transient Collection<IPrimitive> incompleteMembers
-
-
Constructor Detail
-
DownloadSelectedIncompleteMembersAction
public DownloadSelectedIncompleteMembersAction()
Constructs a newDownloadSelectedIncompleteMembersAction
.
-
-
Method Detail
-
buildSetOfIncompleteMembers
public static Set<IPrimitive> buildSetOfIncompleteMembers(Collection<IRelation<?>> rels)
Returns the set of incomplete members of the given relations.- Parameters:
rels
- The relations to inspect.- Returns:
- The set of incomplete members of the given relations.
-
actionPerformed
public void actionPerformed(ActionEvent e)
-
setPrimitives
public void setPrimitives(Collection<? extends IPrimitive> primitives)
Description copied from interface:IPrimitiveAction
Specifies the working set of primitives.- Specified by:
setPrimitives
in interfaceIPrimitiveAction
- Overrides:
setPrimitives
in classAbstractRelationAction
- Parameters:
primitives
- The new working set of primitives. Can be null or empty
-
updateEnabledState
protected 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
-
-