|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.betabeans.scroogexhtml.dom.Paragraph
public final class Paragraph
ScroogeXHTML creates a Paragraph object for each paragraph of the document. A Paragraph object stores the paragraph properties and a sequence of text objects.
Document,
FormattedText,
Serialized Form| Constructor Summary | |
|---|---|
Paragraph(Document adocument)
Constructor for the Paragraph object. |
|
| Method Summary | |
|---|---|
void |
add(char c)
Add a character to the last text object in the paragraph. |
void |
add(java.lang.String text)
Add a String to the last text object. |
protected Document |
getDocument()
Gets the document attribute. |
ParagraphProperties |
getPp()
Returns the ParagraphProperties value. |
FormattedText |
getText()
Get the current text object (create one if necessary). |
boolean |
isEmpty()
|
FormattedText |
nextText()
Add and return a new empty text element, recycle empty text buffer. |
protected void |
setParProperties(ParagraphProperties app)
Sets the paragraph properties. |
java.lang.String |
toPlainText()
Convert the paragraph text to plain text. |
java.lang.String |
toString()
Convert the paragraph text. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Paragraph(Document adocument)
adocument - The owner (DOM document) of the paragraph.| Method Detail |
|---|
protected void setParProperties(ParagraphProperties app)
app - The new parProperties valuepublic FormattedText getText()
protected Document getDocument()
public java.lang.String toString()
toString in interface DocumentNodetoString in class java.lang.Objectpublic java.lang.String toPlainText()
public void add(java.lang.String text)
add in interface DocumentNodetext - String to be addedpublic void add(char c)
add in interface DocumentNodec - character to be addedpublic FormattedText nextText()
public ParagraphProperties getPp()
public boolean isEmpty()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||