de.betabeans.scroogexhtml
Class ScroogeXHTMLDocParagraph
java.lang.Object
|
+--de.betabeans.scroogexhtml.ScroogeXHTMLDocParagraph
- public class ScroogeXHTMLDocParagraph
- extends java.lang.Object
ScroogeXHTML creates a ScroogeXHTMLDocParagraph object for each paragraph of
the document. A ScroogeXHTMLDocParagraph object stores the paragraph
properties and a sequence of text objects.
The toString()
method iterates the list of text objects and converts the paragraph to
XHTML.
- Author:
- Michael
- See Also:
ScroogeXHTMLDocument
,
ScroogeXHTMLDocText
Method Summary |
protected void |
add(char c)
add a character to the text last current text object in the paragraph |
protected void |
add(java.lang.String text)
add a String to the text last current text object in the paragraph |
protected boolean |
isEmpty()
|
protected ScroogeXHTMLDocText |
nextText()
add and return a new empty text element, recycle empty text buffer |
protected void |
setParProperties(int al,
boolean pn,
int nl,
int li,
int ri,
int fi)
Sets the paragraph properties of the ScroogeXHTMLDocParagraph object |
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 |
document
protected ScroogeXHTMLDocument document
- Description of the Field
ScroogeXHTMLDocParagraph
public ScroogeXHTMLDocParagraph(ScroogeXHTMLDocument document)
- Constructor for the ScroogeXHTMLDocParagraph object
- Parameters:
document
- Description of Parameter
toString
public java.lang.String toString()
- convert the paragraph text
- Overrides:
toString
in class java.lang.Object
- Returns:
- text
setParProperties
protected void setParProperties(int al,
boolean pn,
int nl,
int li,
int ri,
int fi)
- Sets the paragraph properties of the ScroogeXHTMLDocParagraph object
- Parameters:
al
- The new parProperties valuepn
- The new parProperties valuenl
- The new parProperties valueli
- The new parProperties valueri
- The new parProperties valuefi
- The new parProperties value
isEmpty
protected boolean isEmpty()
- Returns:
- The empty value
add
protected void add(java.lang.String text)
- add a String to the text last current text object in the paragraph
- Parameters:
text
- String to be added
add
protected void add(char c)
- add a character to the text last current text object in the paragraph
- Parameters:
c
- character to be added
nextText
protected ScroogeXHTMLDocText nextText()
- add and return a new empty text element, recycle empty text buffer
- Returns:
- new and empty text element