Class BasicDocument

    • Field Detail

      • LOGGER

        protected static final Logger LOGGER
    • Constructor Detail

      • BasicDocument

        public BasicDocument()
        Construct a new document.
      • BasicDocument

        public BasicDocument​(String name)
        Construct a new document with the given name.
        Parameters:
        name - the name of the document
    • Method Detail

      • getPages

        public EventList<Page> getPages()
        Description copied from interface: Document
        Returns a list of pages in the document. Please note that, unless stated otherwise by implementors, this list is not thread-safe. Care must therefore be taken to manipulate the page list with appropriate locking as detailed in the documentation of EventList. As a convenience, a non-thread-safe page list may be wrapped using GlazedLists.threadSafeList(EventList) to obtain a thread-safe one.
        Specified by:
        getPages in interface Document
        Specified by:
        getPages in class AbstractDocument
        Returns:
        the list of pages or the empty list, if the document has been disposed of