E - the type of the elements inside this listpublic class GluonObservableList<E> extends javafx.collections.ModifiableObservableListBase<E> implements GluonObservable, javafx.collections.ObservableList<E>
| 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 |
|---|
GluonObservableList() |
| Modifier and Type | Method and Description |
|---|---|
javafx.event.EventDispatchChain |
buildEventDispatchChain(javafx.event.EventDispatchChain tail) |
protected void |
doAdd(int index,
E element)
Adds the
element to the List at the position of index. |
protected E |
doRemove(int index)
Removes the element at position of
index. |
protected E |
doSet(int index,
E element)
Sets the
element in the List at the position of index. |
javafx.beans.property.ReadOnlyObjectProperty<java.lang.Throwable> |
exceptionProperty()
Holds the exception that was thrown when a synchronization operation failed.
|
E |
get(int index)
Returns the element at the specified position in this list.
|
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.
|
int |
size()
Returns the number of elements in this list.
|
javafx.beans.property.ReadOnlyObjectProperty<ConnectState> |
stateProperty()
Holds the current state of this observable.
|
add, addAll, addAll, remove, remove, removeAll, removeRange, retainAll, set, setAll, subListaddAll, addListener, addListener, beginChange, endChange, fireChange, hasListeners, nextAdd, nextPermutation, nextRemove, nextRemove, nextReplace, nextSet, nextUpdate, remove, removeAll, removeListener, removeListener, retainAll, setAlladd, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIteratorcontains, containsAll, isEmpty, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, addListener, filtered, remove, removeAll, removeListener, retainAll, setAll, setAll, sorted, sortedpublic javafx.beans.property.ReadOnlyBooleanProperty initializedProperty
initializedProperty in interface GluonObservableisInitialized()public javafx.beans.property.ReadOnlyObjectProperty<ConnectState> stateProperty
stateProperty in interface GluonObservablegetState(),
setState(ConnectState)public javafx.beans.property.ReadOnlyObjectProperty<java.lang.Throwable> exceptionProperty
exceptionProperty in interface GluonObservablegetException(),
setException(Throwable)public boolean isInitialized()
isInitialized in interface GluonObservablepublic javafx.beans.property.ReadOnlyBooleanProperty initializedProperty()
GluonObservableinitializedProperty in interface GluonObservableisInitialized()public ConnectState getState()
getState in interface GluonObservablepublic void setState(ConnectState state)
public javafx.beans.property.ReadOnlyObjectProperty<ConnectState> stateProperty()
GluonObservablestateProperty in interface GluonObservablegetState(),
setState(ConnectState)public java.lang.Throwable getException()
getException in interface GluonObservablepublic void setException(java.lang.Throwable exception)
public javafx.beans.property.ReadOnlyObjectProperty<java.lang.Throwable> exceptionProperty()
GluonObservableexceptionProperty in interface GluonObservablegetException(),
setException(Throwable)public void setOnReady(javafx.event.EventHandler<ConnectStateEvent> value)
GluonObservablesetOnReady in interface GluonObservablevalue - the event handler, can be null to clear itpublic void setOnRunning(javafx.event.EventHandler<ConnectStateEvent> value)
GluonObservablesetOnRunning in interface GluonObservablevalue - the event handler, can be null to clear itpublic void setOnFailed(javafx.event.EventHandler<ConnectStateEvent> value)
GluonObservablesetOnFailed in interface GluonObservablevalue - the event handler, can be null to clear itpublic void setOnSucceeded(javafx.event.EventHandler<ConnectStateEvent> value)
GluonObservablesetOnSucceeded in interface GluonObservablevalue - the event handler, can be null to clear itpublic void setOnCancelled(javafx.event.EventHandler<ConnectStateEvent> value)
GluonObservablesetOnCancelled in interface GluonObservablevalue - the event handler, can be null to clear itpublic void setOnRemoved(javafx.event.EventHandler<ConnectStateEvent> value)
GluonObservablesetOnRemoved in interface GluonObservablevalue - the event handler, can be null to clear itpublic E get(int index)
public int size()
protected void doAdd(int index,
E element)
element to the List at the position of index.
For the description of possible exceptions, please refer to the documentation
of AbstractList.add(java.lang.Object) method.
doAdd in class javafx.collections.ModifiableObservableListBase<E>index - the position where to add the elementelement - the element that will be addedjava.lang.ClassCastExceptionjava.lang.NullPointerExceptionjava.lang.IllegalArgumentExceptionjava.lang.IndexOutOfBoundsException - if the index is out of range
(index < 0 || index > size())protected E doSet(int index, E element)
element in the List at the position of index.
For the description of possible exceptions, please refer to the documentation
of ModifiableObservableListBase.set(int, java.lang.Object) method.
doSet in class javafx.collections.ModifiableObservableListBase<E>index - the position where to set the elementelement - the element that will be set at the specified positionjava.lang.ClassCastExceptionjava.lang.NullPointerExceptionjava.lang.IllegalArgumentExceptionjava.lang.IndexOutOfBoundsException - if the index is out of range
(index < 0 || index >= size())protected E doRemove(int index)
index.doRemove in class javafx.collections.ModifiableObservableListBase<E>index - the index of the removed elementjava.lang.IndexOutOfBoundsException - if the index is out of range
(index < 0 || index >= size())public javafx.event.EventDispatchChain buildEventDispatchChain(javafx.event.EventDispatchChain tail)
buildEventDispatchChain in interface javafx.event.EventTarget