Package com.independentsoft.office.odf
Class NoteReference
java.lang.Object
com.independentsoft.office.odf.NoteReference
- All Implemented Interfaces:
IContentElement,IParagraphContent
Represents a field that represents a reference to a Note object in a text.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Returns all content elements.Specifies what information about a reference is displayed.getName()Gets the name that is used as a reference.Gets the class of a note.Returns the parent content element.getValue()Gets the value.voidsetFormat(ReferenceFormat format)Specifies what information about a reference is displayed.voidSets the name that is used as a reference.voidsetNoteClass(NoteClass noteClass)Sets the class of a note.voidsetParent(IContentElement parent)Sets the parent content element.voidSets the value.toString()Converts the value of the current NoteReference object to its equivalent string representation.
-
Constructor Details
-
NoteReference
public NoteReference()Initializes a new instance of the NoteReference class.
-
-
Method Details
-
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 NoteReference object to its equivalent string representation. -
getName
Gets the name that is used as a reference.- Returns:
- the name
-
setName
Sets the name that is used as a reference.- Parameters:
name- the new name
-
getFormat
Specifies what information about a reference is displayed.- Returns:
- the format
-
setFormat
Specifies what information about a reference is displayed.- Parameters:
format- the new format
-
getValue
Gets the value.- Returns:
- the value
-
setValue
Sets the value.- Parameters:
value- the new value
-
getNoteClass
Gets the class of a note.- Returns:
- the note class
-
setNoteClass
Sets the class of a note.- Parameters:
noteClass- the new note class
-