| java.util.AbstractList org.apache.cocoon.forms.util.RepeaterAsList
RepeaterAsList | public class RepeaterAsList extends AbstractList (Code) | | A List view of a
Repeater , each element of the list being a Map
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
Map s, that will be used with
ContainerWidgetAsMap.putAll(Map) on the 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.java 479296 2006-11-26 06:28:51Z antonio $ |
RepeaterAsList | public RepeaterAsList(Repeater repeater, boolean keysToLowerCase)(Code) | | Create a List view around a repeater. The keysToLowerCase parameter
specifies if Map s wrapping rows should convert input keys to lower case, as
specified by
ContainerWidgetAsMap.ContainerWidgetAsMap(AbstractContainerWidgetboolean) .
Parameters: repeater - the repeater to wrap Parameters: keysToLowerCase - should we convert input keys to lower case? |
RepeaterAsList | public RepeaterAsList(Repeater repeater)(Code) | | Same as RepeaterAsList(repeater, false) .
|
clear | public void clear()(Code) | | |
getWidget | public Repeater getWidget()(Code) | | Get the repeater widget that is wrapped by this List .
the wrapped Repeater |
getWidget | public Widget getWidget(String path)(Code) | | Get a widget relative to the repeater wrapped by this List
Parameters: path - a widget lookup path the widget pointed to by path or null if it doesn't exist. See Also: Widget.lookupWidget(String) |
Fields inherited from java.util.AbstractList | protected transient int modCount(Code)(Java Doc)
|
|
|