/** * Assign a hypelrink to this cell * * @param hyperlink the hypelrink to associate with this cell */ public void setHyperlink(Hyperlink hyperlink) { XSSFHyperlink link = (XSSFHyperlink) hyperlink; // Assign to us link.setCellReference(new CellReference(_row.getRowNum(), _cellNum).formatAsString()); // Add to the lists getSheet().setCellHyperlink(link); }
/** * Returns cell comment associated with this cell * * @return the cell comment associated with this cell or <code>null</code> */ public XSSFComment getCellComment() { return getSheet().getCellComment(_row.getRowNum(), getColumnIndex()); }
/** * Returns hyperlink associated with this cell * * @return hyperlink associated with this cell or <code>null</code> if not found */ public XSSFHyperlink getHyperlink() { return getSheet().getHyperlink(_row.getRowNum(), _cellNum); }
/** * Returns row index of a row in the sheet that contains this cell * * @return zero-based row index of a row in the sheet that contains this cell */ public int getRowIndex() { return _row.getRowNum(); }