public interface DocumentManager extends ExtensionBuilder, PersistenceFactory, WeakReferencingObservable
Modifier and Type | Field and Description |
---|---|
static String |
NOTIFY_AFTER_CREATEDOCUMENT |
static String |
NOTIFY_AFTER_GETMAINWINDOW |
static String |
NOTIFY_AFTER_GETPROPERTIESWINDOW |
Modifier and Type | Method and Description |
---|---|
AbstractDocument |
createDocument()
Create a new ProjectDocument.
|
AbstractDocument |
createDocumentByUser()
Deprecated.
user
createDocumentsByUser() instead |
Iterator<? extends Document> |
createDocumentsByUser()
Uses a gui to be able from the characteristics that we want a
ProjectDocument
|
boolean |
existName(Project project,
String documentName)
Deprecated.
use instead project.getDocument
|
ImageIcon |
getIcon()
Returns tdocumenthe icon for the type of document.
|
ImageIcon |
getIconSelected()
Returns the icon for the type of document when is selected
|
JComponent |
getMainComponent(Document doc)
Devuelbe el JComponent que se corresponde con el documento indicado.
|
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.
|
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.
|
String |
getTitle()
Returns the title of type of document.
|
String |
getTypeName()
Returns the type name of the document factory.
|
void |
registerMainComponent(DocumentsContainer container,
Document document,
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
static final String NOTIFY_AFTER_CREATEDOCUMENT
static final String NOTIFY_AFTER_GETMAINWINDOW
static final String NOTIFY_AFTER_GETPROPERTIESWINDOW
int getPriority()
ImageIcon getIcon()
ImageIcon getIconSelected()
AbstractDocument createDocument()
project
- Opened project.AbstractDocument createDocumentByUser()
createDocumentsByUser()
insteadIterator<? extends Document> createDocumentsByUser()
String getTitle()
String getTypeName()
IWindow getMainWindow(Document doc)
doc
- IWindow getMainWindow(Document doc, WindowLayout layout)
doc,
- layoutJComponent getMainComponent(DocumentsContainer container, Document doc)
container
- doc
- JComponent getMainComponent(Document doc)
doc
- void unregisterMainComponent(DocumentsContainer container, Document document)
void registerMainComponent(DocumentsContainer container, Document document, JComponent component)
IWindow getPropertiesWindow(Document doc)
doc
- boolean existName(Project project, String documentName)
project
- documentName
- Class<? extends IDocumentWindow> getMainWindowClass()