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

Class RtfParagraphKeepTogether


public class RtfParagraphKeepTogether
extends RtfContainer

Models the keep together attributes of paragraphs

Field Summary

static int
STATUS_CLOSE_PARAGRAPH
constant for close paragraph
static int
STATUS_NULL
constant for unset status
static int
STATUS_OPEN_PARAGRAPH
constant for open paragraph

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

attrib, parent, writer

Method Summary

boolean
isEmpty()
void
setStatus(int status)
set the status
protected void
writeRtfContent()
Write the content

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

Field Details

STATUS_CLOSE_PARAGRAPH

public static final int STATUS_CLOSE_PARAGRAPH
constant for close paragraph
Field Value:
2

STATUS_NULL

public static final int STATUS_NULL
constant for unset status
Field Value:
0

STATUS_OPEN_PARAGRAPH

public static final int STATUS_OPEN_PARAGRAPH
constant for open paragraph
Field Value:
1

Method Details

isEmpty

public boolean isEmpty()
Overrides:
isEmpty in interface RtfContainer
Returns:
true if this element would generate no "useful" RTF content

setStatus

public void setStatus(int status)
set the status
Parameters:
status - the status to be set

writeRtfContent

protected void writeRtfContent()
            throws IOException
Write the content
Overrides:
writeRtfContent in interface RtfContainer

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