public abstract class AbstractRelationAction extends javax.swing.AbstractAction implements OsmPrimitiveAction
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Collection<Relation> |
relations
relation collection
|
| Constructor and Description |
|---|
AbstractRelationAction() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canDownload() |
protected static java.util.Collection<Relation> |
getRelations(java.util.Collection<? extends OsmPrimitive> primitives)
Returns the relations contained in the given collection.
|
void |
setPrimitives(java.util.Collection<? extends OsmPrimitive> primitives)
Specifies the working set of primitives.
|
protected void |
updateEnabledState()
Override in subclasses to update the enabled state of the action when something changes.
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic AbstractRelationAction()
protected static final java.util.Collection<Relation> getRelations(java.util.Collection<? extends OsmPrimitive> primitives)
primitives - collection of primitivesprimitivespublic void setPrimitives(java.util.Collection<? extends OsmPrimitive> primitives)
OsmPrimitiveActionsetPrimitives in interface OsmPrimitiveActionprimitives - The new working set of primitives. Can be null or emptyprotected void updateEnabledState()
protected final boolean canDownload()