Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
CellAddress |
getAddress()
Get the address of the cell that this comment is attached to
|
java.lang.String |
getAuthor()
Name of the original comment author
|
ClientAnchor |
getClientAnchor()
Return defines position of this anchor in the sheet.
|
int |
getColumn()
Return the column of the cell that contains the comment
|
protected org.openxmlformats.schemas.spreadsheetml.x2006.main.CTComment |
getCTComment() |
protected com.microsoft.schemas.vml.CTShape |
getCTShape() |
int |
getRow()
Return the row of the cell that contains the comment
|
XSSFRichTextString |
getString()
Fetches the rich text string of the comment
|
int |
hashCode() |
boolean |
isVisible()
Returns whether this comment is visible.
|
void |
setAddress(CellAddress address)
Set the address of the cell that this comment is attached to
|
void |
setAddress(int row,
int col)
Set the address of the cell that this comment is attached to
|
void |
setAuthor(java.lang.String author)
Name of the original comment author.
|
void |
setColumn(int col)
Set the column of the cell that contains the comment
If changing both row and column, use
setAddress(int, int) . |
void |
setRow(int row)
Set the row of the cell that contains the comment
If changing both row and column, use
setAddress(int, int) . |
void |
setString(RichTextString string)
Sets the rich text string used by this comment.
|
void |
setString(java.lang.String string) |
void |
setVisible(boolean visible)
Sets whether this comment is visible.
|
public XSSFComment(CommentsTable comments, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTComment comment, com.microsoft.schemas.vml.CTShape vmlShape)
public java.lang.String getAuthor()
Comment
public void setAuthor(java.lang.String author)
public int getColumn()
Comment
public int getRow()
Comment
public boolean isVisible()
public void setVisible(boolean visible)
setVisible
in interface Comment
visible
- true
if the comment is visible, false
otherwisepublic CellAddress getAddress()
Comment
getAddress
in interface Comment
public void setAddress(int row, int col)
Comment
setAddress
in interface Comment
public void setAddress(CellAddress address)
Comment
setAddress
in interface Comment
public void setColumn(int col)
setAddress(int, int)
.public void setRow(int row)
setAddress(int, int)
.public XSSFRichTextString getString()
Comment
public void setString(RichTextString string)
public void setString(java.lang.String string)
public ClientAnchor getClientAnchor()
Comment
Comment.setAddress(org.apache.poi.ss.util.CellAddress)
.getClientAnchor
in interface Comment
protected org.openxmlformats.schemas.spreadsheetml.x2006.main.CTComment getCTComment()
protected com.microsoft.schemas.vml.CTShape getCTShape()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.