- Type Parameters:
T
- Type of element stored in model.
@Deprecated
public class NamedItemModel<T>
extends AbstractMap<String,T>
implements ListModel<Map.Entry<String,T>>, SortedMap<String,T>
Deprecated.
Deprecated.
Map linking key and some immutable object. Allows clients to listen for updates,
additions and removals. Note that submaps will not fire events originating in
the primary map. Renaming a key will trigger an add and a remove list event
and a single update event. Change events are useful for propagating
updates to existing dependents. List data events guaranteed to be fired before
update events.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListDataListener
(ListDataListener pListener) Deprecated.void
addUpdateListener
(UpdateListener<? super T> pListener) Deprecated.Comparator<? super String>
Deprecated.entrySet()
Deprecated.firstKey()
Deprecated.getElementAt
(int pIdx) Deprecated.int
getSize()
Deprecated.Deprecated.keySet()
Deprecated.lastKey()
Deprecated.Deprecated.Add/replace element and fire events.void
removeListDataListener
(ListDataListener pListener) Deprecated.void
removeUpdateListener
(UpdateListener<? super T> pListener) Deprecated.void
Deprecated.Update entry key.Deprecated.Deprecated.Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, putAll, remove, size, toString, values
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size
-
Constructor Details
-
NamedItemModel
public NamedItemModel()Deprecated.
-
-
Method Details
-
addListDataListener
Deprecated.- Specified by:
addListDataListener
in interfaceListModel<T>
-
removeListDataListener
Deprecated.- Specified by:
removeListDataListener
in interfaceListModel<T>
-
addUpdateListener
Deprecated. -
removeUpdateListener
Deprecated. -
put
Deprecated.Add/replace element and fire events. -
renameKey
Deprecated.Update entry key. This method will trigger an update event rather than a removal followed by an addition.- Parameters:
pOldVal
- Original key value.pNewVal
- New key value.- Throws:
NoSuchElementException
- If new key exists or old key does not.
-
entrySet
Deprecated. -
comparator
Deprecated.- Specified by:
comparator
in interfaceSortedMap<String,
T>
-
firstKey
Deprecated. -
lastKey
Deprecated. -
keySet
Deprecated. -
headMap
Deprecated. -
tailMap
Deprecated. -
subMap
Deprecated. -
getElementAt
Deprecated.- Specified by:
getElementAt
in interfaceListModel<T>
-
getSize
public int getSize()Deprecated.
-