| 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(Object obj) |
CellAddress |
getAddress() |
String |
getAuthor() |
ClientAnchor |
getClientAnchor() |
int |
getColumn() |
protected org.openxmlformats.schemas.spreadsheetml.x2006.main.CTComment |
getCTComment() |
protected com.microsoft.schemas.vml.CTShape |
getCTShape() |
int |
getRow() |
XSSFRichTextString |
getString() |
int |
hashCode() |
boolean |
isVisible()
Returns whether this comment is visible.
|
void |
setAddress(CellAddress address) |
void |
setAddress(int row,
int col) |
void |
setAuthor(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(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 String getAuthor()
public void setAuthor(String author)
public int getColumn()
public int getRow()
public boolean isVisible()
public void setVisible(boolean visible)
setVisible in interface Commentvisible - true if the comment is visible, false otherwisepublic CellAddress getAddress()
getAddress in interface Commentpublic void setAddress(int row,
int col)
setAddress in interface Commentpublic void setAddress(CellAddress address)
setAddress in interface Commentpublic void setColumn(int col)
setAddress(int, int).public void setRow(int row)
setAddress(int, int).public XSSFRichTextString getString()
public void setString(RichTextString string)
public void setString(String string)
public ClientAnchor getClientAnchor()
getClientAnchor in interface Commentprotected org.openxmlformats.schemas.spreadsheetml.x2006.main.CTComment getCTComment()
protected com.microsoft.schemas.vml.CTShape getCTShape()