org.jopendocument.dom.text
Class Paragraph

java.lang.Object
  extended by org.jopendocument.dom.ODNode
      extended by org.jopendocument.dom.StyledNode<S,TextDocument>
          extended by org.jopendocument.dom.text.TextNode<ParagraphStyle>
              extended by org.jopendocument.dom.text.Paragraph
Direct Known Subclasses:
Heading

public class Paragraph
extends TextNode<ParagraphStyle>

A text paragraph, the basic unit of text. See ยง4.1 of the OpenDocument specification.


Field Summary
 
Fields inherited from class org.jopendocument.dom.text.TextNode
parent
 
Constructor Summary
Paragraph()
           
Paragraph(org.jdom.Element elem)
           
Paragraph(String text)
           
Paragraph(XMLVersion ns)
           
 
Method Summary
 void addContent(String text)
           
 void addStyledContent(String text, String styleName)
           
 void addTab()
           
protected  void checkDocument(ODDocument doc)
           
 ParagraphStyle getConditionalStyle()
          A style containing conditions and maps to other styles.
 String toString()
           
 
Methods inherited from class org.jopendocument.dom.text.TextNode
getCharacterContent, getCharacterContent, getCharacterContent, getChildrenCharacterContent, getODDocument, setDocument
 
Methods inherited from class org.jopendocument.dom.StyledNode
getPrivateStyle, getStyle, getStyle, getStyle, getStyle, getStyleDesc, getStyleDesc, getStyleDesc, getStyleName, getStyleStyleDesc, setStyleName, setStyleName
 
Methods inherited from class org.jopendocument.dom.ODNode
getElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Paragraph

public Paragraph(org.jdom.Element elem)

Paragraph

public Paragraph(XMLVersion ns)

Paragraph

public Paragraph()

Paragraph

public Paragraph(String text)
Method Detail

getConditionalStyle

public final ParagraphStyle getConditionalStyle()
A style containing conditions and maps to other styles.

Returns:
the conditional style or null if none or if this isn't in a document.

addContent

public final void addContent(String text)

addTab

public final void addTab()

addStyledContent

public final void addStyledContent(String text,
                                   String styleName)

checkDocument

protected void checkDocument(ODDocument doc)
Specified by:
checkDocument in class TextNode<ParagraphStyle>

toString

public String toString()
Overrides:
toString in class ODNode


Copyright © 2010 jOpenDocument All Rights Reserved.