01: /*
02: * Created on Nov 11, 2005
03: */
04: package uk.org.ponder.rsf.components;
05:
06: import uk.org.ponder.rsf.uitype.StringUIType;
07:
08: /** A bound value whose type is <code>java.lang.String</code> */
09:
10: public class UIBoundString extends UIBound {
11: public void setValue(String value) {
12: if (value == null) {
13: throw new IllegalArgumentException(
14: "Value of UIBoundString cannot be null");
15: }
16: this .value = value;
17: }
18:
19: public String getValue() {
20: return (String) value;
21: }
22:
23: public UIBoundString() {
24: value = StringUIType.instance.getPlaceholder();
25: }
26:
27: public UIBoundString(String value) {
28: this.value = value;
29: }
30: }
|