1.1 --- a/json/src/main/java/org/netbeans/html/json/impl/ModelProcessor.java Thu Oct 16 09:12:59 2014 +0200
1.2 +++ b/json/src/main/java/org/netbeans/html/json/impl/ModelProcessor.java Tue Dec 16 21:03:16 2014 +0100
1.3 @@ -504,12 +504,26 @@
1.4 + "In case of using Knockout technology, this means to \n"
1.5 + "bind JSON like data in this model instance with Knockout tags in \n"
1.6 + "the surrounding HTML page.\n"
1.7 + + "@return returns <code>this</code>\n"
1.8 + "*/\n"
1.9 );
1.10 w.write(" public " + className + " applyBindings() {\n");
1.11 w.write(" proto.applyBindings();\n");
1.12 w.write(" return this;\n");
1.13 w.write(" }\n");
1.14 + w.write(" /** Activates this model instance in the current {@link \n"
1.15 + + "net.java.html.json.Models#bind(java.lang.Object, net.java.html.BrwsrCtx) browser context}. \n"
1.16 + + "In case of using Knockout technology, this means to \n"
1.17 + + "bind JSON like data in this model instance with Knockout tags in \n"
1.18 + + "the surrounding HTML page.\n"
1.19 + + "@param id identifies the element to apply the model to\n"
1.20 + + "@return returns <code>this</code>\n"
1.21 + + "*/\n"
1.22 + );
1.23 + w.write(" public " + className + " applyBindings(String id) {\n");
1.24 + w.write(" proto.applyBindings(id);\n");
1.25 + w.write(" return this;\n");
1.26 + w.write(" }\n");
1.27 w.write(" public boolean equals(Object o) {\n");
1.28 w.write(" if (o == this) return true;\n");
1.29 w.write(" if (!(o instanceof " + className + ")) return false;\n");