|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.odftoolkit.odfdom.doc.OdfDocument
org.odftoolkit.odfdom.doc.OdfTextDocument
public class OdfTextDocument
This class represents an empty ODF text document.
| Nested Class Summary | |
|---|---|
static class |
OdfTextDocument.OdfMediaType
This enum contains all possible media types of OdfSpreadsheetDocument documents. |
| Nested classes/interfaces inherited from class org.odftoolkit.odfdom.doc.OdfDocument |
|---|
OdfDocument.OdfXMLFile, OdfDocument.Resource |
| Constructor Summary | |
|---|---|
protected |
OdfTextDocument()
|
| Method Summary | |
|---|---|
OdfTextParagraph |
addText(java.lang.String text)
Append text to the end of a text document. |
void |
changeMode(OdfTextDocument.OdfMediaType type)
Switches this instance to the given type. |
OdfOfficeText |
getContentRoot()
Get the content root of a text document. |
OdfTextParagraph |
newParagraph()
Creates a new paragraph |
OdfTextParagraph |
newParagraph(java.lang.String text)
Creates a new paragraph and append text |
static OdfTextDocument |
newTextDocument()
Creates an empty text document. |
static OdfTextDocument |
newTextMasterDocument()
Creates an empty text master document. |
static OdfTextDocument |
newTextTemplateDocument()
Creates an empty text template. |
static OdfTextDocument |
newTextWebDocument()
Creates an empty text web. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected OdfTextDocument()
| Method Detail |
|---|
public static OdfTextDocument newTextDocument()
throws java.lang.Exception
java.lang.Exception - - if the document could not be created
public static OdfTextDocument newTextTemplateDocument()
throws java.lang.Exception
java.lang.Exception - - if the template could not be created
public static OdfTextDocument newTextMasterDocument()
throws java.lang.Exception
java.lang.Exception - - if the document could not be created
public static OdfTextDocument newTextWebDocument()
throws java.lang.Exception
java.lang.Exception - - if the document could not be created
public OdfOfficeText getContentRoot()
throws java.lang.Exception
java.lang.Exception - if the file DOM could not be created.
public OdfTextParagraph newParagraph(java.lang.String text)
throws java.lang.Exception
text -
java.lang.Exception - if the file DOM could not be created.
public OdfTextParagraph newParagraph()
throws java.lang.Exception
java.lang.Exception - if the file DOM could not be created.
public OdfTextParagraph addText(java.lang.String text)
throws java.lang.Exception
text - initial text for the paragraph.
java.lang.Exception - if the file DOM could not be created.public void changeMode(OdfTextDocument.OdfMediaType type)
type -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||