Package com.independentsoft.office.odf
Class List
java.lang.Object
com.independentsoft.office.odf.List
- All Implemented Interfaces:
IDrawText,ICellContent,IContentElement,IIndexContent,ITextContent,IHeaderFooterContent
Represents a list.
-
Constructor Summary
ConstructorsConstructorDescriptionList()Initializes a new instance of the List class.List(InternalXMLStreamReader reader)Instantiates a new list. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a ListItem object to the content.clone()Creates a new object that is a deep copy of the current instance.Returns all content elements.Gets the id of a list that is to be continued.Gets the list header and is a kind of list item.getID()Gets the id of the list.getItems()Contains a collection of items.Returns the parent content element.getStyle()Gets the name of a list style that is applied to a list.booleanSpecifies if the numbering of the preceding list is continued or not.voidsetContinueList(String continueList)Sets the id of a list that is to be continued.voidsetContinueNumbering(boolean continueNumbering)Specifies if the numbering of the preceding list is continued or not.voidsetHeader(ListHeader header)Sets the list header and is a kind of list item.voidSets the id of the list.voidsetParent(IContentElement parent)Sets the parent content element.voidSets the name of a list style that is applied to a list.toString()Converts the value of the current List object to its equivalent string representation.
-
Constructor Details
-
List
public List()Initializes a new instance of the List class. -
List
Instantiates a new list.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
add
Adds a ListItem object to the content.- Parameters:
item- the item
-
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 interfaceICellContent- Specified by:
clonein interfaceIContentElement- Specified by:
clonein interfaceIDrawText- Specified by:
clonein interfaceIHeaderFooterContent- Specified by:
clonein interfaceIIndexContent- Specified by:
clonein interfaceITextContent- Overrides:
clonein classObject- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current List object to its equivalent string representation. -
getItems
Contains a collection of items.- Returns:
- the items
-
getHeader
Gets the 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.- Returns:
- the header
-
setHeader
Sets the 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.- Parameters:
header- the new header
-
getID
Gets the id of the list.- Returns:
- the id
-
setID
Sets the id of the list.- Parameters:
id- the new id
-
getContinueList
Gets the id of a list that is to be continued.- Returns:
- the continue list
-
setContinueList
Sets the id of a list that is to be continued.- Parameters:
continueList- the new continue list
-
getStyle
Gets the name of a list style that is applied to a list.- Returns:
- the style
-
setStyle
Sets the name of a list style that is applied to a list.- Parameters:
style- the new style
-
isContinueNumbering
public boolean isContinueNumbering()Specifies if the numbering of the preceding list is continued or not.- Returns:
- true, if is continue numbering
-
setContinueNumbering
public void setContinueNumbering(boolean continueNumbering)Specifies if the numbering of the preceding list is continued or not.- Parameters:
continueNumbering- the new continue numbering
-