Class AbstractRelationAction

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Collection<IRelation<?>> relations
      relation collection
      • Fields inherited from class javax.swing.AbstractAction

        changeSupport, enabled
      • Fields inherited from interface javax.swing.Action

        ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canDownload()  
      protected boolean canModify()  
      void destroy()
      Called when the object has been destroyed.
      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.
      • Methods inherited from class javax.swing.AbstractAction

        addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.swing.Action

        accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
      • Methods inherited from interface java.awt.event.ActionListener

        actionPerformed
    • Field Detail

      • relations

        protected transient java.util.Collection<IRelation<?>> relations
        relation collection
    • Method Detail

      • getRelations

        protected static final java.util.Collection<IRelation<?>> getRelations​(java.util.Collection<? extends IPrimitive> primitives)
        Returns the relations contained in the given collection.
        Parameters:
        primitives - collection of primitives
        Returns:
        the relation contained in primitives
      • updateEnabledState

        protected void updateEnabledState()
        Override in subclasses to update the enabled state of the action when something changes.
      • canModify

        protected final boolean canModify()
      • setHelpId

        protected void setHelpId​(java.lang.String helpId)