01: /*
02: * Created on Nov 11, 2005
03: */
04: package uk.org.ponder.rsf.components;
05:
06: import uk.org.ponder.rsf.uitype.StringArrayUIType;
07:
08: /** A bound array of Strings, suitable for being the backing for a selection
09: * list, or the selection control for a multiple selection list. Is capable
10: * of extracting the value field from a bean collection retrieved via EL. **/
11: public class UIBoundList extends UIBound {
12: public void setValue(String[] value) {
13: if (value == null) {
14: throw new IllegalArgumentException(
15: "Value of UIBoundList cannot be null");
16: }
17: this .value = value;
18: }
19:
20: public String[] getValue() {
21: return (String[]) value;
22: }
23:
24: public UIBoundList() {
25: value = StringArrayUIType.instance.getPlaceholder();
26: }
27:
28: }
|