public interface DocumentManager extends ExtensionBuilder, PersistenceFactory, WeakReferencingObservable, ExtendedPropertiesSupport
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NOTIFY_AFTER_CREATEDOCUMENT |
static java.lang.String |
NOTIFY_AFTER_CREATEMAINWINDOW |
static java.lang.String |
NOTIFY_AFTER_CREATEPROPERTIESWINDOW |
static java.lang.String |
NOTIFY_AFTER_GETMAINWINDOW |
static java.lang.String |
NOTIFY_AFTER_GETPROPERTIESWINDOW |
Modifier and Type | Method and Description |
---|---|
AbstractDocument |
createDocument()
Create a new ProjectDocument.
|
AbstractDocument |
createDocumentByUser()
Deprecated.
user
createDocumentsByUser() instead |
java.util.Iterator<? extends Document> |
createDocumentsByUser()
Uses a gui to be able from the characteristics that we want a
ProjectDocument
|
java.util.Iterator<? extends Document> |
createDocumentsByUser(Invocable whenDocumentsLoaded) |
boolean |
existName(Project project,
java.lang.String documentName)
Deprecated.
use instead project.getDocument
|
java.lang.Class |
getClassOfDocument() |
javax.swing.ImageIcon |
getIcon()
Returns tdocumenthe icon for the type of document.
|
javax.swing.ImageIcon |
getIconSelected()
Returns the icon for the type of document when is selected
|
javax.swing.JComponent |
getMainComponent(Document doc)
Devuelbe el JComponent que se corresponde con el documento indicado.
|
javax.swing.JComponent |
getMainComponent(DocumentsContainer container,
Document doc)
Create a new JComponent for the document or if already exists
in the specified container, return this.
|
IWindow |
getMainWindow(Document doc)
Return the main window asociated to the passed document.
|
IWindow |
getMainWindow(Document doc,
WindowLayout layout)
Return the main window asociated to the document.
|
java.lang.Class<? extends IDocumentWindow> |
getMainWindowClass()
Return the class that implement the main window for this type of
documents.
|
int |
getPriority()
Returns the type of document priority.
|
IWindow |
getPropertiesWindow(Document doc)
Return the windows properties asociated to the document.
|
java.lang.String |
getTitle()
Returns the title of type of document.
|
java.lang.String |
getTypeName()
Returns the type name of the document factory.
|
boolean |
hasMainWindow(Document doc) |
void |
registerMainComponent(DocumentsContainer container,
Document document,
javax.swing.JComponent component) |
void |
unregisterMainComponent(DocumentsContainer container,
Document document) |
create, create, create
createFromState, getDefinition, getDefinitions, getDomainName, getDomainURL, getManagedClass, getManagedClass, getManagedClass, getManagedClasses, getManagedClassName, loadFromState, manages, manages, manages, saveToState
addObserver, deleteObserver, deleteObservers
getExtendedProperties, getProperty, setProperty
static final java.lang.String NOTIFY_AFTER_CREATEDOCUMENT
static final java.lang.String NOTIFY_AFTER_GETMAINWINDOW
static final java.lang.String NOTIFY_AFTER_CREATEMAINWINDOW
static final java.lang.String NOTIFY_AFTER_GETPROPERTIESWINDOW
static final java.lang.String NOTIFY_AFTER_CREATEPROPERTIESWINDOW
int getPriority()
javax.swing.ImageIcon getIcon()
javax.swing.ImageIcon getIconSelected()
AbstractDocument createDocument()
AbstractDocument createDocumentByUser()
createDocumentsByUser()
insteadjava.util.Iterator<? extends Document> createDocumentsByUser()
java.util.Iterator<? extends Document> createDocumentsByUser(Invocable whenDocumentsLoaded)
java.lang.String getTitle()
java.lang.String getTypeName()
IWindow getMainWindow(Document doc)
doc
- IWindow getMainWindow(Document doc, WindowLayout layout)
doc,
- layoutlayout
- boolean hasMainWindow(Document doc)
javax.swing.JComponent getMainComponent(DocumentsContainer container, Document doc)
container
- doc
- javax.swing.JComponent getMainComponent(Document doc)
doc
- void unregisterMainComponent(DocumentsContainer container, Document document)
void registerMainComponent(DocumentsContainer container, Document document, javax.swing.JComponent component)
IWindow getPropertiesWindow(Document doc)
doc
- boolean existName(Project project, java.lang.String documentName)
project
- documentName
- java.lang.Class<? extends IDocumentWindow> getMainWindowClass()
java.lang.Class getClassOfDocument()