org.tbee.swing.glazedlists
Class DelayedEventList<T>

java.lang.Object
  extended by org.tbee.swing.glazedlists.DelayedEventList<T>
Type Parameters:
T -
All Implemented Interfaces:
ca.odell.glazedlists.EventList<T>, java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>

public class DelayedEventList<T>
extends java.lang.Object
implements ca.odell.glazedlists.EventList<T>

holds off on actually adding a element to the list until the element has fired a PCE

Author:
user

Field Summary
protected  ca.odell.glazedlists.BasicEventList<T> iBasicEventList
           
protected  T iDelayedEntity
           
 
Constructor Summary
DelayedEventList()
           
 
Method Summary
 void add(int index, T element)
           
 boolean add(T element)
           
 boolean addAll(java.util.Collection<? extends T> collection)
           
 boolean addAll(int index, java.util.Collection<? extends T> collection)
           
 void addListEventListener(ca.odell.glazedlists.event.ListEventListener<? super T> listChangeListener)
           
 void clear()
           
 boolean contains(java.lang.Object object)
           
 boolean containsAll(java.util.Collection<?> values)
           
 void dispose()
           
 boolean equals(java.lang.Object object)
           
 T get(int index)
           
 ca.odell.glazedlists.event.ListEventPublisher getPublisher()
           
 ca.odell.glazedlists.util.concurrent.ReadWriteLock getReadWriteLock()
           
 int hashCode()
           
 int indexOf(java.lang.Object object)
           
 boolean isEmpty()
           
 java.util.Iterator<T> iterator()
           
 int lastIndexOf(java.lang.Object object)
           
 java.util.ListIterator<T> listIterator()
           
 java.util.ListIterator<T> listIterator(int index)
           
 T remove(int index)
           
 boolean remove(java.lang.Object element)
           
 boolean removeAll(java.util.Collection<?> collection)
           
 void removeListEventListener(ca.odell.glazedlists.event.ListEventListener<? super T> listChangeListener)
           
 boolean retainAll(java.util.Collection<?> collection)
           
 T set(int index, T element)
           
 int size()
           
 java.util.List<T> subList(int fromIndex, int toIndex)
           
 java.lang.Object[] toArray()
           
<T> T[]
toArray(T[] array)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

iBasicEventList

protected ca.odell.glazedlists.BasicEventList<T> iBasicEventList

iDelayedEntity

protected T iDelayedEntity
Constructor Detail

DelayedEventList

public DelayedEventList()
Method Detail

add

public void add(int index,
                T element)
Specified by:
add in interface java.util.List<T>

add

public boolean add(T element)
Specified by:
add in interface java.util.Collection<T>
Specified by:
add in interface java.util.List<T>

addAll

public boolean addAll(java.util.Collection<? extends T> collection)
Specified by:
addAll in interface java.util.Collection<T>
Specified by:
addAll in interface java.util.List<T>

addAll

public boolean addAll(int index,
                      java.util.Collection<? extends T> collection)
Specified by:
addAll in interface java.util.List<T>

addListEventListener

public void addListEventListener(ca.odell.glazedlists.event.ListEventListener<? super T> listChangeListener)
Specified by:
addListEventListener in interface ca.odell.glazedlists.EventList<T>

clear

public void clear()
Specified by:
clear in interface java.util.Collection<T>
Specified by:
clear in interface java.util.List<T>

contains

public boolean contains(java.lang.Object object)
Specified by:
contains in interface java.util.Collection<T>
Specified by:
contains in interface java.util.List<T>

containsAll

public boolean containsAll(java.util.Collection<?> values)
Specified by:
containsAll in interface java.util.Collection<T>
Specified by:
containsAll in interface java.util.List<T>

dispose

public void dispose()
Specified by:
dispose in interface ca.odell.glazedlists.EventList<T>

equals

public boolean equals(java.lang.Object object)
Specified by:
equals in interface java.util.Collection<T>
Specified by:
equals in interface java.util.List<T>
Overrides:
equals in class java.lang.Object

get

public T get(int index)
Specified by:
get in interface java.util.List<T>

getPublisher

public ca.odell.glazedlists.event.ListEventPublisher getPublisher()
Specified by:
getPublisher in interface ca.odell.glazedlists.EventList<T>

getReadWriteLock

public ca.odell.glazedlists.util.concurrent.ReadWriteLock getReadWriteLock()
Specified by:
getReadWriteLock in interface ca.odell.glazedlists.EventList<T>

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Collection<T>
Specified by:
hashCode in interface java.util.List<T>
Overrides:
hashCode in class java.lang.Object

indexOf

public int indexOf(java.lang.Object object)
Specified by:
indexOf in interface java.util.List<T>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Collection<T>
Specified by:
isEmpty in interface java.util.List<T>

iterator

public java.util.Iterator<T> iterator()
Specified by:
iterator in interface java.lang.Iterable<T>
Specified by:
iterator in interface java.util.Collection<T>
Specified by:
iterator in interface java.util.List<T>

lastIndexOf

public int lastIndexOf(java.lang.Object object)
Specified by:
lastIndexOf in interface java.util.List<T>

listIterator

public java.util.ListIterator<T> listIterator()
Specified by:
listIterator in interface java.util.List<T>

listIterator

public java.util.ListIterator<T> listIterator(int index)
Specified by:
listIterator in interface java.util.List<T>

remove

public T remove(int index)
Specified by:
remove in interface java.util.List<T>

remove

public boolean remove(java.lang.Object element)
Specified by:
remove in interface java.util.Collection<T>
Specified by:
remove in interface java.util.List<T>

removeAll

public boolean removeAll(java.util.Collection<?> collection)
Specified by:
removeAll in interface java.util.Collection<T>
Specified by:
removeAll in interface java.util.List<T>

removeListEventListener

public void removeListEventListener(ca.odell.glazedlists.event.ListEventListener<? super T> listChangeListener)
Specified by:
removeListEventListener in interface ca.odell.glazedlists.EventList<T>

retainAll

public boolean retainAll(java.util.Collection<?> collection)
Specified by:
retainAll in interface java.util.Collection<T>
Specified by:
retainAll in interface java.util.List<T>

set

public T set(int index,
             T element)
Specified by:
set in interface java.util.List<T>

size

public int size()
Specified by:
size in interface java.util.Collection<T>
Specified by:
size in interface java.util.List<T>

subList

public java.util.List<T> subList(int fromIndex,
                                 int toIndex)
Specified by:
subList in interface java.util.List<T>

toArray

public java.lang.Object[] toArray()
Specified by:
toArray in interface java.util.Collection<T>
Specified by:
toArray in interface java.util.List<T>

toArray

public <T> T[] toArray(T[] array)
Specified by:
toArray in interface java.util.Collection<T>
Specified by:
toArray in interface java.util.List<T>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010 KnowledgePlaza. All Rights Reserved.