Examples of HSSFHyperlink


Examples of org.apache.poi.hssf.usermodel.HSSFHyperlink

                                }
                                c.setCellValue(s);
                            }
                           
                            if (cellData.link != null) {
                                HSSFHyperlink hl = new HSSFHyperlink(HSSFHyperlink.LINK_URL);
                                hl.setLabel(cellData.text);
                                hl.setAddress(cellData.link);
                            }
                        }

                    }
                }
View Full Code Here

Examples of org.apache.poi.hssf.usermodel.HSSFHyperlink

                    } else {
                        link = hlAction.getHyperlink();
                    }

                    if (link != null) {
                        HSSFHyperlink hssflink = new HSSFHyperlink(HSSFHyperlink.LINK_URL);
                        hssflink.setAddress(link);
                        if (tooltip != null) {
                            hssflink.setLabel(tooltip);
                        }
                        cell.setHyperlink(hssflink);

                        return true;
                    }
View Full Code Here

Examples of org.apache.poi.hssf.usermodel.HSSFHyperlink

      {
        try
        {
          if (displayNames[j] != null && displayNames[j].equals("标题")) {
            //标题以超链接形式展示
            HSSFHyperlink link = new HSSFHyperlink(HSSFHyperlink.LINK_URL);
              link.setAddress(ConfigUtil.getCynthiaWebRoot() + "taskManagement.html?operation=read&taskid=" + task.getId().getValue());
              HSSFCell numberCell = dataRow.createCell((short)(j+1));
              numberCell.setCellStyle(linkStyle);
              numberCell.setCellValue(task.getTitle());
              numberCell.setHyperlink(link);// 设定单元格的链接
          }else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.