org.apache.poi.xssf.model
Class CommentsTable
- java.lang.Object
-
- org.apache.poi.POIXMLDocumentPart
-
- org.apache.poi.xssf.model.CommentsTable
-
public class CommentsTable extends POIXMLDocumentPart
-
-
Field Summary
-
Fields inherited from class org.apache.poi.POIXMLDocumentPart
DEFAULT_XML_OPTIONS
-
-
Constructor Summary
Constructors Constructor and Description CommentsTable()CommentsTable(PackagePart part, PackageRelationship rel)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description intfindAuthor(java.lang.String author)XSSFCommentfindCellComment(java.lang.String cellRef)java.lang.StringgetAuthor(long authorId)org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCommentgetCTComment(java.lang.String cellRef)org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCommentsgetCTComments()intgetNumberOfAuthors()intgetNumberOfComments()org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCommentnewComment()Deprecated.UsenewComment(String)instead to explicitly set the cell reference to create fororg.openxmlformats.schemas.spreadsheetml.x2006.main.CTCommentnewComment(java.lang.String ref)voidreadFrom(java.io.InputStream is)voidreferenceUpdated(java.lang.String oldReference, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTComment comment)Called after the reference is updated, so that we can reflect that in our cachebooleanremoveComment(java.lang.String cellRef)voidwriteTo(java.io.OutputStream out)-
Methods inherited from class org.apache.poi.POIXMLDocumentPart
addRelation, createRelationship, createRelationship, getPackagePart, getPackageRelationship, getParent, getRelationById, getRelationId, getRelations, toString
-
-
-
-
Constructor Detail
-
CommentsTable
public CommentsTable()
-
CommentsTable
public CommentsTable(PackagePart part, PackageRelationship rel) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
readFrom
public void readFrom(java.io.InputStream is) throws java.io.IOException- Throws:
java.io.IOException
-
writeTo
public void writeTo(java.io.OutputStream out) throws java.io.IOException- Throws:
java.io.IOException
-
referenceUpdated
public void referenceUpdated(java.lang.String oldReference, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTComment comment)Called after the reference is updated, so that we can reflect that in our cache
-
getNumberOfComments
public int getNumberOfComments()
-
getNumberOfAuthors
public int getNumberOfAuthors()
-
getAuthor
public java.lang.String getAuthor(long authorId)
-
findAuthor
public int findAuthor(java.lang.String author)
-
findCellComment
public XSSFComment findCellComment(java.lang.String cellRef)
-
getCTComment
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTComment getCTComment(java.lang.String cellRef)
-
newComment
@Deprecated public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTComment newComment()
Deprecated. UsenewComment(String)instead to explicitly set the cell reference to create forThis method is deprecated and should not be used any more as it silently overwrites the comment in Cell A1 if present
-
newComment
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTComment newComment(java.lang.String ref)
-
removeComment
public boolean removeComment(java.lang.String cellRef)
-
getCTComments
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTComments getCTComments()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG