Interface NestingDocument

  • All Superinterfaces:
    javax.swing.text.Document
    All Known Implementing Classes:
    AutocompletionDocument

    public interface NestingDocument
    extends javax.swing.text.Document
    This interface should be implemented by Documents that wrap around other documents to modify their basic functionality. (Such wrapping can be used to simulate the effects of multiple inheritence.) The interface specifies a getDocument method that allows nesting-aware code to access the document(s) being wrapped.
    Author:
    Chris Jennings
    • Field Summary

      • Fields inherited from interface javax.swing.text.Document

        StreamDescriptionProperty, TitleProperty
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      javax.swing.text.Document getDocument()
      Return the document that this document is wrapped around.
      • Methods inherited from interface javax.swing.text.Document

        addDocumentListener, addUndoableEditListener, createPosition, getDefaultRootElement, getEndPosition, getLength, getProperty, getRootElements, getStartPosition, getText, getText, insertString, putProperty, remove, removeDocumentListener, removeUndoableEditListener, render
    • Method Detail

      • getDocument

        javax.swing.text.Document getDocument()
        Return the document that this document is wrapped around.
        Returns:
        the nested document