Package com.japisoft.editix.plugin
Class EditixDocumentModel
java.lang.Object
com.japisoft.editix.plugin.EditixDocumentModel
public class EditixDocumentModel
extends java.lang.Object
Here a collection of editor, you can access to any opened editor
- Author:
- Alexandre Brillant (http://www.editix.com)
-
Method Summary
Modifier and Type Method Description EditixDocument
getCurrentDocument()
EditixDocument
getDocument(int index)
int
getDocumentCount()
EditixDocument
newDocument(java.lang.String type)
Create and add a new document
-
Method Details
-
getDocumentCount
public int getDocumentCount()- Returns:
- The number of opened documents
-
getDocument
- Parameters:
index
- A number between 0 and the number of opened documents - 1- Returns:
- An access to the document at this index
-
getCurrentDocument
- Returns:
- The current document or
null
if there's no current document
-
newDocument
Create and add a new document- Parameters:
type
- the document type XML, DTD, XSD, CSS...- Returns:
- a new document
-