org.apache.beehive.controls.api.events
Annotation Type EventHandler


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface EventHandler

The EventHandler annotation type is used to mark a method that provides the event handler implementation for a Control event.


Required Element Summary
 String eventName
          The name of the handled event.
 Class eventSet
          The EventSet interface that declares the event.
 String field
          The field name of the Java control event source.
 

Element Detail

field

public abstract String field
The field name of the Java control event source. This must be an @Control field declared on the class defining the event handler method (or on a superclass if the field is not declared to be private).


eventSet

public abstract Class eventSet
The EventSet interface that declares the event. This must be a valid EventSet interface associated with the control type of the field member.


eventName

public abstract String eventName
The name of the handled event. This must be the name of a method declared on the EventSet interface referenced by the eventSet member. The annotated method must have an event signature that exactly matches one of the event methods with this name.