public class RtfList extends RtfContainer
Modifier and Type | Class and Description |
---|---|
static class |
RtfList.NumberingStyle |
m_attrib, m_parent, m_writer
Constructor and Description |
---|
RtfList(RtfContainer parent,
java.io.Writer w,
RtfAttributes attr)
Create an RTF list as a child of given container with given attributes
|
Modifier and Type | Method and Description |
---|---|
boolean |
isBulletedList()
true if this is a bulleted list (as opposed to numbered list)
|
RtfListItem |
newListItem()
close current list item and start a new one
|
void |
setNumberingStyle(RtfList.NumberingStyle ns)
change numbering style
|
protected void |
writeRtfPrefix()
overridden to setup the list: start a group with appropriate attributes
|
protected void |
writeRtfSuffix()
end the list group
|
addChild, containsText, dump, getChildCount, getChildren, getOptions, isEmpty, okToWriteRtf, setChildren, setOptions, toString, writeRtfContent
close, getParentOfClass, getRtfAttributes, getRtfFile, isClosed, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeStarControlWord, writeStarControlWordNS
RtfList(RtfContainer parent, java.io.Writer w, RtfAttributes attr) throws java.io.IOException
java.io.IOException
public void setNumberingStyle(RtfList.NumberingStyle ns)
protected void writeRtfPrefix() throws java.io.IOException
writeRtfPrefix
in class RtfElement
java.io.IOException
protected void writeRtfSuffix() throws java.io.IOException
writeRtfSuffix
in class RtfElement
java.io.IOException
public RtfListItem newListItem() throws java.io.IOException
java.io.IOException
public boolean isBulletedList()