Class TemplateName
java.lang.Object
com.independentsoft.office.odf.fields.Field
com.independentsoft.office.odf.fields.TemplateName
- All Implemented Interfaces:
IContentElement,IParagraphContent
Represents a field that displays information about the document template in use.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the TemplateName class.TemplateName(InternalXMLStreamReader reader)Instantiates a new template name. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Returns all content elements.Gets the information about a document template to display.Returns the parent content element.getValue()Gets the template name.voidsetDisplayType(TemplateNameDisplayType displayType)Sets the information about a document template to display.voidsetParent(IContentElement parent)Sets the parent content element.voidSets the template name.toString()Converts the value of the current TemplateName object to its equivalent string representation.
-
Constructor Details
-
TemplateName
public TemplateName()Initializes a new instance of the TemplateName class. -
TemplateName
Instantiates a new template name.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
getContentElements
Returns all content elements.- Specified by:
getContentElementsin interfaceIContentElement- Specified by:
getContentElementsin classField- Returns:
- A collection of content elements.
-
getParent
Returns the parent content element.- Specified by:
getParentin interfaceIContentElement- Overrides:
getParentin classField- Returns:
- the parent
-
setParent
Sets the parent content element.- Specified by:
setParentin interfaceIContentElement- Overrides:
setParentin classField- 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- Specified by:
clonein classField- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current TemplateName object to its equivalent string representation. -
getDisplayType
Gets the information about a document template to display.- Returns:
- the display type
-
setDisplayType
Sets the information about a document template to display.- Parameters:
displayType- the new display type
-
getValue
Gets the template name.- Returns:
- the value
-
setValue
Sets the template name.- Parameters:
value- the new value
-