org.apache.wicket.markup.parser
Class TagAttributes

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap<String,Object>
              extended by org.apache.wicket.util.value.ValueMap
                  extended by org.apache.wicket.markup.parser.TagAttributes
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>, IValueMap

public class TagAttributes
extends ValueMap

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class org.apache.wicket.util.value.ValueMap
EMPTY_MAP
 
Constructor Summary
TagAttributes()
          Constructs empty ValueMap.
TagAttributes(Map map)
          Copy constructor.
 
Method Summary
 Object put(String key, Object value)
           
 void putAll(Map map)
           
 Object putInternal(String key, Object value)
          Modifying the 'id' attribute should be made via Component.setMarkupId().
 
Methods inherited from class org.apache.wicket.util.value.ValueMap
add, clear, getAsBoolean, getAsBoolean, getAsDouble, getAsDouble, getAsDuration, getAsDuration, getAsEnum, getAsEnum, getAsEnum, getAsInteger, getAsInteger, getAsLong, getAsLong, getAsTime, getAsTime, getBoolean, getCharSequence, getDouble, getDouble, getDuration, getInt, getInt, getKey, getLong, getLong, getString, getString, getStringArray, getStringValue, getTime, isImmutable, makeImmutable, remove, toString
 
Methods inherited from class java.util.LinkedHashMap
containsValue, get, removeEldestEntry
 
Methods inherited from class java.util.HashMap
clone, containsKey, entrySet, isEmpty, keySet, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, size, values
 

Constructor Detail

TagAttributes

public TagAttributes()
Constructs empty ValueMap.


TagAttributes

public TagAttributes(Map map)
Copy constructor.

Parameters:
map - the ValueMap to copy
Method Detail

put

public final Object put(String key,
                        Object value)
Specified by:
put in interface Map<String,Object>
Overrides:
put in class ValueMap
See Also:
ValueMap.put(java.lang.String, java.lang.Object)

putInternal

public final Object putInternal(String key,
                                Object value)
Modifying the 'id' attribute should be made via Component.setMarkupId(). But the markup parser must still be able to add the 'id' attribute without warning.

Parameters:
key -
value -
Returns:
The old value

putAll

public final void putAll(Map map)
Specified by:
putAll in interface Map<String,Object>
Overrides:
putAll in class ValueMap
See Also:
ValueMap.putAll(java.util.Map)


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.