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,ODSingleXMLDocument>
          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,ODSingleXMLDocument>

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

Author:
Sylvain CUAZ

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

Field Detail

parent

protected ODSingleXMLDocument parent
Constructor Detail

TextNode

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

getODDocument

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

setDocument

public final void setDocument(ODSingleXMLDocument doc)

checkDocument

protected abstract void checkDocument(ODSingleXMLDocument doc)


Copyright © 2010 jOpenDocument All Rights Reserved.