public abstract class AbstractRelationAction extends javax.swing.AbstractAction implements IPrimitiveAction
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Collection<IRelation<?>> |
relations
relation collection
|
| Constructor and Description |
|---|
AbstractRelationAction() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canDownload() |
protected boolean |
canModify() |
protected static java.util.Collection<IRelation<?>> |
getRelations(java.util.Collection<? extends IPrimitive> primitives)
Returns the relations contained in the given collection.
|
protected void |
setHelpId(java.lang.String helpId) |
void |
setPrimitives(java.util.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.
|
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<IRelation<?>> getRelations(java.util.Collection<? extends IPrimitive> primitives)
primitives - collection of primitivesprimitivespublic void setPrimitives(java.util.Collection<? extends IPrimitive> primitives)
IPrimitiveActionsetPrimitives in interface IPrimitiveActionprimitives - The new working set of primitives. Can be null or emptyprotected void updateEnabledState()
protected final boolean canModify()
protected final boolean canDownload()
protected void setHelpId(java.lang.String helpId)