T
- the type of the object that is held in this observablepublic class GluonObservableObject<T> extends javafx.beans.property.SimpleObjectProperty<T> implements GluonObservable, javafx.beans.value.WritableObjectValue<T>
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.
|
Constructor and Description |
---|
GluonObservableObject() |
Modifier and Type | Method and Description |
---|---|
javafx.event.EventDispatchChain |
buildEventDispatchChain(javafx.event.EventDispatchChain tail) |
javafx.beans.property.ReadOnlyObjectProperty<java.lang.Throwable> |
exceptionProperty()
Holds the exception that was thrown when a synchronization operation failed.
|
java.lang.Throwable |
getException()
Gets the value of the property exception.
|
ConnectState |
getState()
Gets the value of the property state.
|
javafx.beans.property.ReadOnlyBooleanProperty |
initializedProperty()
A boolean property that is true when the observable has been initialized successfully after its initial
retrieval.
|
boolean |
isInitialized()
Gets the value of the property initialized.
|
void |
setException(java.lang.Throwable exception)
Sets the value of the property exception.
|
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.
|
void |
setState(ConnectState state)
Sets the value of the property state.
|
javafx.beans.property.ReadOnlyObjectProperty<ConnectState> |
stateProperty()
Holds the current state of this observable.
|
addListener, addListener, bind, fireValueChangedEvent, get, invalidated, isBound, removeListener, removeListener, set, toString, unbind
bindBidirectional, setValue, unbindBidirectional
asString, asString, asString, getValue, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotNull, isNull, objectExpression
public javafx.beans.property.ReadOnlyBooleanProperty initializedProperty
initializedProperty
in interface GluonObservable
isInitialized()
public javafx.beans.property.ReadOnlyObjectProperty<ConnectState> stateProperty
stateProperty
in interface GluonObservable
getState()
,
setState(ConnectState)
public javafx.beans.property.ReadOnlyObjectProperty<java.lang.Throwable> exceptionProperty
exceptionProperty
in interface GluonObservable
getException()
,
setException(Throwable)
public boolean isInitialized()
isInitialized
in interface GluonObservable
public javafx.beans.property.ReadOnlyBooleanProperty initializedProperty()
GluonObservable
initializedProperty
in interface GluonObservable
isInitialized()
public ConnectState getState()
getState
in interface GluonObservable
public void setState(ConnectState state)
public javafx.beans.property.ReadOnlyObjectProperty<ConnectState> stateProperty()
GluonObservable
stateProperty
in interface GluonObservable
getState()
,
setState(ConnectState)
public java.lang.Throwable getException()
getException
in interface GluonObservable
public void setException(java.lang.Throwable exception)
public javafx.beans.property.ReadOnlyObjectProperty<java.lang.Throwable> exceptionProperty()
GluonObservable
exceptionProperty
in interface GluonObservable
getException()
,
setException(Throwable)
public void setOnReady(javafx.event.EventHandler<ConnectStateEvent> value)
GluonObservable
setOnReady
in interface GluonObservable
value
- the event handler, can be null to clear itpublic void setOnRunning(javafx.event.EventHandler<ConnectStateEvent> value)
GluonObservable
setOnRunning
in interface GluonObservable
value
- the event handler, can be null to clear itpublic void setOnFailed(javafx.event.EventHandler<ConnectStateEvent> value)
GluonObservable
setOnFailed
in interface GluonObservable
value
- the event handler, can be null to clear itpublic void setOnSucceeded(javafx.event.EventHandler<ConnectStateEvent> value)
GluonObservable
setOnSucceeded
in interface GluonObservable
value
- the event handler, can be null to clear itpublic void setOnCancelled(javafx.event.EventHandler<ConnectStateEvent> value)
GluonObservable
setOnCancelled
in interface GluonObservable
value
- the event handler, can be null to clear itpublic void setOnRemoved(javafx.event.EventHandler<ConnectStateEvent> value)
GluonObservable
setOnRemoved
in interface GluonObservable
value
- the event handler, can be null to clear itpublic javafx.event.EventDispatchChain buildEventDispatchChain(javafx.event.EventDispatchChain tail)
buildEventDispatchChain
in interface javafx.event.EventTarget