org.jdmp.core.util
Class DefaultObservableList<V>

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by org.jdmp.core.util.DefaultObservableList<V>
All Implemented Interfaces:
Serializable, Iterable<V>, ListModel, CoreObjectList<V>, ObservableList<V>

public class DefaultObservableList<V>
extends AbstractListModel
implements ObservableList<V>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
DefaultObservableList()
           
DefaultObservableList(List<V> values)
           
 
Method Summary
 void add(V value)
           
 void addAll(Collection<V> values)
           
 void clear()
           
 void fireContentsChanged()
           
 V getElementAt(int index)
           
 int getSize()
           
 int indexOf(V value)
           
 boolean isEmpty()
           
 Iterator<V> iterator()
           
 boolean remove(V value)
           
 Collection<V> toCollection()
           
 String toString()
           
 
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, wait, wait, wait
 
Methods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
 

Constructor Detail

DefaultObservableList

public DefaultObservableList()

DefaultObservableList

public DefaultObservableList(List<V> values)
Method Detail

getElementAt

public V getElementAt(int index)
Specified by:
getElementAt in interface ListModel
Specified by:
getElementAt in interface CoreObjectList<V>

clear

public void clear()
Specified by:
clear in interface CoreObjectList<V>

getSize

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

indexOf

public int indexOf(V value)
Specified by:
indexOf in interface CoreObjectList<V>

add

public void add(V value)
Specified by:
add in interface ObservableList<V>

addAll

public void addAll(Collection<V> values)
Specified by:
addAll in interface ObservableList<V>

remove

public boolean remove(V value)
Specified by:
remove in interface ObservableList<V>

iterator

public Iterator<V> iterator()
Specified by:
iterator in interface Iterable<V>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface CoreObjectList<V>

toCollection

public Collection<V> toCollection()
Specified by:
toCollection in interface CoreObjectList<V>

toString

public String toString()
Overrides:
toString in class Object

fireContentsChanged

public void fireContentsChanged()
Specified by:
fireContentsChanged in interface CoreObjectList<V>


Copyright © 2009. All Rights Reserved.