org.progeeks.meta.swing.editor
Class CollectionModelAdapter

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by org.progeeks.meta.swing.editor.CollectionModelAdapter
All Implemented Interfaces:
java.io.Serializable, javax.swing.ListModel

public class CollectionModelAdapter
extends javax.swing.AbstractListModel

Adapts a javax.swing.ListModel to a PropertyMutator containing a Collection-based value. Note: this model internally caches the values in an ArrayList.

Version:
$Revision: 1.2 $
Author:
Paul Speed
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
CollectionModelAdapter()
           
 
Method Summary
 java.lang.Object getElementAt(int index)
           
 int getSize()
           
 void setMutator(PropertyMutator mutator)
           
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionModelAdapter

public CollectionModelAdapter()
Method Detail

setMutator

public void setMutator(PropertyMutator mutator)

getElementAt

public java.lang.Object getElementAt(int index)

getSize

public int getSize()


Copyright © 2002-2003 Paul Speed. All Rights Reserved.