Package org.apache.poi.hslf.record
Class Comment2000
- java.lang.Object
-
- org.apache.poi.hslf.record.Record
-
- org.apache.poi.hslf.record.RecordContainer
-
- org.apache.poi.hslf.record.Comment2000
-
- All Implemented Interfaces:
GenericRecord
public final class Comment2000 extends RecordContainer
This class represents a comment on a slide, in the format used by PPT 2000/XP/etc. (PPT 97 uses plain Escher Text Boxes for comments)
-
-
Field Summary
-
Fields inherited from class org.apache.poi.hslf.record.RecordContainer
_children
-
-
Constructor Summary
Constructors Modifier Constructor Description Comment2000()Create a new Comment2000, with blank fieldsprotectedComment2000(byte[] source, int start, int len)Set things up, and find our more interesting children
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAuthor()Get the Author of this commentStringgetAuthorInitials()Get the Author's Initials of this commentComment2000AtomgetComment2000Atom()Returns the Comment2000Atom of this CommentlonggetRecordType()We are of type 1200StringgetText()Get the text of this commentvoidsetAuthor(String author)Set the Author of this commentvoidsetAuthorInitials(String initials)Set the Author's Initials of this commentvoidsetText(String text)Set the text of this commentvoidwriteOut(OutputStream out)Write the contents of the record back, so it can be written to disk-
Methods inherited from class org.apache.poi.hslf.record.RecordContainer
addChildAfter, addChildBefore, appendChildRecord, findFirstOfType, getChildRecords, getGenericProperties, handleParentAwareRecords, isAnAtom, removeChild, setChildRecord, writeOut
-
Methods inherited from class org.apache.poi.hslf.record.Record
buildRecordAtOffset, createRecordForType, findChildRecords, getGenericChildren, getGenericRecordType, writeLittleEndian, writeLittleEndian
-
-
-
-
Method Detail
-
getComment2000Atom
public Comment2000Atom getComment2000Atom()
Returns the Comment2000Atom of this Comment
-
getAuthor
public String getAuthor()
Get the Author of this comment
-
setAuthor
public void setAuthor(String author)
Set the Author of this comment
-
getAuthorInitials
public String getAuthorInitials()
Get the Author's Initials of this comment
-
setAuthorInitials
public void setAuthorInitials(String initials)
Set the Author's Initials of this comment
-
getText
public String getText()
Get the text of this comment
-
setText
public void setText(String text)
Set the text of this comment
-
getRecordType
public long getRecordType()
We are of type 1200- Specified by:
getRecordTypein classRecord
-
writeOut
public void writeOut(OutputStream out) throws IOException
Write the contents of the record back, so it can be written to disk- Specified by:
writeOutin classRecord- Throws:
IOException
-
-