T
- the generic type of the source object.P
- the generic type of the payloads.public abstract class AbstractCyPayloadEvent<T,P> extends AbstractCyEvent<T> implements CyPayloadEvent<T,P>
CyPayloadEvent
that can be used by events.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 and Description |
---|
AbstractCyPayloadEvent(T source,
Class<?> listenerClass,
Collection<P> payload)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Collection<P> |
getPayloadCollection()
Returns an unmodifiable collection of payload objects.
|
getListenerClass, getSource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getListenerClass, getSource
public AbstractCyPayloadEvent(T source, Class<?> listenerClass, Collection<P> payload)
source
- The event source object.listenerClass
- The listener class for this event.payload
- A collection of payload objects. May be empty, but not null!public Collection<P> getPayloadCollection()
getPayloadCollection
in interface CyPayloadEvent<T,P>
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.