org.apache.tiles.context
Class ComponentListAttribute

Package class diagram package ComponentListAttribute
java.lang.Object
  extended by org.apache.tiles.ComponentAttribute
      extended by org.apache.tiles.context.ComponentListAttribute
All Implemented Interfaces:
java.io.Serializable

public class ComponentListAttribute
extends org.apache.tiles.ComponentAttribute

An attribute as a List. This attribute associates a name with a list. The list can be found by the property name. Elements in list are retrieved using List methods. This class is used to read configuration files.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.tiles.ComponentAttribute
DEFINITION, role, STRING, TEMPLATE, value
 
Constructor Summary
ComponentListAttribute()
          Constructor.
ComponentListAttribute(java.lang.String name, java.util.List<java.lang.Object> value)
          Constructor.
 
Method Summary
 void add(org.apache.tiles.ComponentAttribute element)
          Add an element in list.
 void add(java.lang.Object value)
          Add an element in list.
 void addObject(java.lang.Object value)
          Add an element in list.
 
Methods inherited from class org.apache.tiles.ComponentAttribute
getAttributes, getName, getRole, getType, getValue, setAttributes, setBody, setName, setRole, setType, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComponentListAttribute

public ComponentListAttribute()
Constructor.


ComponentListAttribute

public ComponentListAttribute(java.lang.String name,
                              java.util.List<java.lang.Object> value)
Constructor.

Parameters:
name - Name.
value - List.
Method Detail

add

public void add(org.apache.tiles.ComponentAttribute element)
Add an element in list. We use a property to avoid rewriting a new class.

Parameters:
element - XmlAttribute to add.

add

public void add(java.lang.Object value)
Add an element in list.

Parameters:
value - Object to add.

addObject

public void addObject(java.lang.Object value)
Add an element in list.

Parameters:
value - Object to add.