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 java.io.IOException
newParagraph
in interface IRtfParagraphContainer
attrs
- attributes of new paragraphjava.io.IOException
- Thrown when an IO-problem occurspublic RtfParagraph newParagraph() throws java.io.IOException
newParagraph
in interface IRtfParagraphContainer
java.io.IOException
- Thrown when an IO-problem occurspublic RtfTextrun getTextrun() throws java.io.IOException
getTextrun
in interface IRtfTextrunContainer
java.io.IOException
- Thrown when an IO-problem occurspublic RtfList newList(RtfAttributes attrs) throws java.io.IOException
newList
in interface IRtfListContainer
attrs
- attributes of new RftList objectjava.io.IOException
- for I/O problemsprotected void writeRtfPrefix() throws java.io.IOException
writeRtfPrefix
in class RtfElement
java.io.IOException
- for I/O problemsprotected void writeRtfSuffix() throws java.io.IOException
writeRtfSuffix
in class RtfElement
java.io.IOException
- for I/O problemspublic void setRtfListStyle(RtfListStyle ls)
ls
- ListStyle to setpublic RtfListStyle getRtfListStyle()
public RtfList getParentList()
public int getNumber()
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.