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.
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Paragraph
public Paragraph(org.jdom.Element elem)
Paragraph
public Paragraph(XMLVersion ns)
Paragraph
public Paragraph()
Paragraph
public Paragraph(java.lang.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(java.lang.String text)
addTab
public final void addTab()
addStyledContent
public final void addStyledContent(java.lang.String text,
java.lang.String styleName)
toString
public java.lang.String toString()
- Overrides:
toString in class ODNode