org.granite.client.tide.collections.javafx
Class JavaFXManagedPersistentCollection<T>
java.lang.Object
org.granite.client.tide.collections.javafx.AbstractJavaFXManagedPersistentAssociation
org.granite.client.tide.collections.javafx.JavaFXManagedPersistentCollection<T>
- All Implemented Interfaces:
- Iterable<T>, Collection<T>, List<T>, javafx.beans.Observable, javafx.collections.ObservableList<T>, LazyableCollection, ManagedPersistentAssociation, ManagedPersistentCollection<T>, Wrapper, PropertyHolder
public class JavaFXManagedPersistentCollection<T>
- extends AbstractJavaFXManagedPersistentAssociation
- implements javafx.collections.ObservableList<T>, ManagedPersistentCollection<T>
Internal implementation of persistent collection handling automatic lazy loading.
Used for wrapping persistent collections received from the server.
Should not be used directly.
- Author:
- William DRAI
| Methods inherited from class org.granite.client.tide.collections.javafx.AbstractJavaFXManagedPersistentAssociation |
addListener, checkForRead, checkForRead, checkForWrite, equals, getOwner, getPropertyName, getServerSession, getWrappedObject, hashCode, initialize, initializing, isInitializing, propertyResultHandler, removeListener, setProperty, setServerSession, toString, uninitialize, withInitialized |
JavaFXManagedPersistentCollection
public JavaFXManagedPersistentCollection(Identifiable entity,
String propertyName,
LazyableCollection list)
getObject
public Object getObject()
- Specified by:
getObject in interface PropertyHolder
getCollection
public LazyableCollection getCollection()
- Specified by:
getCollection in interface ManagedPersistentAssociation
isInitialized
public boolean isInitialized()
- Specified by:
isInitialized in interface LazyableCollection- Overrides:
isInitialized in class AbstractJavaFXManagedPersistentAssociation
size
public int size()
- Specified by:
size in interface Collection<T>- Specified by:
size in interface List<T>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Collection<T>- Specified by:
isEmpty in interface List<T>
clear
public void clear()
- Specified by:
clear in interface Collection<T>- Specified by:
clear in interface List<T>
get
public T get(int index)
- Specified by:
get in interface List<T>
contains
public boolean contains(Object item)
- Specified by:
contains in interface Collection<T>- Specified by:
contains in interface List<T>
containsAll
public boolean containsAll(Collection<?> items)
- Specified by:
containsAll in interface Collection<T>- Specified by:
containsAll in interface List<T>
toArray
public Object[] toArray()
- Specified by:
toArray in interface Collection<T>- Specified by:
toArray in interface List<T>
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray in interface Collection<T>- Specified by:
toArray in interface List<T>
add
public boolean add(T item)
- Specified by:
add in interface Collection<T>- Specified by:
add in interface List<T>
add
public void add(int index,
T item)
- Specified by:
add in interface List<T>
addAll
public boolean addAll(Collection<? extends T> items)
- Specified by:
addAll in interface Collection<T>- Specified by:
addAll in interface List<T>
addAll
public boolean addAll(int index,
Collection<? extends T> items)
- Specified by:
addAll in interface List<T>
addAll
public boolean addAll(T... items)
- Specified by:
addAll in interface javafx.collections.ObservableList<T>
set
public T set(int index,
T item)
- Specified by:
set in interface List<T>
setAll
public boolean setAll(Collection<? extends T> items)
- Specified by:
setAll in interface javafx.collections.ObservableList<T>
setAll
public boolean setAll(T... items)
- Specified by:
setAll in interface javafx.collections.ObservableList<T>
remove
public T remove(int index)
- Specified by:
remove in interface List<T>
remove
public boolean remove(Object item)
- Specified by:
remove in interface Collection<T>- Specified by:
remove in interface List<T>
remove
public void remove(int fromIndex,
int toIndex)
- Specified by:
remove in interface javafx.collections.ObservableList<T>
removeAll
public boolean removeAll(Collection<?> items)
- Specified by:
removeAll in interface Collection<T>- Specified by:
removeAll in interface List<T>
removeAll
public boolean removeAll(T... items)
- Specified by:
removeAll in interface javafx.collections.ObservableList<T>
retainAll
public boolean retainAll(Collection<?> items)
- Specified by:
retainAll in interface Collection<T>- Specified by:
retainAll in interface List<T>
retainAll
public boolean retainAll(T... items)
- Specified by:
retainAll in interface javafx.collections.ObservableList<T>
indexOf
public int indexOf(Object item)
- Specified by:
indexOf in interface List<T>
lastIndexOf
public int lastIndexOf(Object item)
- Specified by:
lastIndexOf in interface List<T>
iterator
public Iterator<T> iterator()
- Specified by:
iterator in interface Iterable<T>- Specified by:
iterator in interface Collection<T>- Specified by:
iterator in interface List<T>
listIterator
public ListIterator<T> listIterator()
- Specified by:
listIterator in interface List<T>
listIterator
public ListIterator<T> listIterator(int index)
- Specified by:
listIterator in interface List<T>
subList
public List<T> subList(int fromIndex,
int toIndex)
- Specified by:
subList in interface List<T>
addListener
public void addListener(javafx.beans.InvalidationListener listener)
- Specified by:
addListener in interface javafx.beans.Observable
addListener
public void addListener(javafx.collections.ListChangeListener<? super T> listener)
- Specified by:
addListener in interface javafx.collections.ObservableList<T>
removeListener
public void removeListener(javafx.beans.InvalidationListener listener)
- Specified by:
removeListener in interface javafx.beans.Observable
removeListener
public void removeListener(javafx.collections.ListChangeListener<? super T> listener)
- Specified by:
removeListener in interface javafx.collections.ObservableList<T>
clone
public LazyableCollection clone(boolean uninitialize)
- Specified by:
clone in interface LazyableCollection