- java.lang.Object
-
- java.util.EventObject
-
- javafx.event.Event
-
- com.gluonhq.connect.ConnectStateEvent
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ConnectStateEvent extends Event
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static EventType<ConnectStateEvent>
ANY
Common supertype for all worker state event types.static EventType<ConnectStateEvent>
CONNECT_STATE_CANCELLED
This event occurs when the state of a GluonObservable implementation has transitioned to the CANCELLED state.static EventType<ConnectStateEvent>
CONNECT_STATE_FAILED
This event occurs when the state of a GluonObservable implementation has transitioned to the FAILED state.static EventType<ConnectStateEvent>
CONNECT_STATE_READY
This event occurs when the state of a GluonObservable implementation has transitioned to the READY state.static EventType<ConnectStateEvent>
CONNECT_STATE_REMOVED
This event occurs when the state of a GluonObservable implementation has transitioned to the REMOVED state.static EventType<ConnectStateEvent>
CONNECT_STATE_RUNNING
This event occurs when the state of a GluonObservable implementation has transitioned to the RUNNING state.static EventType<ConnectStateEvent>
CONNECT_STATE_SUCCEEDED
This event occurs when the state of a GluonObservable implementation has transitioned to the SUCCEEDED state.-
Fields inherited from class javafx.event.Event
consumed, eventType, NULL_SOURCE_TARGET, target
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description ConnectStateEvent(GluonObservable gluonObservable, EventType<? extends ConnectStateEvent> eventType)
Create a new ConnectStateEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GluonObservable
getSource()
-
Methods inherited from class javafx.event.Event
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumed
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Field Detail
-
ANY
public static final EventType<ConnectStateEvent> ANY
Common supertype for all worker state event types.
-
CONNECT_STATE_READY
public static final EventType<ConnectStateEvent> CONNECT_STATE_READY
This event occurs when the state of a GluonObservable implementation has transitioned to the READY state.
-
CONNECT_STATE_RUNNING
public static final EventType<ConnectStateEvent> CONNECT_STATE_RUNNING
This event occurs when the state of a GluonObservable implementation has transitioned to the RUNNING state.
-
CONNECT_STATE_FAILED
public static final EventType<ConnectStateEvent> CONNECT_STATE_FAILED
This event occurs when the state of a GluonObservable implementation has transitioned to the FAILED state.
-
CONNECT_STATE_SUCCEEDED
public static final EventType<ConnectStateEvent> CONNECT_STATE_SUCCEEDED
This event occurs when the state of a GluonObservable implementation has transitioned to the SUCCEEDED state.
-
CONNECT_STATE_CANCELLED
public static final EventType<ConnectStateEvent> CONNECT_STATE_CANCELLED
This event occurs when the state of a GluonObservable implementation has transitioned to the CANCELLED state.
-
CONNECT_STATE_REMOVED
public static final EventType<ConnectStateEvent> CONNECT_STATE_REMOVED
This event occurs when the state of a GluonObservable implementation has transitioned to the REMOVED state.
-
-
Constructor Detail
-
ConnectStateEvent
public ConnectStateEvent(GluonObservable gluonObservable, EventType<? extends ConnectStateEvent> eventType)
Create a new ConnectStateEvent. Specify the gluon observable and the event type.- Parameters:
gluonObservable
- The GluonObservable which is firing the event. The GluonObservable really should be an EventTarget, otherwise the EventTarget for the event will be null.eventType
- The type of event. This should not be null.
-
-
Method Detail
-
getSource
public GluonObservable getSource()
- Overrides:
getSource
in classEventObject
-
-