<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 431,  comments - 344,  trackbacks - 0

      TableFacade tableFacade = TableFacadeFactory.createTableFacade("structuresTable", request);
      tableFacade.setColumnProperties("chkbox", "id", "formula", "molTable.molName", "molTable.cas", "mdlNumber", "molWeight");
      tableFacade.setEditable(true);
      tableFacade.setMaxRows(10);
      tableFacade.setMaxRowsIncrements(10, 20, 30);
      
      tableFacade.setTotalRows(cd_ids.size());
      
      Limit limit = tableFacade.getLimit();
      int rowStart = limit.getRowSelect().getRowStart();
      int rowEnd = limit.getRowSelect().getRowEnd();
      
      List<Long> curResultIds = cd_ids.subList(rowStart, rowEnd);
      
      List<ACD1Structure> curStructures   = structureService.getACD1StructuresByIds(curResultIds);
      
      tableFacade.setItems(curStructures);
      
      HtmlTable table = (HtmlTable) tableFacade.getTable();
      table.getTableRenderer().setWidth("1000px");
      table.getRow().setUniqueProperty("id");
      
      HtmlColumn smilesColumn = table.getRow().getColumn("id");
      smilesColumn.setEditable(false);
      smilesColumn.setTitle(messageSource.getMessage("chemical.structure.title", null, request.getLocale()));
      
      HtmlColumn formulaColumn = table.getRow().getColumn("formula");
      formulaColumn.setEditable(false);
      formulaColumn.setTitle(messageSource.getMessage("chemical.formula.title", null, request.getLocale()));
      
      HtmlColumn molNameColumn = table.getRow().getColumn("molTable.molName");
      molNameColumn.setEditable(false);
      molNameColumn.setTitle(messageSource.getMessage("chemical.name.title", null, request.getLocale()));
      
      HtmlColumn casColumn = table.getRow().getColumn("molTable.cas");
      casColumn.setEditable(false);
      casColumn.setTitle(messageSource.getMessage("chemical.cas.title", null, request.getLocale()));
      
      HtmlColumn mdlNumberColumn = table.getRow().getColumn("mdlNumber");
      mdlNumberColumn.setEditable(false);
      mdlNumberColumn.setTitle(messageSource.getMessage("chemical.mdl.title", null, request.getLocale()));
      
      HtmlColumn molWeightColumn = table.getRow().getColumn("molWeight");
      molWeightColumn.setEditable(false);
      molWeightColumn.setTitle(messageSource.getMessage("chemical.mw.title", null, request.getLocale()));
      
      //for smiles column
      
      smilesColumn.setFilterable(false);
      smilesColumn.setSortable(false);
      smilesColumn.getCellRenderer().setCellEditor(new CellEditor() {
                public Object getValue(Object item, String property, int rowcount) {
                    Object value = new BasicCellEditor().getValue(item, property, rowcount);
                    String bgcolor = (rowcount % 2 == 0) ? "e3e3e3" : "ffffff";
                    HtmlBuilder html = new HtmlBuilder();
                    html.append("<img class=\"hand\" width=\"140\" onclick=\"supplierInfo('"+value+"')\" src=\""+request.getContextPath()+"/compoundsearch/showAsImage.do?id="+value+"&bgcolor="+bgcolor+"\">");
                    html.aEnd();
                    return html.toString();
                }
            });

      //for checkbox column
      HtmlColumn chkbox = table.getRow().getColumn("chkbox");
      chkbox.getCellRenderer().setWorksheetEditor(new CheckboxWorksheetEditor());
      chkbox.setTitle("&nbsp;");
      chkbox.setFilterable(false);
      chkbox.setSortable(false);
      
      //render
      String html = tableFacade.render();

    posted on 2009-03-06 21:39 周銳 閱讀(778) 評論(0)  編輯  收藏 所屬分類: AjaxJava
    主站蜘蛛池模板: 亚洲AV综合永久无码精品天堂| 亚洲中文字幕日产乱码高清app| 亚洲视频手机在线| 中文字幕无码一区二区免费| 国产亚洲精品线观看动态图| 一级黄色免费大片| 亚洲精品黄色视频在线观看免费资源| 菠萝菠萝蜜在线免费视频| www.91亚洲| 国产午夜不卡AV免费| 久久精品国产亚洲av麻| 免费人成在线观看网站品爱网| 91大神亚洲影视在线| 99久久99久久精品免费看蜜桃| 学生妹亚洲一区二区| 日韩一级在线播放免费观看| 人妻无码中文字幕免费视频蜜桃| 亚洲综合色成在线播放| 免费看国产一级片| 一区二区三区免费精品视频| 亚洲人成网77777色在线播放| 嫩草成人永久免费观看| 亚洲乱码中文论理电影| 国产精品视_精品国产免费 | 99re热免费精品视频观看 | 永久免费无码网站在线观看个| 在线观看亚洲天天一三视| 嫩草影院在线播放www免费观看| 久久亚洲AV成人无码| 香蕉高清免费永久在线视频 | 亚洲无圣光一区二区| 日本特黄a级高清免费大片| 狠狠躁狠狠爱免费视频无码 | 亚洲AV无码精品国产成人| 久久久久亚洲爆乳少妇无| 99久9在线|免费| 美女羞羞喷液视频免费| 亚洲成年人在线观看| 精品国产免费观看一区| 免费国产叼嘿视频大全网站| 亚洲AV无码一区二区乱子仑|