IRtfListContainer, IRtfParagraphContainer, IRtfTextrunContainerpublic 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 | Description |
|---|---|---|
class |
RtfListItem.RtfListItemLabel |
special RtfTextrun that is used as list item label
|
attrib, parent, writer| Modifier and Type | Method | 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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddChild, findChildren, getChildCount, getChildren, isEmpty, okToWriteRtf, setChildren, setOptions, toString, writeRtfContentclose, getParentOfClass, getRtfAttributes, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeStarControlWord, writeStarControlWordNSpublic RtfParagraph newParagraph(RtfAttributes attrs) throws java.io.IOException
newParagraph in interface IRtfParagraphContainerattrs - attributes of new paragraphjava.io.IOException - Thrown when an IO-problem occurspublic RtfParagraph newParagraph() throws java.io.IOException
newParagraph in interface IRtfParagraphContainerjava.io.IOException - Thrown when an IO-problem occurspublic RtfTextrun getTextrun() throws java.io.IOException
getTextrun in interface IRtfTextrunContainerjava.io.IOException - Thrown when an IO-problem occurspublic RtfList newList(RtfAttributes attrs) throws java.io.IOException
newList in interface IRtfListContainerattrs - attributes of new RftList objectjava.io.IOException - for I/O problemsprotected void writeRtfPrefix()
throws java.io.IOException
writeRtfPrefix in class RtfElementjava.io.IOException - for I/O problemsprotected void writeRtfSuffix()
throws java.io.IOException
writeRtfSuffix in class RtfElementjava.io.IOException - for I/O problemspublic void setRtfListStyle(RtfListStyle ls)
ls - ListStyle to setpublic RtfListStyle getRtfListStyle()
public RtfList getParentList()
public int getNumber()
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.