Usages of

org.apache.poi.xssf.streaming.SXSSFCell.setHyperlink(?)
private void setCellHyperlink(){ Map<String,Object> contentMap = _xssfCellExportContext.contentMap(); if(contentMap.containsKey("link")){ String linkUrl = (String)contentMap.get("link"); SXSSFCell excelCell = _xssfCellExportContext.getExcelCell(); XSSFWorkbook xssfWorkbook = _xssfCellExportContext.parentContext().parentContext().xssfWorkbook(); CreationHelper creationHelper = xssfWorkbook.getCreationHelper(); int linkType = SpreadsheetExportHelper.checkURLType(linkUrl); if(linkType != -1){ XSSFHyperlink link = (XSSFHyperlink)creationHelper.createHyperlink(linkType); if(linkType == Hyperlink.LINK_DOCUMENT){ link.setLocation(linkUrl); }else{ link.setAddress(linkUrl); } excelCell.setHyperlink(link); excelCell.setCellStyle(_xssfCellExportContext.parentContext().parentContext().getHyperlinkStyle()); } } }
Usage snippet has been bookmarked! Review your bookmarks
Thank you! Review your likes