public class BasicDocument extends AbstractDocument
Default implementation of the Document
interface. BasicDocument
s neither allow
insertion of duplicate Page
elements nor attempting to insert null
as a
Page
.
Initial Document.State
of BasicDocument
s is Document.BasicState.READY
.
This implementation is not thread-safe
Document.BasicState, Document.State
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOGGER |
interceptorSupport, listenerSupport
BASE_RESOLUTION, PROPERTY_KEY_DISPLAY_NAME, PROPERTY_KEY_DOCUMENT_ID, PROPERTY_KEY_FILE_NAME, PROPERTY_NAME, PROPERTY_PREFIX_PAGE, PROPERTY_PREFIX_USER_PROPERTY, PROPERTY_STATE
Constructor and Description |
---|
BasicDocument()
Construct a new document.
|
BasicDocument(String name)
Construct a new document with the given name.
|
Modifier and Type | Method and Description |
---|---|
EventList<Page> |
getPages()
Returns a list of pages in the document.
|
addDocumentInterceptor, addDocumentListener, addPage, cleanUpResources, close, dispose, exceptionIfDisposed, getMetadata, getMutableMetadataRoot, getName, getPage, getPage, getPageCount, getPageIndex, getPermissions, getProperties, getState, isDisposed, removeDocumentInterceptor, removeDocumentListener, setName, setState, toString
protected static final Logger LOGGER
public BasicDocument()
public BasicDocument(String name)
name
- the name of the documentpublic EventList<Page> getPages()
Document
EventList
. As
a convenience, a non-thread-safe page list may be wrapped using
GlazedLists.threadSafeList(EventList)
to obtain a thread-safe one.getPages
in interface Document
getPages
in class AbstractDocument
Copyright © 2024 levigo holding gmbh. All rights reserved.