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

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

public class DefaultObservableMap<V>
extends AbstractListModel
implements ObservableMap<V>

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
DefaultObservableMap()
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set<Map.Entry<Object,V>> entrySet()
           
 void fireContentsChanged()
           
 V get(Object key)
           
 V getElementAt(int index)
           
 int getSize()
           
 int indexOf(V value)
           
 boolean isEmpty()
           
 Iterator<V> iterator()
           
 Set<Object> keySet()
           
 V put(Object key, V value)
           
 void putAll(Map<? extends Object,? extends V> m)
           
 V remove(Object key)
           
 int size()
           
 Collection<V> toCollection()
           
 String toString()
           
 Collection<V> values()
           
 
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
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

DefaultObservableMap

public DefaultObservableMap()
Method Detail

getElementAt

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

get

public V get(Object key)
Specified by:
get in interface Map<Object,V>

indexOf

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

getSize

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

put

public V put(Object key,
             V value)
Specified by:
put in interface Map<Object,V>

remove

public V remove(Object key)
Specified by:
remove in interface Map<Object,V>

fireContentsChanged

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

iterator

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

isEmpty

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

clear

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

toCollection

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

keySet

public Set<Object> keySet()
Specified by:
keySet in interface Map<Object,V>

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<Object,V>

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<Object,V>

entrySet

public Set<Map.Entry<Object,V>> entrySet()
Specified by:
entrySet in interface Map<Object,V>

putAll

public void putAll(Map<? extends Object,? extends V> m)
Specified by:
putAll in interface Map<Object,V>

size

public int size()
Specified by:
size in interface Map<Object,V>

values

public Collection<V> values()
Specified by:
values in interface Map<Object,V>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009. All Rights Reserved.