This project has retired. For details please refer to its
        
        Attic page .
      
RepeaterAsList (Cocoon API 2.1.12-dev [March 20 2012])
 
 
org.apache.cocoon.forms.util 
 
java.lang.Object 
  java.util.AbstractCollection <E>
      java.util.AbstractList 
          org.apache.cocoon.forms.util.RepeaterAsList 
 
All Implemented Interfaces:  Iterable , Collection , List  
public class RepeaterAsList  extends AbstractList   
A List view of a RepeaterMap
 wrapping a repeater row, as defined by ContainerWidgetAsMap
 This implementation of list supports all methods, with the following restrictions:
 
 values stored in the list must be Maps, that will be used with ContainerWidgetAsMap.putAll(Map)Map representation of the repeater rows, 
 operations that involve testing equality with the list contents (e.g. contains(Object)) will
     not function properly, the Map wrapping the rows being created on demand. 
  
Since: 2.1.8 
Version: $Id: RepeaterAsList.html 1304258 2012-03-23 10:09:27Z ilgrosso $ 
 
 
Methods inherited from class java.util.AbstractList   
add , addAll , equals , hashCode , indexOf , iterator , lastIndexOf , listIterator , listIterator , removeRange , subList  
 
RepeaterAsList 
public RepeaterAsList (Repeater  repeater,
                      boolean keysToLowerCase) 
Create a List view around a repeater. The keysToLowerCase parameter
 specifies if Maps wrapping rows should convert input keys to lower case, as
 specified by ContainerWidgetAsMap.ContainerWidgetAsMap(AbstractContainerWidget, boolean)
Parameters: repeater - the repeater to wrapkeysToLowerCase - should we convert input keys to lower case? 
  
RepeaterAsList 
public RepeaterAsList (Repeater  repeater) 
Same as RepeaterAsList(repeater, false).
  
getWidget 
public Repeater  getWidget () 
Get the repeater widget that is wrapped by this List.
Returns: the wrapped Repeater  
  
getWidget 
public Widget  getWidget (String  path) 
Get a widget relative to the repeater wrapped by this List
Parameters: path - a widget lookup path
Returns: the widget pointed to by path or null if it doesn't exist. See Also: Widget.lookupWidget(String) 
  
get 
public Object  get (int index) 
Specified by: get List Specified by: get AbstractList  
 
 
size 
public int size () 
Specified by: size Collection Specified by: size List Specified by: size AbstractCollection  
 
 
set 
public Object  set (int index,
                  Object  o) 
Specified by: set List Overrides: set AbstractList  
 
 
add 
public void add (int index,
                Object  o) 
Specified by: add List Overrides: add AbstractList  
 
 
remove 
public Object  remove (int index) 
Specified by: remove List Overrides: remove AbstractList  
 
 
clear 
public void clear () 
Specified by: clear Collection Specified by: clear List Overrides: clear AbstractList