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 |
---|---|
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.
|
add, addAll, addAll, remove, remove, removeAll, removeRange, retainAll, set, setAll, subList
addAll, addListener, addListener, beginChange, endChange, fireChange, hasListeners, nextAdd, nextPermutation, nextRemove, nextRemove, nextReplace, nextSet, nextUpdate, remove, removeAll, removeListener, removeListener, retainAll, setAll
add, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator
contains, containsAll, isEmpty, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, addListener, filtered, remove, removeAll, removeListener, retainAll, setAll, setAll, sorted, sorted
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 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.ClassCastException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.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.ClassCastException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.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())