com.japisoft.editix.plugin
Class EditixDocumentModel

java.lang.Object
  extended by 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
 EditixDocument getCurrentDocument()
           
 EditixDocument getDocument(int index)
           
 int getDocumentCount()
           
 EditixDocument newDocument(java.lang.String type)
          Create and add a new document
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDocumentCount

public int getDocumentCount()
Returns:
The number of opened documents

getDocument

public EditixDocument getDocument(int index)
Parameters:
index - A number between 0 and the number of opened documents - 1
Returns:
An access to the document at this index

getCurrentDocument

public EditixDocument getCurrentDocument()
Returns:
The current document or null if there's no current document

newDocument

public EditixDocument newDocument(java.lang.String type)
Create and add a new document

Parameters:
type - the document type XML, DTD, XSD, CSS...
Returns:
a new document