T
- type of listener this event dispatches to.public abstract class RepositoryEvent<T extends RepositoryListener>
extends java.lang.Object
Constructor and Description |
---|
RepositoryEvent() |
Modifier and Type | Method and Description |
---|---|
abstract void |
dispatch(T listener)
Dispatch this event to the given listener.
|
abstract java.lang.Class<T> |
getListenerType() |
Repository |
getRepository() |
void |
setRepository(Repository r)
Set the repository this event occurred on.
|
java.lang.String |
toString() |
public void setRepository(Repository r)
This method should only be invoked once on each event object, and is
automatically set by Repository.fireEvent(RepositoryEvent)
.
r
- the repository.public Repository getRepository()
public abstract java.lang.Class<T> getListenerType()
public abstract void dispatch(T listener)
listener
- listener that wants this event.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2012. All Rights Reserved.