git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895208 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2021-11-20 15:59:37 +00:00
parent ab1a19c3d4
commit 44cb4cec60
2 changed files with 12 additions and 4 deletions

View File

@ -43,15 +43,18 @@ public interface Comments {
*
* @param cellAddress the address of the cell to find a comment
* @return cell comment if one exists, otherwise returns null
* @see #findCellComment(Sheet, CellAddress)
*/
XSSFComment findCellComment(CellAddress cellAddress);
/**
* Finds the cell comment at cellAddress, if one exists
*
* @param sheet the sheet that has the comment
* @param sheet the sheet to check for comments (used to find drawing/shape data for comments) - set to null
* if you don't need the drawing/shape data
* @param cellAddress the address of the cell to find a comment
* @return cell comment if one exists, otherwise returns null
* @see #findCellComment(CellAddress)
* @since POI 5.2.0
*/
public XSSFComment findCellComment(Sheet sheet, CellAddress cellAddress);
@ -72,7 +75,8 @@ public interface Comments {
Iterator<CellAddress> getCellAddresses();
/**
* @param sheet the sheet to check for comments
* @param sheet the sheet to check for comments (used to find drawing/shape data for comments) - set to null
* if you don't need the drawing/shape data
* @return iterator of comments
* @since POI 5.2.0
*/

View File

@ -101,7 +101,8 @@ public class CommentsTable extends POIXMLDocumentPart implements Comments {
}
/**
* @param sheet the sheet to check for comments
* @param sheet the sheet to check for comments (used to find drawing/shape data for comments) - set to null
* if you don't need the drawing/shape data
* @return iterator of comments
* @since POI 5.2.0
*/
@ -206,6 +207,7 @@ public class CommentsTable extends POIXMLDocumentPart implements Comments {
*
* @param cellAddress the address of the cell to find a comment
* @return cell comment if one exists, otherwise returns null
* @see #findCellComment(Sheet, CellAddress)
*/
@Override
public XSSFComment findCellComment(CellAddress cellAddress) {
@ -216,9 +218,11 @@ public class CommentsTable extends POIXMLDocumentPart implements Comments {
/**
* Finds the cell comment at cellAddress, if one exists
*
* @param sheet the sheet that has the comment
* @param sheet the sheet to check for comments (used to find drawing/shape data for comments) - set to null
* if you don't need the drawing/shape data
* @param cellAddress the address of the cell to find a comment
* @return cell comment if one exists, otherwise returns null
* @see #findCellComment(CellAddress)
* @since POI 5.2.0
*/
@Override