@Retention(value=RUNTIME)
@Target(value={METHOD,FIELD})
public @interface EventProducer
Supplier field. The EventProducer annotation
should be used in combination with the EventTrigger 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 |
id
Defines the producer id.
|
java.lang.String |
value
Defines the adress to that the event should be send by the
EventSystem |
public abstract java.lang.String value
EventSystempublic abstract java.lang.String id
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.