summaryrefslogtreecommitdiff
path: root/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOTextField.java
diff options
context:
space:
mode:
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.java63
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;
+ }
}