java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractList<T>
javafx.collections.ObservableListBase<T>
javafx.collections.ModifiableObservableListBase<T>
com.iamsoft.util.ui.javafx.collections.DefaultObservableList<T>
com.iamsoft.util.ui.javafx.collections.ObservableArrayList<T>
com.iamsoft.util.ui.javafx.collections.ProvisionalList<T>
- All Implemented Interfaces:
PermutableObservableList<T>
,Iterable<T>
,Collection<T>
,List<T>
,SequencedCollection<T>
,javafx.beans.Observable
,javafx.collections.ObservableList<T>
-
Property Summary
Properties -
Nested Class Summary
Nested classes/interfaces inherited from class com.iamsoft.util.ui.javafx.collections.ObservableArrayList
ObservableArrayList.Exposed<E>
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorsConstructorDescriptionProvisionalList
(javafx.collections.ObservableList<T> pSourceList) ProvisionalList
(javafx.collections.ObservableList<T> pSourceList, javafx.util.Callback<T, List<Object>> pExtractor, Supplier<T> pItemFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
commit()
Apply the changes made to the provisional list to the source list.void
connect()
javafx.beans.property.ReadOnlyBooleanProperty
javafx.beans.property.ReadOnlyBooleanProperty
void
boolean
Gets the value of theconnected
property.boolean
isDirty()
True if pending updates exist.void
revert()
Revert the changes made to the provisional list.Methods inherited from class com.iamsoft.util.ui.javafx.collections.ObservableArrayList
addAll, addAll, removeRange
Methods inherited from class com.iamsoft.util.ui.javafx.collections.DefaultObservableList
addElementObserver, addElementObservers, clear, contains, doAdd, doRemove, doSet, get, getDelegate, indexOf, lastIndexOf, permutate, removeElementObserver, removeElementObservers, resetElementObserver, size
Methods inherited from class javafx.collections.ModifiableObservableListBase
add, remove, remove, removeAll, retainAll, set, setAll, subList
Methods inherited from class javafx.collections.ObservableListBase
addAll, addListener, addListener, beginChange, endChange, fireChange, hasListeners, nextAdd, nextPermutation, nextRemove, nextRemove, nextReplace, nextSet, nextUpdate, remove, removeAll, removeListener, removeListener, retainAll, setAll
Methods inherited from class java.util.AbstractList
add, equals, hashCode, iterator, listIterator, listIterator
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
add, add, addFirst, addLast, containsAll, equals, getFirst, getLast, hashCode, isEmpty, iterator, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, sort, spliterator, subList, toArray, toArray
Methods inherited from interface javafx.beans.Observable
addListener, removeListener, subscribe
Methods inherited from interface javafx.collections.ObservableList
addAll, addListener, filtered, remove, removeAll, removeListener, retainAll, setAll, setAll, sorted, sorted
-
Property Details
-
dirty
public javafx.beans.property.ReadOnlyBooleanProperty dirtyProperty- See Also:
-
connected
public javafx.beans.property.ReadOnlyBooleanProperty connectedProperty- See Also:
-
-
Constructor Details
-
ProvisionalList
-
ProvisionalList
public ProvisionalList(javafx.collections.ObservableList<T> pSourceList, javafx.util.Callback<T, List<Object>> pExtractor, Supplier<T> pItemFactory) - Parameters:
pExtractor
- The extractor should always return the same number of observables in the same order for all items. Otherwise, the copy operation will not work properly.
-
-
Method Details
-
dirtyProperty
public javafx.beans.property.ReadOnlyBooleanProperty dirtyProperty()- Returns:
- the
dirty
property - See Also:
-
isDirty
public boolean isDirty()True if pending updates exist. -
connectedProperty
public javafx.beans.property.ReadOnlyBooleanProperty connectedProperty()- Returns:
- the
connected
property - See Also:
-
isConnected
public boolean isConnected()Gets the value of theconnected
property.- Property description:
- Returns:
- the value of the
connected
property - See Also:
-
connect
public void connect() -
disconnect
public void disconnect() -
revert
public void revert()Revert the changes made to the provisional list. -
commit
public void commit()Apply the changes made to the provisional list to the source list.
-