|
Griffon 0.9.5-rc2 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
java.lang.Objectgriffon.transform.EventPublisher
@Retention(RetentionPolicy.SOURCE) @Target(ElementType.TYPE) @GroovyASTTransformationClass("org.codehaus.griffon.ast.EventPublisherASTTransformation") public @interface EventPublisher
Annotates a class.
When annotating a class it indicates that it will become an event publishing one. The class will have the ability to send arbitrary events to any listeners that may have been registered with it. These events are similar to the ones published by GriffonApplication.
The following methods will be added to classes annotated with @EventPublisherpublic void addEventListener(java.lang.Object)
public void addEventListener(java.lang.String, groovy.lang.Closure)
public void addEventListener(java.lang.String, griffon.util.RunnableWithArgs)
public void removeEventListener(java.lang.Object)
public void removeEventListener(java.lang.String, groovy.lang.Closure)
public void removeEventListener(java.lang.String,griffon.util.RunnableWithArgs)
public void publishEvent(java.lang.String)
public void publishEvent(java.lang.String, java.util.List)
public void publishEventOutsideUI(java.lang.String)
public void publishEventOutsideUI(java.lang.String, java.util.List)
public void publishEventAsync(java.lang.String)
public void publishEventAsync(java.lang.String, java.util.List)
public boolean isEventPublishingEnabled()
public void setEventPublishingEnabled(boolean enabled)
Method Summary |
---|
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Groovy Documentation