|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.betabeans.scroogexhtml.dom.Document
public final class Document
ScroogeXHTML uses a Document object to store the complete content of the RTF file internally before it is converted. Every Document is a sequence of Paragraphobjects, which are sequences of FormattedTextobjects.
Paragraph
,
FormattedText
,
Serialized FormConstructor Summary | |
---|---|
Document(ScroogeXHTMLBase aconverter)
Constructor for the Document object. |
Method Summary | |
---|---|
void |
add()
Add a paragraph to the document. |
void |
add(char c)
Add a character to the current text object of the current paragraph. |
void |
add(java.lang.String text)
Add a string to the current text object of the current paragraph. |
void |
addEncoded(java.lang.String s)
Adds a string to the current paragraph. |
java.lang.StringBuffer |
buildHtml()
Convert all paragraph objects to HTML/XHTML. |
java.lang.StringBuffer |
buildPlainText()
Build plain text. |
ScroogeXHTMLBase |
getConverter()
Gets the converter attribute. |
java.lang.String |
getEmptyParagraph()
Returns the HTML code for an empty paragraph. |
Paragraph |
getPar()
get the current paragraph. |
protected Paragraph |
nextPar(Paragraph paragraph)
Find the next paragraph in the document. |
protected Paragraph |
prevPar(Paragraph paragraph)
Find the previous paragraph in the document. |
void |
setParProperties(ParagraphProperties pp)
Set the current paragraph properties. |
void |
setTextProperties(CharacterProperties cp)
Set the current text element properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.betabeans.scroogexhtml.dom.DocumentNode |
---|
toString |
Constructor Detail |
---|
public Document(ScroogeXHTMLBase aconverter)
aconverter
- The converter object (owner).Method Detail |
---|
public void setParProperties(ParagraphProperties pp)
pp
- The new parProperties valuepublic void setTextProperties(CharacterProperties cp)
cp
- The new textProperties valuepublic Paragraph getPar()
public ScroogeXHTMLBase getConverter()
public java.lang.String getEmptyParagraph()
public void add(java.lang.String text)
add
in interface DocumentNode
text
- the String to be addedpublic void add(char c)
add
in interface DocumentNode
c
- the character to be addedprotected Paragraph prevPar(Paragraph paragraph)
paragraph
- the current paragraph
protected Paragraph nextPar(Paragraph paragraph)
paragraph
- the current paragraph
public java.lang.StringBuffer buildHtml()
public void addEncoded(java.lang.String s)
s
- The string to be added to the documentpublic void add()
public java.lang.StringBuffer buildPlainText()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |