com.lowagie.text.rtf.style
Class RtfStylesheetList
java.lang.Object
com.lowagie.text.rtf.RtfElement
com.lowagie.text.rtf.style.RtfStylesheetList
- All Implemented Interfaces:
- RtfBasicElement, RtfExtendedElement
public class RtfStylesheetList
- extends RtfElement
- implements RtfExtendedElement
The RtfStylesheetList stores the RtfParagraphStyles that are used in the document.
- Version:
- $Revision: 1.1 $
- Author:
- Mark Hall (mhall@edu.uni-klu.ac.at)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RtfStylesheetList
public RtfStylesheetList(RtfDocument doc)
- Constructs a new RtfStylesheetList for the RtfDocument.
- Parameters:
doc
- The RtfDocument this RtfStylesheetList belongs to.
registerParagraphStyle
public void registerParagraphStyle(RtfParagraphStyle rtfParagraphStyle)
- Register a RtfParagraphStyle with this RtfStylesheetList.
- Parameters:
rtfParagraphStyle
- The RtfParagraphStyle to add.
getRtfParagraphStyle
public RtfParagraphStyle getRtfParagraphStyle(String styleName)
- Gets the RtfParagraphStyle with the given name. Makes sure that the defaults
have been loaded.
- Parameters:
styleName
- The name of the RtfParagraphStyle to get.
- Returns:
- The RtfParagraphStyle with the given name or null.
writeDefinition
public byte[] writeDefinition()
- Writes the definition of the stylesheet list.
- Specified by:
writeDefinition
in interface RtfExtendedElement
- Returns:
- A byte array containing the definition data of the Element
Copyright © 2006-2007 EGIZ - E-Government Innovationszentrum. All Rights Reserved.