rcf.system.gui.util
Class GUIImmutableCollection<T,C extends rcf.core.util.collection.ImmutableCollection<T>>

java.lang.Object
  extended by rcf.core.util.groups.Singleton<C>
      extended by rcf.system.gui.util.GUIImmutableCollection<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>
Direct Known Subclasses:
GUICollection

@Revision(value="$Revision: 1.1 $",
          date="$Date: 2006/12/16 17:52:40 $",
          tag="$Name:  $")
public class GUIImmutableCollection<T,C extends rcf.core.util.collection.ImmutableCollection<T>>
extends Singleton<C>
implements ListModel, rcf.core.util.accessor.GUIAccessing<T>

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
 class GUIImmutableCollection.PopupAdapter
          TODO: Javadoc
protected  class GUIImmutableCollection.Renderer
          TODO: Javadoc
 
Nested classes/interfaces inherited from class rcf.core.util.groups.Singleton
Singleton.Iterable<A>, Singleton.Iterator<A>
 
Field Summary
protected  rcf.core.util.accessor.GUIAccessor<? super T> accessor
          TODO: Javadoc
protected  JList jlist
          TODO: Javadoc
protected  ListCellRenderer renderer
          TODO: Javadoc
 
Fields inherited from class rcf.core.util.groups.Singleton
a
 
Constructor Summary
GUIImmutableCollection(rcf.core.util.accessor.GUIAccessor<? super T> _accessor, C _collection)
          TODO: Javadoc
 
Method Summary
 rcf.core.util.accessor.GUIAccessor<? super T> accessor()
           
 void addListDataListener(ListDataListener l)
           
 boolean equals(Object o)
           
 Object getElementAt(int index)
           
 int getSize()
           
 int hashCode()
           
 void removeListDataListener(ListDataListener l)
           
 ListCellRenderer renderer()
          TODO: Javadoc
 void setJList(JList _jlist)
          TODO: Javadoc
static boolean test1()
          TODO: Javadoc TODO: Unit test javadoc
 String 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

jlist

protected JList jlist
TODO: Javadoc


accessor

protected final rcf.core.util.accessor.GUIAccessor<? super T> accessor
TODO: Javadoc


renderer

protected final ListCellRenderer renderer
TODO: Javadoc

Constructor Detail

GUIImmutableCollection

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

Parameters:
_accessor -
_collection -
Method Detail

test1

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

Returns:
true if this test has passed.

accessor

public rcf.core.util.accessor.GUIAccessor<? super T> accessor()
Specified by:
accessor in interface rcf.core.util.accessor.Accessing<T>
Specified by:
accessor in interface rcf.core.util.accessor.GUIAccessing<T>

addListDataListener

public void addListDataListener(ListDataListener l)
Specified by:
addListDataListener in interface ListModel

equals

public boolean equals(Object o)
Overrides:
equals in class Singleton<C extends rcf.core.util.collection.ImmutableCollection<T>>

getElementAt

public Object getElementAt(int index)
Specified by:
getElementAt in interface ListModel

getSize

public int getSize()
Specified by:
getSize in interface ListModel

hashCode

public int hashCode()
Overrides:
hashCode in class Singleton<C extends rcf.core.util.collection.ImmutableCollection<T>>

removeListDataListener

public void removeListDataListener(ListDataListener l)
Specified by:
removeListDataListener in interface ListModel

renderer

public ListCellRenderer renderer()
TODO: Javadoc

Returns:

setJList

public void setJList(JList _jlist)
TODO: Javadoc

Parameters:
_jlist -

toString

public String toString()
Overrides:
toString in class Singleton<C extends rcf.core.util.collection.ImmutableCollection<T>>