public interface GluonObservable
extends javafx.event.EventTarget
DataProvider
class happen in an asynchronous background thread. This interface
can therefor be used to get information about the current state of the observable entity while the operation is
running as well as the final state of the entity when the operation has completed.Type | Property and Description |
---|---|
javafx.beans.property.ReadOnlyObjectProperty<java.lang.Throwable> |
exception
Holds the exception that was thrown when a synchronization operation failed.
|
javafx.beans.property.ReadOnlyBooleanProperty |
initialized
A boolean property that is true when the observable has been initialized successfully after its initial
retrieval.
|
javafx.beans.property.ReadOnlyObjectProperty<ConnectState> |
state
Holds the current state of this observable.
|
Modifier and Type | Method and Description |
---|---|
javafx.beans.property.ReadOnlyObjectProperty<java.lang.Throwable> |
exceptionProperty()
Holds the exception that was thrown when a synchronization operation failed.
|
java.lang.Throwable |
getException()
In case an exception occurred during processing, this method will
return the exception.
|
ConnectState |
getState()
Return the current state of this observable.
|
javafx.beans.property.ReadOnlyBooleanProperty |
initializedProperty()
A boolean property that is true when the observable has been initialized successfully after its initial
retrieval.
|
boolean |
isInitialized()
Return the initialized state of this observable.
|
void |
setOnCancelled(javafx.event.EventHandler<ConnectStateEvent> value)
The onCancelled event handler is called whenever the GluonObservable state
transitions to the CANCELLED state.
|
void |
setOnFailed(javafx.event.EventHandler<ConnectStateEvent> value)
The onFailed event handler is called whenever the GluonObservable state
transitions to the FAILED state.
|
void |
setOnReady(javafx.event.EventHandler<ConnectStateEvent> value)
The onReady event handler is called whenever the GluonObservable state
transitions to the READY state.
|
void |
setOnRemoved(javafx.event.EventHandler<ConnectStateEvent> value)
The onRemoved event handler is called whenever the GluonObservable state
transitions to the REMOVED state.
|
void |
setOnRunning(javafx.event.EventHandler<ConnectStateEvent> value)
The onRunning event handler is called whenever the GluonObservable state
transitions to the RUNNING state.
|
void |
setOnSucceeded(javafx.event.EventHandler<ConnectStateEvent> value)
The onSucceeded event handler is called whenever the GluonObservable state
transitions to the SUCCEEDED state.
|
javafx.beans.property.ReadOnlyObjectProperty<ConnectState> |
stateProperty()
Holds the current state of this observable.
|
javafx.beans.property.ReadOnlyBooleanProperty initializedProperty
isInitialized()
javafx.beans.property.ReadOnlyObjectProperty<ConnectState> stateProperty
getState()
javafx.beans.property.ReadOnlyObjectProperty<java.lang.Throwable> exceptionProperty
getException()
boolean isInitialized()
javafx.beans.property.ReadOnlyBooleanProperty initializedProperty()
isInitialized()
ConnectState getState()
javafx.beans.property.ReadOnlyObjectProperty<ConnectState> stateProperty()
getState()
java.lang.Throwable getException()
null
will be returned.javafx.beans.property.ReadOnlyObjectProperty<java.lang.Throwable> exceptionProperty()
getException()
void setOnReady(javafx.event.EventHandler<ConnectStateEvent> value)
value
- the event handler, can be null to clear itvoid setOnRunning(javafx.event.EventHandler<ConnectStateEvent> value)
value
- the event handler, can be null to clear itvoid setOnFailed(javafx.event.EventHandler<ConnectStateEvent> value)
value
- the event handler, can be null to clear itvoid setOnSucceeded(javafx.event.EventHandler<ConnectStateEvent> value)
value
- the event handler, can be null to clear itvoid setOnCancelled(javafx.event.EventHandler<ConnectStateEvent> value)
value
- the event handler, can be null to clear itvoid setOnRemoved(javafx.event.EventHandler<ConnectStateEvent> value)
value
- the event handler, can be null to clear it