Package com.independentsoft.office.odf
Class ListHeader
java.lang.Object
com.independentsoft.office.odf.ListHeader
- All Implemented Interfaces:
IContentElement
Represents a list header and is a kind of list item. It contains one or more paragraphs that are displayed before a list. The paragraphs are formatted as list items but they do not have a preceding number or bullet.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a Heading object to the content.voidAdds a List object to the content.voidAdds a Paragraph object to the content.clone()Creates a new object that is a deep copy of the current instance.Contains a collection of ITextContent objects.Returns all content elements.Returns the parent content element.voidsetParent(IContentElement parent)Sets the parent content element.toString()Converts the value of the current ListHeader object to its equivalent string representation.
-
Constructor Details
-
ListHeader
public ListHeader()Initializes a new instance of the ListHeader class.
-
-
Method Details
-
add
Adds a Paragraph object to the content.- Parameters:
paragraph- the paragraph
-
add
Adds a Heading object to the content.- Parameters:
heading- the heading
-
add
Adds a List object to the content.- Parameters:
list- the list
-
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- Overrides:
clonein classObject- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current ListHeader object to its equivalent string representation. -
getContent
Contains a collection of ITextContent objects.- Returns:
- the content
-