public class RtfListItem extends RtfContainer implements IRtfTextrunContainer, IRtfListContainer, IRtfParagraphContainer
Model of an RTF list item, which can contain RTF paragraphs.
This work was authored by Bertrand Delacretaz (bdelacretaz@codeconsult.ch) and Andreas Putz (a.putz@skynamics.com).
Modifier and Type | Class and Description |
---|---|
class |
RtfListItem.RtfListItemLabel
special RtfTextrun that is used as list item label
|
attrib, parent, writer
Modifier and Type | Method and Description |
---|---|
int |
getNumber()
Returns the list number
|
RtfList |
getParentList()
Get the parent list.
|
RtfListStyle |
getRtfListStyle()
Get list style
|
RtfTextrun |
getTextrun()
Get the current textrun.
|
RtfList |
newList(RtfAttributes attrs)
Start a new list after closing current paragraph, list and table
|
RtfParagraph |
newParagraph()
Close current paragraph if any and start a new one with default attributes
|
RtfParagraph |
newParagraph(RtfAttributes attrs)
Close current paragraph if any and start a new one
|
void |
setRtfListStyle(RtfListStyle ls)
Change list style
|
protected void |
writeRtfPrefix()
Overridden to setup the list: start a group with appropriate attributes
|
protected void |
writeRtfSuffix()
End the list group
|
addChild, findChildren, getChildCount, getChildren, isEmpty, okToWriteRtf, setChildren, setOptions, toString, writeRtfContent
close, getParentOfClass, getRtfAttributes, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeStarControlWord, writeStarControlWordNS
public RtfParagraph newParagraph(RtfAttributes attrs) throws IOException
newParagraph
in interface IRtfParagraphContainer
attrs
- attributes of new paragraphIOException
- Thrown when an IO-problem occurspublic RtfParagraph newParagraph() throws IOException
newParagraph
in interface IRtfParagraphContainer
IOException
- Thrown when an IO-problem occurspublic RtfTextrun getTextrun() throws IOException
getTextrun
in interface IRtfTextrunContainer
IOException
- Thrown when an IO-problem occurspublic RtfList newList(RtfAttributes attrs) throws IOException
newList
in interface IRtfListContainer
attrs
- attributes of new RftList objectIOException
- for I/O problemsprotected void writeRtfPrefix() throws IOException
writeRtfPrefix
in class RtfElement
IOException
- for I/O problemsprotected void writeRtfSuffix() throws IOException
writeRtfSuffix
in class RtfElement
IOException
- for I/O problemspublic void setRtfListStyle(RtfListStyle ls)
ls
- ListStyle to setpublic RtfListStyle getRtfListStyle()
public RtfList getParentList()
public int getNumber()
Copyright © 2025 Apache Software Foundation. All rights reserved.