01: /*
02: * Created on Sep 22, 2005
03: */
04: package uk.org.ponder.rsf.components;
05:
06: import uk.org.ponder.stringutil.StringList;
07:
08: /** A multi-line output control. In HTML will render a list of Strings
09: * separated by </br> tags - consider use of repetitive leaves or a
10: * BranchContainer for general use.
11: *
12: * @author Antranig Basman (antranig@caret.cam.ac.uk)
13: *
14: */
15:
16: public class UIOutputMultiline extends UIBound {
17: public static UIOutputMultiline make(UIContainer parent, String ID,
18: String binding, StringList value) {
19: UIOutputMultiline togo = new UIOutputMultiline();
20: togo.ID = ID;
21: togo.valuebinding = ELReference.make(binding);
22: // note that StringList is not a UIType, and hence can never give rise
23: // to input, and hence has no placeholder type, and hence must always
24: // be set here.
25: if (value != null) {
26: togo.setValue(value);
27: }
28: parent.addComponent(togo);
29: return togo;
30: }
31:
32: public StringList getValue() {
33: return (StringList) value;
34: }
35:
36: public void setValue(StringList value) {
37: this.value = value;
38: }
39: }
|