Package com.independentsoft.office.odf
Class Note
java.lang.Object
com.independentsoft.office.odf.Note
- All Implemented Interfaces:
IContentElement,IParagraphContent
Represents text notes which are attached to a text position.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a Change object to the content.voidAdds a ChangeEnd object to the content.voidadd(ChangeStart changeStart)Adds a ChangeStart object to the content.voidAdds a Shape object to the content.voidAdds a Heading object to the content.voidadd(IndexOfIllustrations index)Adds an IndexOfIllustrations object to the content.voidadd(ITextContent textContent)Adds an ITextContent object to the content.voidAdds a List object to the content.voidAdds a Paragraph object to the content.voidAdds a Section object to the content.voidAdds a Table object to the content.voidadd(TableOfContents toc)Adds a TableOfContents object to the content.clone()Creates a new object that is a deep copy of the current instance.Gets the citation, either as a formatted number or a string.Contains a collection of ITextContent objects.Returns all content elements.getID()Gets the name by which notes can be referenced from NoteReference objects.getLabel()Gets the label for user inserted notes in a document.Gets the class of the note.Returns the parent content element.voidsetCitation(String citation)Sets the citation, either as a formatted number or a string.voidSets the name by which notes can be referenced from NoteReference objects.voidSets the label for user inserted notes in a document.voidsetNoteClass(NoteClass noteClass)Sets the class of the note.voidsetParent(IContentElement parent)Sets the parent content element.toString()Converts the value of the current Note object to its equivalent string representation.
-
Constructor Details
-
Note
public Note()Initializes a new instance of the Note class.
-
-
Method Details
-
add
Adds a Change object to the content.- Parameters:
change- the change
-
add
Adds a ChangeEnd object to the content.- Parameters:
changeEnd- the change end
-
add
Adds a ChangeStart object to the content.- Parameters:
changeStart- the change start
-
add
Adds a Shape object to the content.- Parameters:
shape- the shape
-
add
Adds an IndexOfIllustrations object to the content.- Parameters:
index- the index
-
add
Adds a Heading object to the content.- Parameters:
heading- the heading
-
add
Adds a List object to the content.- Parameters:
list- the list
-
add
Adds a Paragraph object to the content.- Parameters:
paragraph- the paragraph
-
add
Adds a Section object to the content.- Parameters:
section- the section
-
add
Adds a Table object to the content.- Parameters:
table- the table
-
add
Adds a TableOfContents object to the content.- Parameters:
toc- the toc
-
add
Adds an ITextContent object to the content.- Parameters:
textContent- the text content
-
getContentElements
Returns all content elements.- Specified by:
getContentElementsin interfaceIContentElement- Returns:
- A collection of content elements.
-
getParent
Returns the parent content element.- Specified by:
getParentin interfaceIContentElement- Returns:
- the parent
-
setParent
Sets the parent content element.- Specified by:
setParentin interfaceIContentElement- Parameters:
parent- the new parent
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceIContentElement- Specified by:
clonein interfaceIParagraphContent- Overrides:
clonein classObject- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current Note object to its equivalent string representation. -
getContent
Contains a collection of ITextContent objects.- Returns:
- the content
-
getID
Gets the name by which notes can be referenced from NoteReference objects.- Returns:
- the id
-
setID
Sets the name by which notes can be referenced from NoteReference objects.- Parameters:
id- the new id
-
getNoteClass
Gets the class of the note.- Returns:
- the note class
-
setNoteClass
Sets the class of the note.- Parameters:
noteClass- the new note class
-
getLabel
Gets the label for user inserted notes in a document.- Returns:
- the label
-
setLabel
Sets the label for user inserted notes in a document.- Parameters:
label- the new label
-
getCitation
Gets the citation, either as a formatted number or a string.- Returns:
- the citation
-
setCitation
Sets the citation, either as a formatted number or a string.- Parameters:
citation- the new citation
-