E - the type of the elements inside this listGluonObservable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>, javafx.beans.Observable, javafx.collections.ObservableList<E>public class GluonObservableList<E> extends javafx.collections.ModifiableObservableListBase<E> implements GluonObservable, javafx.collections.ObservableList<E>
| Type | Property | 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 | Description |
|---|---|
GluonObservableList() |
| Modifier and Type | Method | Description |
|---|---|---|
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 |
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.
|
contains, containsAll, isEmpty, toArray, toArray, toStringadd, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIteratoradd, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, of, of, of, of, of, of, of, of, of, of, of, of, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArrayadd, addAll, addAll, remove, remove, removeAll, removeRange, retainAll, set, setAll, subListclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, addListener, filtered, remove, removeAll, removeListener, retainAll, setAll, setAll, sorted, sortedaddAll, addListener, addListener, beginChange, endChange, fireChange, hasListeners, nextAdd, nextPermutation, nextRemove, nextRemove, nextReplace, nextSet, nextUpdate, remove, removeAll, removeListener, removeListener, retainAll, setAllpublic 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 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())