Package org.apache.poi.xssf.usermodel
Class XSSFComment
java.lang.Object
org.apache.poi.xssf.usermodel.XSSFComment
- All Implemented Interfaces:
Comment
-
Constructor Summary
ConstructorsConstructorDescriptionXSSFComment(Comments comments, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTComment comment, com.microsoft.schemas.vml.CTShape vmlShape) Creates a new XSSFComment, associated with a given low level comment object.XSSFComment(CommentsTable comments, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTComment comment, com.microsoft.schemas.vml.CTShape vmlShape) Creates a new XSSFComment, associated with a given low level comment object. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintorg.openxmlformats.schemas.spreadsheetml.x2006.main.CTCommentprotected com.microsoft.schemas.vml.CTShapeintgetRow()inthashCode()booleanReturns whether this comment is visible.voidsetAddress(int row, int col) voidsetAddress(CellAddress address) voidName of the original comment author.voidsetColumn(int col) Set the column of the cell that contains the comment If changing both row and column, usesetAddress(int, int).voidsetRow(int row) Set the row of the cell that contains the comment If changing both row and column, usesetAddress(int, int).voidvoidsetString(RichTextString string) Sets the rich text string used by this comment.voidsetVisible(boolean visible) Sets whether this comment is visible.
-
Constructor Details
-
XSSFComment
public XSSFComment(CommentsTable comments, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTComment comment, com.microsoft.schemas.vml.CTShape vmlShape) Creates a new XSSFComment, associated with a given low level comment object. -
XSSFComment
public XSSFComment(Comments comments, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTComment comment, com.microsoft.schemas.vml.CTShape vmlShape) Creates a new XSSFComment, associated with a given low level comment object.- Since:
- 5.2.0
-
-
Method Details
-
getAuthor
-
setAuthor
Name of the original comment author. Default value is blank. -
getColumn
public int getColumn() -
getRow
public int getRow() -
isVisible
public boolean isVisible()Returns whether this comment is visible. -
setVisible
public void setVisible(boolean visible) Sets whether this comment is visible.- Specified by:
setVisiblein interfaceComment- Parameters:
visible-trueif the comment is visible,falseotherwise
-
getAddress
- Specified by:
getAddressin interfaceComment
-
setAddress
public void setAddress(int row, int col) - Specified by:
setAddressin interfaceComment
-
setAddress
- Specified by:
setAddressin interfaceComment
-
setColumn
public void setColumn(int col) Set the column of the cell that contains the comment If changing both row and column, usesetAddress(int, int). -
setRow
public void setRow(int row) Set the row of the cell that contains the comment If changing both row and column, usesetAddress(int, int). -
getString
-
setString
Sets the rich text string used by this comment. -
setString
-
getClientAnchor
- Specified by:
getClientAnchorin interfaceComment
-
getCTComment
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTComment getCTComment()- Returns:
- the xml bean holding this comment's properties
- Since:
- 5.2.0 (was protected before POI 5.2.0)
-
getCTShape
protected com.microsoft.schemas.vml.CTShape getCTShape() -
equals
-
hashCode
public int hashCode()
-