public class ObservablePersistentList<E> extends com.sun.javafx.collections.ObservableListWrapper<E> implements UnsafePersistentCollection<java.util.List<E>>
PersistentCollection.ChangeListener<C>, PersistentCollection.InitializationCallback<C>, PersistentCollection.InitializationListener<C>, PersistentCollection.Initializer<C>| Constructor and Description |
|---|
ObservablePersistentList(PersistentList<E> persistentList) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(PersistentCollection.ChangeListener<java.util.List<E>> listener)
Register a change listener
|
void |
addListener(PersistentCollection.InitializationListener<java.util.List<E>> listener)
Register a initialization listener
|
void |
clearDirty()
Clear the dirty state of the collection
|
PersistentCollection<java.util.List<E>> |
clone(boolean uninitialize)
Clone a persistent collection
|
void |
dirty()
Mark the collection as dirty
|
boolean |
equals(java.lang.Object object) |
Loader<java.util.List<E>> |
getLoader()
Loader for the collection
|
int |
hashCode() |
void |
initialize(java.util.List<E> list,
PersistentCollection.Initializer<java.util.List<E>> initializer)
Mark the collection as initialized, called after the content is loaded
|
void |
initializing()
Mark the collection as currently initializing so next access do not trigger loading
|
PersistentList<E> |
internalPersistentCollection() |
boolean |
isDirty()
Is the collection dirty ?
|
void |
readExternal(java.io.ObjectInput in) |
void |
removeListener(PersistentCollection.ChangeListener<java.util.List<E>> listener)
Unregister a change listener
|
void |
removeListener(PersistentCollection.InitializationListener<java.util.List<E>> listener)
Unregister a initialization listener
|
void |
setLoader(Loader<java.util.List<E>> loader)
Set a loader for the collection
|
java.lang.String |
toString() |
void |
uninitialize()
Unload the collection and unset its initialized state
|
boolean |
wasInitialized()
Was the collection was initialized
|
void |
withInitialized(PersistentCollection.InitializationCallback<java.util.List<E>> callback)
Execute the specified callback after ensuring the collection has been loaded
If it was not loaded, the callack is called asynchronously after loading is complete
|
void |
writeExternal(java.io.ObjectOutput out) |
add, add, addAll, addAll, addAll, addListener, addListener, callObservers, clear, contains, containsAll, get, hasObserver, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, remove, removeAll, removeAll, removeFromList, removeListener, removeListener, retainAll, retainAll, set, setAll, setAll, size, sort, sort, subList, toArray, toArraypublic ObservablePersistentList(PersistentList<E> persistentList)
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic boolean wasInitialized()
PersistentCollectionwasInitialized in interface PersistentCollection<java.util.List<E>>public void uninitialize()
PersistentCollectionuninitialize in interface PersistentCollection<java.util.List<E>>public void initialize(java.util.List<E> list, PersistentCollection.Initializer<java.util.List<E>> initializer)
PersistentCollectioninitialize in interface PersistentCollection<java.util.List<E>>public void initializing()
PersistentCollectioninitializing in interface PersistentCollection<java.util.List<E>>public PersistentCollection<java.util.List<E>> clone(boolean uninitialize)
PersistentCollectionclone in interface PersistentCollection<java.util.List<E>>uninitialize - true to get an uninitialized clone of a lazy collectionpublic Loader<java.util.List<E>> getLoader()
PersistentCollectiongetLoader in interface PersistentCollection<java.util.List<E>>public void setLoader(Loader<java.util.List<E>> loader)
PersistentCollectionsetLoader in interface PersistentCollection<java.util.List<E>>loader - loader that will be called when a lazy collection is accessedpublic boolean isDirty()
PersistentCollectionisDirty in interface PersistentCollection<java.util.List<E>>public void dirty()
PersistentCollectiondirty in interface PersistentCollection<java.util.List<E>>public void clearDirty()
PersistentCollectionclearDirty in interface PersistentCollection<java.util.List<E>>public void addListener(PersistentCollection.ChangeListener<java.util.List<E>> listener)
PersistentCollectionaddListener in interface PersistentCollection<java.util.List<E>>listener - listenerpublic void removeListener(PersistentCollection.ChangeListener<java.util.List<E>> listener)
PersistentCollectionremoveListener in interface PersistentCollection<java.util.List<E>>listener - listenerpublic void addListener(PersistentCollection.InitializationListener<java.util.List<E>> listener)
PersistentCollectionaddListener in interface PersistentCollection<java.util.List<E>>listener - listenerpublic void removeListener(PersistentCollection.InitializationListener<java.util.List<E>> listener)
PersistentCollectionremoveListener in interface PersistentCollection<java.util.List<E>>listener - listenerpublic void withInitialized(PersistentCollection.InitializationCallback<java.util.List<E>> callback)
PersistentCollectionwithInitialized in interface PersistentCollection<java.util.List<E>>callback - callback method to executepublic PersistentList<E> internalPersistentCollection()
internalPersistentCollection in interface UnsafePersistentCollection<java.util.List<E>>public java.lang.String toString()
toString in class com.sun.javafx.collections.ObservableListWrapper<E>public int hashCode()