Adding JMCR-Stable version
[Benchmarks_CSolver.git] / JMCR-Stable / real-world application / jigsaw / src / org / w3c / tools / forms / Form.java
diff --git a/JMCR-Stable/real-world application/jigsaw/src/org/w3c/tools/forms/Form.java b/JMCR-Stable/real-world application/jigsaw/src/org/w3c/tools/forms/Form.java
new file mode 100644 (file)
index 0000000..87766a2
--- /dev/null
@@ -0,0 +1,28 @@
+// Form.java\r
+// $Id: Form.java,v 1.1 2010/06/15 12:27:22 smhuang Exp $\r
+// (c) COPYRIGHT MIT and INRIA, 1996.\r
+// Please first read the full copyright statement in file COPYRIGHT.html\r
+\r
+package org.w3c.tools.forms ;\r
+\r
+public class Form {\r
+    /**\r
+     * The handler of the form.\r
+     */\r
+    protected FormHandlerInterface handler = null ;\r
+\r
+    /**\r
+     * Register a new form field.\r
+     * @param name The name of the field to be defined.\r
+     * @param title Title of the field to be defined.\r
+     * @param field The field editor.\r
+     */\r
+\r
+    public void addField (String name, String title, FormField field) {\r
+    }\r
+\r
+    public Form(FormHandlerInterface handler) {\r
+       this.handler = handler ;\r
+    }\r
+\r
+}\r