rcf.system.gui.util
Class GUICollection<T,C extends rcf.core.util.collection.Collection<T>>

java.lang.Object
  extended by rcf.core.util.groups.Singleton<C>
      extended by rcf.system.gui.util.GUIImmutableCollection<T,C>
          extended by rcf.system.gui.util.GUICollection<T,C>
Type Parameters:
T - TODO
C - TODO
All Implemented Interfaces:
ListModel, rcf.core.util.accessor.Accessing<T>, rcf.core.util.accessor.GUIAccessing<T>, ImmutableSingletonInterface<C>, SingletonInterface<C>

@Revision(value="$Revision: 1.1 $",
          date="$Date: 2006/12/16 17:52:39 $",
          tag="$Name:  $")
public class GUICollection<T,C extends rcf.core.util.collection.Collection<T>>
extends GUIImmutableCollection<T,C>

TODO: Javadoc

TODO: Unit tests, Code review, Javadoc review, Seal/Finalize TODO: equals, hashCode, toString

Version:
$Revision: 1.1 $
Author:
Greg Gibeling

Nested Class Summary
protected  class GUICollection.GUICollectionEventSink
          TODO: Javadoc
 
Nested classes/interfaces inherited from class rcf.system.gui.util.GUIImmutableCollection
GUIImmutableCollection.PopupAdapter, GUIImmutableCollection.Renderer
 
Nested classes/interfaces inherited from class rcf.core.util.groups.Singleton
Singleton.Iterable<A>, Singleton.Iterator<A>
 
Field Summary
protected  GUICollection.GUICollectionEventSink eventSink
          TODO: Javadoc
protected  rcf.core.util.collection.Collection<ListDataListener> listeners
          TODO: Javadoc
protected  rcf.core.util.collection.Collection<JComponent> repaints
          TODO: Javadoc
 
Fields inherited from class rcf.system.gui.util.GUIImmutableCollection
accessor, jlist, renderer
 
Fields inherited from class rcf.core.util.groups.Singleton
a
 
Constructor Summary
GUICollection(rcf.core.util.accessor.GUIAccessor<? super T> _accessor, C _collection)
          TODO: Javadoc
 
Method Summary
 void addListDataListener(ListDataListener l)
           
private  void allocate()
          TODO: Javadoc
private  void cleanup()
          TODO: Javadoc
private  void invokeSafe(ListDataEvent listEvent)
          TODO: Javadoc
private  void invokeUnsafe(ListDataEvent listEvent)
          TODO: Javadoc
 void removeListDataListener(ListDataListener l)
           
 rcf.core.util.collection.Collection<JComponent> repaints()
          TODO: Javadoc
static boolean test2()
          TODO: Javadoc TODO: Unit test javadoc
 
Methods inherited from class rcf.system.gui.util.GUIImmutableCollection
accessor, equals, getElementAt, getSize, hashCode, renderer, setJList, test1, toString
 
Methods inherited from class rcf.core.util.groups.Singleton
composeArrays, decomposeArrays, get, set
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

listeners

protected rcf.core.util.collection.Collection<ListDataListener> listeners
TODO: Javadoc


repaints

protected rcf.core.util.collection.Collection<JComponent> repaints
TODO: Javadoc


eventSink

protected GUICollection.GUICollectionEventSink eventSink
TODO: Javadoc

Constructor Detail

GUICollection

public GUICollection(rcf.core.util.accessor.GUIAccessor<? super T> _accessor,
                     C _collection)
TODO: Javadoc

Parameters:
_accessor -
_collection -
Method Detail

test2

@TestMethod
public static final boolean test2()
TODO: Javadoc TODO: Unit test javadoc

Returns:
true if this test has passed.

addListDataListener

public void addListDataListener(ListDataListener l)
Specified by:
addListDataListener in interface ListModel
Overrides:
addListDataListener in class GUIImmutableCollection<T,C extends rcf.core.util.collection.Collection<T>>

allocate

private void allocate()
TODO: Javadoc


cleanup

private void cleanup()
TODO: Javadoc


invokeSafe

private void invokeSafe(ListDataEvent listEvent)
TODO: Javadoc

Parameters:
listEvent -

invokeUnsafe

private void invokeUnsafe(ListDataEvent listEvent)
TODO: Javadoc

Parameters:
listEvent -

removeListDataListener

public void removeListDataListener(ListDataListener l)
Specified by:
removeListDataListener in interface ListModel
Overrides:
removeListDataListener in class GUIImmutableCollection<T,C extends rcf.core.util.collection.Collection<T>>

repaints

public rcf.core.util.collection.Collection<JComponent> repaints()
TODO: Javadoc

Returns: