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, setEnabled
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public AbstractRelationAction()
protected static final java.util.Collection<Relation> getRelations(java.util.Collection<? extends OsmPrimitive> primitives)
primitives
- collection of primitivesprimitives
public void setPrimitives(java.util.Collection<? extends OsmPrimitive> primitives)
OsmPrimitiveAction
setPrimitives
in interface OsmPrimitiveAction
primitives
- The new working set of primitives. Can be null or emptyprotected void updateEnabledState()
protected final boolean canDownload()