@Retention(value=RUNTIME)
@Target(value={METHOD,FIELD})
public @interface OnEvent
EventSystem sends a event for the given adress (value() of the annotation).
The methods needs a parameter of the event content type, otherwise a RuntimeException will thrown
in the EventSystem (this don't stop the transmission to other receivers of the event).
In addition a Consumer field can be annotated with OnEvent.
The consumer will be called whenever the event system transmits a new event.
Normally the method / consumer will be called on the JavaFX Application Thread. If the event should be received on
a background thread the Async annotation should be used in combination with
the OnEvent annotation. In this case the event system will call the method / consumer
on a background thread.
The annotation will automatically work in all view controls that are managed by the DataFX Flow API| ?????? | ??????? |
|---|---|
java.lang.String |
value
Defines the adress of this receiver
|