public class DownloadSelectedIncompleteMembersAction extends AbstractRelationAction
Modifier and Type | Field and Description |
---|---|
private Collection<OsmPrimitive> |
incompleteMembers |
relations
changeSupport, enabled
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 and Description |
---|
DownloadSelectedIncompleteMembersAction()
Constructs a new
DownloadSelectedIncompleteMembersAction . |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
static Set<OsmPrimitive> |
buildSetOfIncompleteMembers(Collection<Relation> rels)
Returns the set of incomplete members of the given relations.
|
void |
setPrimitives(Collection<? extends OsmPrimitive> primitives)
Specifies the working set of primitives.
|
protected void |
updateEnabledState() |
getRelations
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
private transient Collection<OsmPrimitive> incompleteMembers
public DownloadSelectedIncompleteMembersAction()
DownloadSelectedIncompleteMembersAction
.public static Set<OsmPrimitive> buildSetOfIncompleteMembers(Collection<Relation> rels)
rels
- The relations to inspect.public void actionPerformed(ActionEvent e)
public void setPrimitives(Collection<? extends OsmPrimitive> primitives)
OsmPrimitiveAction
setPrimitives
in interface OsmPrimitiveAction
setPrimitives
in class AbstractRelationAction
primitives
- The new working set of primitives. Can be null or emptyprotected void updateEnabledState()
updateEnabledState
in class AbstractRelationAction