org.apache.pivot.wtk
Class Component.StyleDictionary
java.lang.Object
org.apache.pivot.wtk.Component.StyleDictionary
- All Implemented Interfaces:
- Iterable<String>, org.apache.pivot.collections.Dictionary<String,Object>
- Enclosing class:
- Component
public final class Component.StyleDictionary
- extends Object
- implements org.apache.pivot.collections.Dictionary<String,Object>, Iterable<String>
Style dictionary implementation.
| Nested classes/interfaces inherited from interface org.apache.pivot.collections.Dictionary |
org.apache.pivot.collections.Dictionary.Pair<K,V> |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
get
public Object get(String key)
- Specified by:
get in interface org.apache.pivot.collections.Dictionary<String,Object>
put
public Object put(String key,
Object value)
- Stores the supplied value for the specified style.
NOTE The current implementation always returns
null due to the use of BeanAdapter to set the the new
value. (BeanAdapter does not look up the previous value for
performance reasons)
This also means that the logic determining whether to fire the the
event differs from other Pivot event firing code. The event will be
fired each time this method is executed, regardless of whether the
new value differs from the old value or not.
This behaviour may change in the future so should not be relied upon.
- Specified by:
put in interface org.apache.pivot.collections.Dictionary<String,Object>
- Parameters:
key - Style whose value will be overwrittenvalue - Value to be stored
- Returns:
- The previous value of the specified style (See note above)
- See Also:
BeanAdapter.put(String, Object)
remove
public Object remove(String key)
- Specified by:
remove in interface org.apache.pivot.collections.Dictionary<String,Object>
containsKey
public boolean containsKey(String key)
- Specified by:
containsKey in interface org.apache.pivot.collections.Dictionary<String,Object>
isReadOnly
public boolean isReadOnly(String key)
getType
public Class<?> getType(String key)
iterator
public Iterator<String> iterator()
- Specified by:
iterator in interface Iterable<String>