out.close();
}
- /**
- * Called after the reference is updated, so that
- * we can reflect that in our cache
- * @deprecated 2015-11-23 (circa POI 3.14beta1). Use {@link #referenceUpdated(CellAddress, CTComment)} instead
- */
- public void referenceUpdated(String oldReference, CTComment comment) {
- referenceUpdated(new CellAddress(oldReference), comment);
- }
-
/**
* Called after the reference is updated, so that
* we can reflect that in our cache
return addNewAuthor(author);
}
- /**
- * Finds the cell comment at cellAddress, if one exists
- *
- * @param cellRef the address of the cell to find a comment
- * @return cell comment if one exists, otherwise returns null
- * @deprecated 2015-11-23 (circa POI 3.14beta1). Use {@link #findCellComment(CellAddress)} instead
- */
- public XSSFComment findCellComment(String cellRef) {
- return findCellComment(new CellAddress(cellRef));
- }
-
/**
* Finds the cell comment at cellAddress, if one exists
*
return ct == null ? null : new XSSFComment(this, ct, null);
}
-
- /**
- * Get the underlying CTComment xmlbean for a comment located at cellRef, if it exists
- *
- * @param ref the location of the cell comment
- * @return CTComment xmlbean if comment exists, otherwise return null.
- * @deprecated 2015-11-23 (circa POI 3.14beta1). Use {@link CommentsTable#getCTComment(CellAddress)} instead
- */
- @Internal
- public CTComment getCTComment(String ref) {
- return getCTComment(new CellAddress(ref));
- }
-
/**
* Get the underlying CTComment xmlbean for a comment located at cellRef, if it exists
*
}
}
- /**
- * Create a new comment located at cell address
- *
- * @param ref the location to add the comment
- * @return a new CTComment located at ref with default author
- * @deprecated 2015-11-23 (circa POI 3.14beta1). Use {@link #newComment(CellAddress)} instead
- */
- @Internal
- public CTComment newComment(String ref) {
- return newComment(new CellAddress(ref));
- }
-
/**
* Create a new comment located` at cell address
*
}
return ct;
}
-
- /**
- * Remove the comment at cellRef location, if one exists
- *
- * @param cellRef the location of the comment to remove
- * @return returns true if a comment was removed
- * @deprecated 2015-11-23 (circa POI 3.14beta1). Use {@link #removeComment(CellAddress)} instead
- */
- public boolean removeComment(String cellRef) {
- return removeComment(new CellAddress(cellRef));
- }
/**
* Remove the comment at cellRef location, if one exists