Class AbstractCyPayloadEvent<T,P>

java.lang.Object
org.cytoscape.event.AbstractCyEvent<T>
org.cytoscape.event.AbstractCyPayloadEvent<T,P>
Type Parameters:
T - the generic type of the source object.
P - the generic type of the payloads.
All Implemented Interfaces:
CyEvent<T>, CyPayloadEvent<T,P>
Direct Known Subclasses:
AboutToRemoveEdgeViewsEvent, AboutToRemoveNodeViewsEvent, AboutToRemoveRowViewsEvent, AddedEdgesEvent, AddedEdgeViewsEvent, AddedNodesEvent, AddedNodeViewsEvent, AddedRowViewsEvent, EquationFunctionAddedEvent, EquationFunctionRemovedEvent, RowsCreatedEvent, RowsSetEvent, TableViewChangedEvent, ViewChangedEvent, VisualMappingFunctionChangedEvent, VisualStyleChangedEvent

public abstract class AbstractCyPayloadEvent<T,P> extends AbstractCyEvent<T> implements CyPayloadEvent<T,P>
A base implementation of CyPayloadEvent that can be used by events.

Cytoscape Backwards Compatibility (Abstract Class): This class is abstract and meant to be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.

Module: event-api

To use this in your app, include the following dependency in your POM:

<dependency>
    <groupId>org.cytoscape</groupId>
    <artifactId>event-api</artifactId>
</dependency>
  • Constructor Details

    • AbstractCyPayloadEvent

      public AbstractCyPayloadEvent(T source, Class<?> listenerClass, Collection<P> payload)
      Constructor.
      Parameters:
      source - The event source object.
      listenerClass - The listener class for this event.
      payload - A collection of payload objects. May be empty, but not null!
  • Method Details

    • getPayloadCollection

      public Collection<P> getPayloadCollection()
      Returns an unmodifiable collection of payload objects.
      Specified by:
      getPayloadCollection in interface CyPayloadEvent<T,P>
      Returns:
      an unmodifiable collection of payload objects.