org.apache.poi.xssf.usermodel
Class XSSFComment
- java.lang.Object
-
- org.apache.poi.xssf.usermodel.XSSFComment
-
-
Constructor Summary
Constructors Constructor and Description XSSFComment(CommentsTable comments, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTComment comment, schemasMicrosoftComVml.CTShape vmlShape)Creates a new XSSFComment, associated with a given low level comment object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetAuthor()Name of the original comment authorClientAnchorgetClientAnchor()Return defines position of this anchor in the sheet.intgetColumn()Return the column of the cell that contains the commentintgetRow()Return the row of the cell that contains the commentXSSFRichTextStringgetString()Fetches the rich text string of the commentbooleanisVisible()Sets whether this comment is visible.voidsetAuthor(java.lang.String author)Name of the original comment author.voidsetColumn(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.voidsetString(java.lang.String string)voidsetVisible(boolean visible)Returns whether this comment is visible.
-
-
-
Constructor Detail
-
XSSFComment
public XSSFComment(CommentsTable comments, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTComment comment, schemasMicrosoftComVml.CTShape vmlShape)
Creates a new XSSFComment, associated with a given low level comment object.
-
-
Method Detail
-
getAuthor
public java.lang.String getAuthor()
Description copied from interface:CommentName of the original comment author
-
setAuthor
public void setAuthor(java.lang.String author)
Name of the original comment author. Default value is blank.
-
getColumn
public int getColumn()
Description copied from interface:CommentReturn the column of the cell that contains the comment
-
getRow
public int getRow()
Description copied from interface:CommentReturn the row of the cell that contains the comment
-
isVisible
public boolean isVisible()
Description copied from interface:CommentSets whether this comment is visible.
-
setVisible
public void setVisible(boolean visible)
Description copied from interface:CommentReturns whether this comment is visible.- Specified by:
setVisiblein interfaceComment- Parameters:
visible- whether the comment is visible
-
setColumn
public void setColumn(int col)
Set the column of the cell that contains the comment
-
setRow
public void setRow(int row)
Set the row of the cell that contains the comment
-
getString
public XSSFRichTextString getString()
Description copied from interface:CommentFetches the rich text string of the comment
-
setString
public void setString(RichTextString string)
Sets the rich text string used by this comment.
-
setString
public void setString(java.lang.String string)
-
getClientAnchor
public ClientAnchor getClientAnchor()
Description copied from interface:CommentReturn defines position of this anchor in the sheet.- Specified by:
getClientAnchorin interfaceComment- Returns:
- defines position of this anchor in the sheet
-
-
DataMelt 3.0 © DataMelt by jWork.ORG