org.jopendocument.dom.text
Class TextNode<S extends StyleStyle>

java.lang.Object
  extended by org.jopendocument.dom.ODNode
      extended by org.jopendocument.dom.StyledNode<S,TextDocument>
          extended by org.jopendocument.dom.text.TextNode<S>
Type Parameters:
S - type of style.
Direct Known Subclasses:
Paragraph

public abstract class TextNode<S extends StyleStyle>
extends StyledNode<S,TextDocument>

A text node that can be created ex nihilo. Ie without a document at first.

Author:
Sylvain CUAZ

Constructor Summary
TextNode(org.jdom.Element local, java.lang.Class<S> styleClass)
           
 
Method Summary
 TextDocument getODDocument()
           
 void setDocument(TextDocument doc)
           
 
Methods inherited from class org.jopendocument.dom.StyledNode
getPrivateStyle, getStyle, setStyleName
 
Methods inherited from class org.jopendocument.dom.ODNode
getElement, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextNode

public TextNode(org.jdom.Element local,
                java.lang.Class<S> styleClass)
Method Detail

getODDocument

public final TextDocument getODDocument()
Specified by:
getODDocument in class StyledNode<S extends StyleStyle,TextDocument>

setDocument

public final void setDocument(TextDocument doc)