public abstract class AbstractRelationAction extends AbstractAction implements OsmPrimitiveAction
Modifier and Type | Field and Description |
---|---|
protected Collection<Relation> |
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 |
---|
AbstractRelationAction() |
Modifier and Type | Method and Description |
---|---|
protected static Collection<Relation> |
getRelations(Collection<? extends OsmPrimitive> primitives) |
void |
setPrimitives(Collection<? extends OsmPrimitive> primitives)
Specifies the working set of primitives.
|
protected void |
updateEnabledState() |
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
actionPerformed
protected Collection<Relation> relations
public AbstractRelationAction()
protected static final Collection<Relation> getRelations(Collection<? extends OsmPrimitive> primitives)
public void setPrimitives(Collection<? extends OsmPrimitive> primitives)
OsmPrimitiveAction
setPrimitives
in interface OsmPrimitiveAction
primitives
- The new working set of primitives. Can be null or emptyprotected void updateEnabledState()