\", \"class\", \"aDivClass\");");
- System.out.println ("datas.setAttribute (\"
\", \"style\", \"background-color: #000000;\");");
- System.out.println ("datas.setAttribute (\"number\", \"style\", \"background-color: #0000FF;\");");
-
- System.out.println ("=>");
- System.out.println (html);
+ * // Populate attributes of Test 03. System.out.println
+ * ("----------------------------"); datas = new Data ();
+ * datas.setContent ("identity", 0, "nom", "Jemba"); datas.setContent
+ * ("identity", 0, "prenom", "Epo"); datas.setContent ("identity", 1,
+ * "nom", "Momon"); datas.setContent ("identity", 1, "prenom",
+ * "Christian"); datas.setContent ("identity", 2, "nom", "Tronche");
+ * datas.setContent ("identity", 2, "prenom", "Christophe");
+ * datas.setIterationStrategy ("identity",
+ * IdsDataByIndex.IterationStrategy.ONLY_FIRST_ROW);
+ * //datas.setIterationStrategy ("identity",
+ * IdsDataByIndex.IterationStrategy.ONLY_ROWS_WITH_ID);
+ * //datas.setIterationStrategy ("identity",
+ * IdsDataByIndex.IterationStrategy.ONLY_ROWS_WITHOUT_ID);
+ * //datas.setIterationStrategy ("identity",
+ * IdsDataByIndex.IterationStrategy.ALL_ROWS);
+ *
+ *
+ * errorMessage = new StringBuffer (); source = new StringBuffer ();
+ * source.append ("
\n"); source.append (
+ * " noid | un nom | un prenom |
\n"
+ * ); source.append (
+ * " noid | un nom | un prenom |
\n"
+ * ); source.append (
+ * " noid | un nom | un prenom |
\n"
+ * ); source.append ("
"); htmlSource = source.toString ();
+ *
+ * System.out.println ("datas = new Data ();"); System.out.println
+ * ("datas.setContent (\"identity\", 0, \"nom\", \"Jemba\");");
+ * System.out.println
+ * ("datas.setContent (\"identity\", 0, \"prenom\", \"Epo\");");
+ * System.out.println
+ * ("datas.setContent (\"identity\", 1, \"nom\", \"Momon\");");
+ * System.out.println
+ * ("datas.setContent (\"identity\", 1, \"prenom\", \"Christian\");");
+ * System.out.println
+ * ("datas.setContent (\"identity\", 2, \"nom\", \"Tronche\");");
+ * System.out.println
+ * ("datas.setContent (\"identity\", 2, \"prenom\", \"Christophe\");");
+ *
+ * System.out.println ("+"); System.out.println (htmlSource);
+ * System.out.println ("=>");
+ *
+ *
+ * datas.setIterationStrategy ("identity",
+ * IdsDataByIndex.IterationStrategy.ONLY_FIRST_ROW); System.out.println
+ * ("ONLY_FIRST_ROW:"); html = Presenter.doXid (htmlSource, datas, "",
+ * errorMessage); System.out.println (html);
+ *
+ * datas.setIterationStrategy ("identity",
+ * IdsDataByIndex.IterationStrategy.ONLY_ROWS_WITH_ID);
+ * System.out.println ("ONLY_ROWS_WITH_ID:"); html = Presenter.doXid
+ * (htmlSource, datas, "", errorMessage); System.out.println (html);
+ *
+ * datas.setIterationStrategy ("identity",
+ * IdsDataByIndex.IterationStrategy.ONLY_ROWS_WITHOUT_ID);
+ * System.out.println ("ONLY_ROWS_WITHOUT_ID:"); html = Presenter.doXid
+ * (htmlSource, datas, "", errorMessage); System.out.println (html);
+ *
+ * datas.setIterationStrategy ("identity",
+ * IdsDataByIndex.IterationStrategy.ALL_ROWS); System.out.println
+ * ("ALL_ROWS:"); html = Presenter.doXid (htmlSource, datas, "",
+ * errorMessage); System.out.println (html);
+ *
+ *
+ *
+ * // Populate attributes of Test 03. System.out.println
+ * ("----------------------------"); datas = new Data ();
+ * datas.setAttribute ("
", "class", "aDivClass");
+ * datas.setAttribute ("
", "style", "background-color: #000000;");
+ * datas.setAttribute ("number", "style", "background-color: #0000FF;");
+ *
+ * errorMessage = new StringBuffer (); source = new StringBuffer ();
+ * source.append ("
\n"); source.append ("
one
\n");
+ * source.append ("\n"); source.append ("
\n");
+ * source.append ("
three
\n"); source.append ("");
+ * htmlSource = source.toString (); html = Presenter.doXid (htmlSource,
+ * datas, "", errorMessage);
+ *
+ * System.out.println (htmlSource); System.out.println ("+");
+ * System.out.println ("datas = new Data ();"); System.out.println
+ * ("datas.setAttribute (\"
\", \"class\", \"aDivClass\");");
+ * System.out.println (
+ * "datas.setAttribute (\"
\", \"style\", \"background-color: #000000;\");"
+ * ); System.out.println (
+ * "datas.setAttribute (\"number\", \"style\", \"background-color: #0000FF;\");"
+ * );
+ *
+ * System.out.println ("=>"); System.out.println (html);
*/
}
}