<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
    主站蜘蛛池模板: 99视频在线免费看| 国产成人AV免费观看| 亚洲AV无码一区二区三区系列| 亚洲Aⅴ无码专区在线观看q | 亚洲日本在线电影| 国产黄色片免费看| 美女视频黄是免费的网址| 久久亚洲美女精品国产精品| 日韩在线一区二区三区免费视频| 久久精品一本到99热免费| 亚洲s色大片在线观看| a级片免费观看视频| 亚洲va无码手机在线电影| 无码人妻AV免费一区二区三区 | 999国内精品永久免费视频| 亚洲国产成人久久精品99| 免费国产a理论片| 亚洲精品国产自在久久| 国产精品小视频免费无限app| 亚洲国产熟亚洲女视频| 日本高清免费中文字幕不卡| 无码成A毛片免费| 亚洲精品影院久久久久久| 国产精品免费看久久久无码| 国产一区二区免费| 女人18毛片特级一级免费视频| 亚洲欧美日韩自偷自拍| 久久精品国产96精品亚洲| 青青草国产免费久久久下载| 亚洲精品成人av在线| 日本中文一区二区三区亚洲| 免费观看国产精品| 亚洲欧洲久久精品| 亚洲成AV人在线观看天堂无码| 亚洲色偷偷综合亚洲AV伊人蜜桃| 免费网站看v片在线香蕉| fc2成年免费共享视频18| 久久亚洲精精品中文字幕| 国产成人精品高清免费| 免费精品久久天干天干| 亚洲乱妇熟女爽到高潮的片 |