|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AVList
An interface for managing an attribute-value pair collection.
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds the specified all-property property change listener that will be called for all list changes. |
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Adds a property change listener for the specified key. |
AVList |
clearList()
|
AVList |
copy()
Returns a shallow copy of this AVList instance: the keys and values themselves are not cloned. |
void |
firePropertyChange(PropertyChangeEvent propertyChangeEvent)
Calls all registered property change listeners with the specified property change event. |
void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Calls all property change listeners associated with the specified key. |
Set<Map.Entry<String,Object>> |
getEntries()
|
String |
getStringValue(String key)
Returns the value for a specified key. |
Object |
getValue(String key)
Returns the value for a specified key. |
Collection<Object> |
getValues()
|
boolean |
hasKey(String key)
Indicates whether a key is in the collection. |
void |
removeKey(String key)
Removes a specified key from the collection if the key exists, otherwise returns without affecting the collection. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes the specified all-property property change listener. |
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Removes a property change listener associated with the specified key. |
void |
setValue(String key,
Object value)
Adds a key/value pair to the list. |
void |
setValues(AVList avList)
|
| Method Detail |
|---|
void addPropertyChangeListener(PropertyChangeListener listener)
listener - the listener to call.
IllegalArgumentException - if listener is nullPropertyChangeSupport
void addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
propertyName - the key to associate the listener with.listener - the listener to associate with the key.
IllegalArgumentException - if either propertyName or listener is nullPropertyChangeSupportAVList clearList()
AVList copy()
AVList instance: the keys and values themselves are not cloned.
AVList.void firePropertyChange(PropertyChangeEvent propertyChangeEvent)
propertyChangeEvent - the event
IllegalArgumentException - if propertyChangeEvent is nullPropertyChangeSupport
void firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
odValue and newValue are equal and non-null.
propertyName - the keyoldValue - the value associated with the key before the even causing the firing.newValue - the new value associated with the key.
IllegalArgumentException - if propertyName is nullPropertyChangeSupportSet<Map.Entry<String,Object>> getEntries()
String getStringValue(String key)
String.
key - the attribute name. May not be null.
null.
NullPointerException - if key is null.
WWRuntimeException - if the value in the collection is not a String type.Object getValue(String key)
key - the attribute name. May not be null.
null.
NullPointerException - if key is null.Collection<Object> getValues()
boolean hasKey(String key)
key - the attribute name. May not be null.
true if the key exists in the collection, otherwise false.
NullPointerException - if key is null.void removeKey(String key)
key - the attribute name. May not be null.
NullPointerException - if key is null.void removePropertyChangeListener(PropertyChangeListener listener)
listener - the listener to remove.
IllegalArgumentException - if listener is nullPropertyChangeSupport
void removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
propertyName - the key associated with the change listener.listener - the listener to remove.
IllegalArgumentException - if either propertyName or listener is nullPropertyChangeSupport
void setValue(String key,
Object value)
key - the attribute name. May not be null.value - the attribute value. May be null, in which case any existing value for the key is
removed from the collection.
NullPointerException - if key is null.void setValues(AVList avList)
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||