Package org.apache.poi.sl.usermodel
Interface Comment
- 
- All Known Implementing Classes:
 HSLFComment,XSLFComment
public interface CommentCommon interface for comments- Since:
 - POI 4.0.0
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetAuthor()Get the Author of this commentjava.lang.StringgetAuthorInitials()Get the Author's Initials of this commentjava.util.DategetDate()Gets the date the comment was made.java.awt.geom.Point2DgetOffset()Gets the offset of the comment on the page.java.lang.StringgetText()Get the text of this commentvoidsetAuthor(java.lang.String author)Set the Author of this comment.voidsetAuthorInitials(java.lang.String initials)Set the Author's Initials of this comment.voidsetDate(java.util.Date date)Sets the date the comment was made.voidsetOffset(java.awt.geom.Point2D offset)Sets the offset of the comment on the page.voidsetText(java.lang.String text)Set the text of this comment 
 - 
 
- 
- 
Method Detail
- 
getAuthor
java.lang.String getAuthor()
Get the Author of this comment 
- 
setAuthor
void setAuthor(java.lang.String author)
Set the Author of this comment. if the author wasn't registered before, create a new entry 
- 
getAuthorInitials
java.lang.String getAuthorInitials()
Get the Author's Initials of this comment 
- 
setAuthorInitials
void setAuthorInitials(java.lang.String initials)
Set the Author's Initials of this comment. if the author wasn't registered before viasetAuthor(String)this has no effect 
- 
getText
java.lang.String getText()
Get the text of this comment 
- 
setText
void setText(java.lang.String text)
Set the text of this comment 
- 
getDate
java.util.Date getDate()
Gets the date the comment was made.- Returns:
 - the comment date.
 
 
- 
setDate
void setDate(java.util.Date date)
Sets the date the comment was made.- Parameters:
 date- the comment date.
 
- 
getOffset
java.awt.geom.Point2D getOffset()
Gets the offset of the comment on the page.- Returns:
 - the offset.
 
 
- 
setOffset
void setOffset(java.awt.geom.Point2D offset)
Sets the offset of the comment on the page.- Parameters:
 offset- the offset.
 
 - 
 
 -