@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface EventTrigger
EventTrigger annotation
should be used in combination with the EventProducer annotation to trigger
the transmission of the supplied event. Once the transmission is triggered the annotated method / supplier
will be called and the return value will be send. Normally the event will be send on the JavaFX Application
Thread. If the event should be send on a background thread the Async annotation
should be used in combination with the EventProducer annotation. In this case
the producer (annotated method or supplier) will be called on a background thread. All events will be send
by the EventSystem.
The annotation will automatically work in all view controls that are managed by the DataFX Flow API| ?????? | ??????? |
|---|---|
java.lang.String |
value
Defines the producer id.
|
public abstract java.lang.String value
EventProducer to a
EventTrigger in the same controller. Both annotations must define the
same id. If there is only one producer and trigger in a class a specific id is not required because
the default value "" can be used in this case.