public class ViewManager extends AbstractDocumentManager
Modifier and Type | Field and Description |
---|---|
static String |
TYPENAME |
NOTIFY_AFTER_CREATEDOCUMENT, NOTIFY_AFTER_GETMAINWINDOW, NOTIFY_AFTER_GETPROPERTIESWINDOW
Constructor and Description |
---|
ViewManager() |
Modifier and Type | Method and Description |
---|---|
void |
addTOCContextAction(ActionInfo action) |
void |
addTOCContextAction(ActionInfo action,
String group,
int groupOrder) |
void |
addTOCContextAction(String theAction) |
void |
addTOCContextAction(String id,
IContextMenuAction action)
Deprecated.
use addTOCContextAction(ActionInfo action, String group, int groupOrder)
|
void |
addTOCContextAction(String theAction,
String group,
int groupOrder,
int order) |
AbstractDocument |
createDocument()
Create a new ProjectDocument.
|
DynStruct |
getDefinition(String className)
Returns the associated definition to the java class name
|
protected Class |
getDocumentClass()
Return the class or interface for the documents managed by this factory.
|
ImageIcon |
getIcon()
Returns the icon for the type of document.
|
ImageIcon |
getIconSelected()
Returns the icon for the type of document when is selected
|
IWindow |
getMainWindow(Document doc,
WindowLayout layout)
Return the main window asociated to the document.
|
Class |
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.
|
boolean |
manages(Object object)
Informs if
object is managed by this factory. |
static void |
register()
Registers in the points of extension the Factory with alias.
|
addObserver, create, create, create, createDocumentByUser, createDocumentsByUser, createDocumentWindow, createFromState, deleteObserver, deleteObservers, existName, getDefinitions, getDomainName, getDomainURL, getMainComponent, getMainComponent, getMainWindow, getManagedClass, getManagedClass, getManagedClass, getManagedClasses, getManagedClassName, loadFromState, manages, manages, notifyObservers, notifyObservers, registerMainComponent, saveToState, unregisterMainComponent, update
public static String TYPENAME
public int getPriority()
AbstractDocumentManager
getPriority
in interface DocumentManager
getPriority
in class AbstractDocumentManager
public ImageIcon getIcon()
AbstractDocumentManager
getIcon
in interface DocumentManager
getIcon
in class AbstractDocumentManager
public ImageIcon getIconSelected()
AbstractDocumentManager
getIconSelected
in interface DocumentManager
getIconSelected
in class AbstractDocumentManager
public String getTitle()
AbstractDocumentManager
getTitle
in interface DocumentManager
getTitle
in class AbstractDocumentManager
public String getTypeName()
DocumentManager
public Class getMainWindowClass()
DocumentManager
public AbstractDocument createDocument()
DocumentManager
public IWindow getMainWindow(Document doc, WindowLayout layout)
DocumentManager
getMainWindow
in interface DocumentManager
getMainWindow
in class AbstractDocumentManager
public IWindow getPropertiesWindow(Document doc)
DocumentManager
getPropertiesWindow
in interface DocumentManager
getPropertiesWindow
in class AbstractDocumentManager
public void addTOCContextAction(String theAction)
public void addTOCContextAction(String theAction, String group, int groupOrder, int order)
public void addTOCContextAction(ActionInfo action)
public void addTOCContextAction(ActionInfo action, String group, int groupOrder)
public void addTOCContextAction(String id, IContextMenuAction action)
id
- action
- public static void register()
public DynStruct getDefinition(String className)
PersistenceFactory
className
- of a java Classprotected Class getDocumentClass()
AbstractDocumentManager
getDocumentClass
in class AbstractDocumentManager
public boolean manages(Object object)
PersistenceFactory
object
is managed by this factory.