- java.lang.Object
-
- com.gluonhq.impl.connect.EventHelper
-
public class EventHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description EventHelper(EventTarget bean)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventDispatchChain
buildEventDispatchChain(EventDispatchChain tail)
void
fireEvent(Event event)
Fires the specified event.void
setOnCancelled(EventHandler<ConnectStateEvent> value)
void
setOnFailed(EventHandler<ConnectStateEvent> value)
void
setOnReady(EventHandler<ConnectStateEvent> value)
void
setOnRemoved(EventHandler<ConnectStateEvent> value)
void
setOnRunning(EventHandler<ConnectStateEvent> value)
void
setOnSucceeded(EventHandler<ConnectStateEvent> value)
-
-
-
Constructor Detail
-
EventHelper
public EventHelper(EventTarget bean)
-
-
Method Detail
-
setOnReady
public final void setOnReady(EventHandler<ConnectStateEvent> value)
-
setOnRunning
public final void setOnRunning(EventHandler<ConnectStateEvent> value)
-
setOnFailed
public final void setOnFailed(EventHandler<ConnectStateEvent> value)
-
setOnSucceeded
public final void setOnSucceeded(EventHandler<ConnectStateEvent> value)
-
setOnCancelled
public final void setOnCancelled(EventHandler<ConnectStateEvent> value)
-
setOnRemoved
public final void setOnRemoved(EventHandler<ConnectStateEvent> value)
-
fireEvent
public void fireEvent(Event event)
Fires the specified event. Any event filter encountered will be notified and can consume the event. If not consumed by the filters, the event handlers on this task are notified. If these don't consume the event either, then all event handlers are called and can consume the event.This method must be called on the FX user thread.
- Parameters:
event
- the event to fire
-
buildEventDispatchChain
public EventDispatchChain buildEventDispatchChain(EventDispatchChain tail)
-
-