public interface Comments
Modifier and Type | Method and Description |
---|---|
void |
commentUpdated(XSSFComment comment)
Called after the comment is updated, so that
we can reflect that in our cache
|
XSSFComment |
createNewComment(ClientAnchor clientAnchor)
Create a new comment and add to the CommentTable.
|
int |
findAuthor(java.lang.String author) |
XSSFComment |
findCellComment(CellAddress cellAddress)
Finds the cell comment at cellAddress, if one exists
|
java.lang.String |
getAuthor(long authorId) |
java.util.Iterator<CellAddress> |
getCellAddresses()
Returns all cell addresses that have comments.
|
int |
getNumberOfAuthors() |
int |
getNumberOfComments() |
void |
referenceUpdated(CellAddress oldReference,
XSSFComment comment)
Called after the reference is updated, so that
we can reflect that in our cache
|
boolean |
removeComment(CellAddress cellRef)
Remove the comment at cellRef location, if one exists
|
void |
setSheet(Sheet sheet)
This method is for internal POI use only.
|
@Internal void setSheet(Sheet sheet)
sheet
- the sheet that this comments table is associated withint getNumberOfComments()
int getNumberOfAuthors()
java.lang.String getAuthor(long authorId)
int findAuthor(java.lang.String author)
XSSFComment findCellComment(CellAddress cellAddress)
cellAddress
- the address of the cell to find a commentboolean removeComment(CellAddress cellRef)
cellRef
- the location of the comment to removejava.util.Iterator<CellAddress> getCellAddresses()
XSSFComment createNewComment(ClientAnchor clientAnchor)
clientAnchor
- the anchor for this commentvoid referenceUpdated(CellAddress oldReference, XSSFComment comment)
oldReference
- the comment to remove from the commentRefs mapcomment
- the comment to replace in the commentRefs mapcommentUpdated(XSSFComment)
void commentUpdated(XSSFComment comment)
comment
- the comment to replace in the commentRefs mapreferenceUpdated(CellAddress, XSSFComment)
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.