org.jopendocument.dom.text
Class Paragraph
java.lang.Object
org.jopendocument.dom.ODNode
org.jopendocument.dom.StyledNode<S,TextDocument>
org.jopendocument.dom.text.TextNode<ParagraphStyle>
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.
Fields inherited from class org.jopendocument.dom.text.TextNode |
parent |
Methods inherited from class org.jopendocument.dom.StyledNode |
getPrivateStyle, getStyle, getStyle, getStyle, getStyle, getStyleDesc, getStyleDesc, getStyleDesc, getStyleName, getStyleStyleDesc, setStyleName, setStyleName |
Paragraph
public Paragraph(org.jdom.Element elem)
Paragraph
public Paragraph(XMLVersion ns)
Paragraph
public Paragraph()
Paragraph
public Paragraph(String text)
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.