diff options
| author | Benjamin Culkin <scorpress@gmail.com> | 2024-05-20 17:58:16 -0400 |
|---|---|---|
| committer | Benjamin Culkin <scorpress@gmail.com> | 2024-05-20 17:58:16 -0400 |
| commit | 40a9d99496e098562f090fb7ffce9e749011b131 (patch) | |
| tree | 437df24d65470582e943e494a52db8ed65a881ae /projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOTextField.java | |
| parent | ff072dfe782f6f22123cd4ba050828d35c0d0fbd (diff) | |
Formatting pass
Diffstat (limited to 'projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOTextField.java')
| -rw-r--r-- | projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOTextField.java | 63 |
1 files changed, 32 insertions, 31 deletions
diff --git a/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOTextField.java b/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOTextField.java index 4233ad4..82f591a 100644 --- a/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOTextField.java +++ b/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOTextField.java @@ -22,38 +22,39 @@ import net.wotonomy.foundation.NSDictionary; import net.wotonomy.foundation.NSMutableArray; /** -* Implements an INPUT tag of type TEXT, with dynamic bindings. -* @author michael@mpowers.net -* @author $Author: cgruber $ -* @version $Revision: 905 $ -*/ + * Implements an INPUT tag of type TEXT, with dynamic bindings. + * + * @author michael@mpowers.net + * @author $Author: cgruber $ + * @version $Revision: 905 $ + */ public class WOTextField extends WOInput { - public WOTextField() { - super(); - } - - public WOTextField(String aName, NSDictionary assocs, WOElement template) { - super(aName, assocs, template); - } - - protected String inputType() { - return "TEXT"; - } - - protected Object value(WOContext c) { - Object fieldValue = valueForProperty("value", c.component()); - if (fieldValue == null) { - fieldValue = ""; - } - return formattedValue(fieldValue, c.component()); - } - - protected NSMutableArray additionalAttributes() { - NSMutableArray a = super.additionalAttributes(); - a.addObject("dateformat"); - a.addObject("numberformat"); - return a; - } + public WOTextField() { + super(); + } + + public WOTextField(String aName, NSDictionary assocs, WOElement template) { + super(aName, assocs, template); + } + + protected String inputType() { + return "TEXT"; + } + + protected Object value(WOContext c) { + Object fieldValue = valueForProperty("value", c.component()); + if (fieldValue == null) { + fieldValue = ""; + } + return formattedValue(fieldValue, c.component()); + } + + protected NSMutableArray additionalAttributes() { + NSMutableArray a = super.additionalAttributes(); + a.addObject("dateformat"); + a.addObject("numberformat"); + return a; + } } |
