01: /*
02: * Created on Nov 25, 2005
03: */
04: package uk.org.ponder.rsf.components;
05:
06: /** A "placeholder" component which appears in serialized "proto-component trees"
07: * which will be expanded into a list of genuine components before rendering.
08: * @author Antranig Basman (amb26@ponder.org.uk)
09: */
10:
11: public class UIReplicator extends UIComponent {
12: /** The character that, when it appears in an EL reference in an expanding
13: * container, will be replaced by the replicated localID.
14: */
15: public static final String DEFAULT_LOCALID_WILDCARD = "*";
16:
17: public String idwildcard = DEFAULT_LOCALID_WILDCARD;
18: /** An EL reference to a collection, list, array (multi-value in general)
19: * somewhere in request scope to use to replicate the provided container.
20: * A reference to a single String will be considered to represent the ID
21: * required by an IDRemapStrategy acting on the single bean with that ID.
22: */
23: public ELReference valuebinding;
24: /** An object encapsulating the strategy to be used for mapping from objects
25: * found in the targetted list to the EL path that they will be referenced
26: * at.
27: */
28: public Object idstrategy;
29: /** The container to be replicated by iteration over the container
30: * discovered at the above binding.
31: */
32: public UIBranchContainer component;
33: /** If set to <code>true</code>, the parent branch container will be elided
34: * on replication, and its children added directly to the target parent.
35: */
36: public boolean elideparent;
37: }
|