org.apache.fop.render.rtf.rtflib.rtfdoc

Class RtfListItem.RtfListItemLabel

Enclosing Class:
RtfListItem
Implemented Interfaces:
IRtfTextrunContainer

public class RtfListItem.RtfListItemLabel
extends RtfTextrun
implements IRtfTextrunContainer

special RtfTextrun that is used as list item label

Field Summary

Fields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement

attrib, parent, writer

Constructor Summary

RtfListItemLabel(RtfListItem item)
Constructs the RtfListItemLabel

Method Summary

void
addString(String s)
Sets the content of the list item label.
RtfTextrun
getTextrun()
Returns the current RtfTextrun object.

Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfTextrun

addBookmark, addFootnote, addHyperlink, addPageNumber, addParagraphBreak, addString, getRtfListItem, getTextrun, newImage, popBlockAttributes, popInlineAttributes, pushBlockAttributes, pushInlineAttributes, setRtfListItem, setSuppressLastPar, writeRtfContent

Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer

addChild, getChildCount, getChildren, isEmpty, okToWriteRtf, setChildren, setOptions, toString, writeRtfContent

Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement

close, getRtfAttributes, isEmpty, newLine, okToWriteRtf, toString, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfContent, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS

Constructor Details

RtfListItemLabel

public RtfListItemLabel(RtfListItem item)
            throws IOException
Constructs the RtfListItemLabel
Parameters:
item - The RtfListItem the label belongs to

Method Details

addString

public void addString(String s)
            throws IOException
Sets the content of the list item label.
Overrides:
addString in interface RtfTextrun
Parameters:
s - Content of the list item label.

getTextrun

public RtfTextrun getTextrun()
            throws IOException
Returns the current RtfTextrun object. Opens a new one if necessary.
Specified by:
getTextrun in interface IRtfTextrunContainer
Returns:
The RtfTextrun object

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.