Package org.apache.poi.xssf.binary
Class XSSFBComment
java.lang.Object
org.apache.poi.xssf.binary.XSSFBComment
- All Implemented Interfaces:
Comment
- Since:
- 3.16-beta3
-
Method Summary
Modifier and TypeMethodDescriptionGet the address of the cell that this comment is attached toName of the original comment authorReturn defined position of this anchor in the sheet.intReturn the column of the cell that contains the commentintgetRow()Return the row of the cell that contains the commentFetches the rich text string of the commentbooleanReturns whether this comment is visible.voidsetAddress(int row, int col) Set the address of the cell that this comment is attached tovoidsetAddress(CellAddress addr) Set the address of the cell that this comment is attached tovoidName of the original comment authorvoidsetColumn(int col) Set the column of the cell that contains the commentvoidsetRow(int row) Set the row of the cell that contains the commentvoidsetString(RichTextString string) Sets the rich text string used by this comment.voidsetVisible(boolean visible) Sets whether this comment is visible.
-
Method Details
-
setVisible
public void setVisible(boolean visible) Description copied from interface:CommentSets whether this comment is visible.- Specified by:
setVisiblein interfaceComment- Parameters:
visible-trueif the comment is visible,falseotherwise
-
isVisible
public boolean isVisible()Description copied from interface:CommentReturns whether this comment is visible. -
getAddress
Description copied from interface:CommentGet the address of the cell that this comment is attached to- Specified by:
getAddressin interfaceComment- Returns:
- comment cell address
-
setAddress
Description copied from interface:CommentSet the address of the cell that this comment is attached to- Specified by:
setAddressin interfaceComment
-
setAddress
public void setAddress(int row, int col) Description copied from interface:CommentSet the address of the cell that this comment is attached to- Specified by:
setAddressin interfaceComment
-
getRow
public int getRow()Description copied from interface:CommentReturn the row of the cell that contains the comment -
setRow
public void setRow(int row) Description copied from interface:CommentSet the row of the cell that contains the comment -
getColumn
public int getColumn()Description copied from interface:CommentReturn the column of the cell that contains the comment -
setColumn
public void setColumn(int col) Description copied from interface:CommentSet the column of the cell that contains the comment -
getAuthor
Description copied from interface:CommentName of the original comment author -
setAuthor
Description copied from interface:CommentName of the original comment author -
getString
Description copied from interface:CommentFetches the rich text string of the comment -
setString
Description copied from interface:CommentSets the rich text string used by this comment. -
getClientAnchor
Description copied from interface:CommentReturn defined position of this anchor in the sheet. The anchor is the yellow box/balloon that is rendered on top of the sheets when the comment is visible. To associate a comment with a different cell, useComment.setAddress(org.apache.poi.ss.util.CellAddress).- Specified by:
getClientAnchorin interfaceComment- Returns:
- defined position of this anchor in the sheet, can be null
-