|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pivot.collections.MapListener.Adapter<K,V>
public static class MapListener.Adapter<K,V>
Map listener adapter.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.pivot.collections.MapListener |
|---|
MapListener.Adapter<K,V> |
| Constructor Summary | |
|---|---|
MapListener.Adapter()
|
|
| Method Summary | |
|---|---|
void |
comparatorChanged(Map<K,V> map,
Comparator<K> previousComparator)
Called when a map's comparator has changed. |
void |
mapCleared(Map<K,V> map)
Called when map data has been reset. |
void |
valueAdded(Map<K,V> map,
K key)
Called when a key/value pair has been added to a map. |
void |
valueRemoved(Map<K,V> map,
K key,
V value)
Called when a key/value pair has been removed from a map. |
void |
valueUpdated(Map<K,V> map,
K key,
V previousValue)
Called when a map value has been updated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapListener.Adapter()
| Method Detail |
|---|
public void valueAdded(Map<K,V> map,
K key)
MapListener
valueAdded in interface MapListener<K,V>map - The source of the map event.key - The key that was added to the map.
public void valueUpdated(Map<K,V> map,
K key,
V previousValue)
MapListener
valueUpdated in interface MapListener<K,V>map - The source of the map event.key - The key whose value was updated.previousValue - The value that was previously associated with the key.
public void valueRemoved(Map<K,V> map,
K key,
V value)
MapListener
valueRemoved in interface MapListener<K,V>map - The source of the map event.key - The key that was removed.value - The value that was removed.public void mapCleared(Map<K,V> map)
MapListener
mapCleared in interface MapListener<K,V>map - The source of the map event.
public void comparatorChanged(Map<K,V> map,
Comparator<K> previousComparator)
MapListener
comparatorChanged in interface MapListener<K,V>map - The source of the event.previousComparator - The previous comparator value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||