コード例 #1
0
 @Override
 public Object render() {
   HtmlSnippets snippets = getHtmlSnippets();
   HtmlBuilder html = new HtmlBuilder();
   html.append(snippets.themeStart());
   html.append(snippets.tableStart());
   html.append(snippets.theadStart());
   html.append(snippets.toolbar());
   html.append(snippets.filter());
   html.append(snippets.header());
   html.append(snippets.theadEnd());
   html.append(snippets.tbodyStart());
   html.append(snippets.body());
   html.append(snippets.tbodyEnd());
   html.append(snippets.footer());
   html.append(
       "<tbody><tr class='statusBar'><td><input type='checkbox' name='checkboxSelectAll' /></td><td>全选</td><td colspan='25'>"
           + operationHtml
           + "</td> </tr></tbody>");
   html.append(snippets.statusBar());
   html.append(snippets.tableEnd());
   html.append(snippets.themeEnd());
   html.append(snippets.initJavascriptLimit());
   return html.toString();
 }
コード例 #2
0
  @Override
  public Object getValue() {

    HtmlBuilder html = new HtmlBuilder();
    html.input().type("checkbox").id("selectAllChkBox").end();
    return html.toString();
  }
コード例 #3
0
 private String restoreSubjectLink(Integer subjectId) {
   HtmlBuilder builder = new HtmlBuilder();
   builder.a().href("RestoreSubject?action=confirm&id=" + subjectId);
   builder.onmouseout("javascript:setImage('bt_Restor3','images/bt_Restore_d.gif');");
   builder.onmouseover("javascript:setImage('bt_Restore3','images/bt_Restore.gif');");
   builder.close();
   builder
       .img()
       .name("bt_Restore3")
       .src("images/bt_Restore.gif")
       .border("0")
       .alt("Restore")
       .title("Restore")
       .align("left")
       .append("hspace=\"6\"")
       .close();
   builder.aEnd();
   return builder.toString();
 }
コード例 #4
0
 private String viewSubjectLink(Integer subjectId) {
   HtmlBuilder builder = new HtmlBuilder();
   builder.a().href("UpdateSubject?action=show&id=" + subjectId);
   builder.onmouseout("javascript:setImage('bt_View1','images/bt_View_d.gif');");
   builder.onmouseover("javascript:setImage('bt_View1','images/bt_View.gif');");
   builder.close();
   builder
       .img()
       .name("bt_View1")
       .src("images/bt_View.gif")
       .border("0")
       .alt("View")
       .title("View")
       .align("left")
       .append("hspace=\"6\"")
       .close();
   builder.aEnd();
   return builder.toString();
 }