Ejemplo n.º 1
0
  /**
   * 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);
  }
Ejemplo n.º 2
0
 /**
  * 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());
 }
Ejemplo n.º 3
0
 /**
  * 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);
 }
Ejemplo n.º 4
0
 /**
  * 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();
 }