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 Details

    • 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