diff options
Diffstat (limited to 'projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOText.java')
| -rw-r--r-- | projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOText.java | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOText.java b/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOText.java index 008fda8..3b5dd1d 100644 --- a/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOText.java +++ b/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOText.java @@ -22,20 +22,21 @@ import net.wotonomy.foundation.NSArray; import net.wotonomy.foundation.NSDictionary; /** -* Implements a TEXTAREA element, with dynamic bindings. + * Implements a TEXTAREA element, with dynamic bindings. + * * @author michael@mpowers.net * @author $Author: cgruber $ * @version $Revision: 905 $ */ public class WOText extends WOInput { - public WOText() { - super(); - } + public WOText() { + super(); + } - public WOText(String n, NSDictionary m, WOElement t) { - super(n, m, t); - } + public WOText(String n, NSDictionary m, WOElement t) { + super(n, m, t); + } protected String inputType() { return "TEXTAREA"; @@ -49,24 +50,23 @@ public class WOText extends WOInput { return formattedValue(fieldValue, c.component()); } - public void takeValuesFromRequest(WORequest r, WOContext c) { - Object val = r.formValueForKey(inputName(c)); - if ( val != null ) - setValueForProperty("value", formattedValue(val, c.component()), c.component()); - } + public void takeValuesFromRequest(WORequest r, WOContext c) { + Object val = r.formValueForKey(inputName(c)); + if (val != null) + setValueForProperty("value", formattedValue(val, c.component()), c.component()); + } - public void appendToResponse(WOResponse r, WOContext c) { - r.appendContentString("<TEXTAREA NAME=\""); - r.appendContentString(inputName(c)); - r.appendContentString("\""); - String moreFields = additionalHTMLProperties(c.component(), new NSArray(new Object[]{ - "name", "value" })); - if (moreFields != null && moreFields.length() > 0) - r.appendContentString(moreFields); - r.appendContentString(">"); - moreFields = value(c).toString(); - if (moreFields != null && moreFields.length() > 0) - r.appendContentString(moreFields); - r.appendContentString("</TEXTAREA>"); - } + public void appendToResponse(WOResponse r, WOContext c) { + r.appendContentString("<TEXTAREA NAME=\""); + r.appendContentString(inputName(c)); + r.appendContentString("\""); + String moreFields = additionalHTMLProperties(c.component(), new NSArray(new Object[] { "name", "value" })); + if (moreFields != null && moreFields.length() > 0) + r.appendContentString(moreFields); + r.appendContentString(">"); + moreFields = value(c).toString(); + if (moreFields != null && moreFields.length() > 0) + r.appendContentString(moreFields); + r.appendContentString("</TEXTAREA>"); + } } |
