Class ViewManager
java.lang.Object
org.gvsig.app.project.documents.AbstractDocumentManager
org.gvsig.app.project.documents.view.ViewManager
- All Implemented Interfaces:
DocumentManager,org.gvsig.fmap.mapcontext.layers.ExtendedPropertiesSupport,org.gvsig.tools.extensionpoint.ExtensionBuilder,org.gvsig.tools.observer.Observable,org.gvsig.tools.observer.Observer,org.gvsig.tools.observer.WeakReferencingObservable,org.gvsig.tools.persistence.PersistenceFactory
Factory of View.
- Author:
- gvSIG Team
-
Field Summary
FieldsFields inherited from interface org.gvsig.app.project.documents.DocumentManager
NOTIFY_AFTER_CREATEDOCUMENT, NOTIFY_AFTER_CREATEMAINWINDOW, NOTIFY_AFTER_CREATEPROPERTIESWINDOW, NOTIFY_AFTER_GETMAINWINDOW, NOTIFY_AFTER_GETPROPERTIESWINDOW -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTOCContextAction(String theAction) voidaddTOCContextAction(String theAction, String group, int groupOrder, int order) voidaddTOCContextAction(String id, IContextMenuAction action) voidaddTOCContextAction(org.gvsig.andami.actioninfo.ActionInfo action) voidaddTOCContextAction(org.gvsig.andami.actioninfo.ActionInfo action, String group, int groupOrder) voidaddTOCSeparator(String group, int groupOrder, int order) Create a new ProjectDocument.booleanorg.gvsig.tools.dynobject.DynStructgetDefinition(String className) protected ClassReturn the class or interface for the documents managed by this factory.getIcon()Returns the icon for the type of document.Returns the icon for the type of document when is selectedorg.gvsig.andami.ui.mdiManager.IWindowgetMainWindow(Document doc, WindowLayout layout) Return the main window asociated to the document.Return the class that implement the main window for this type of documents.intReturns the type of document priority.org.gvsig.andami.ui.mdiManager.IWindowReturn the windows properties asociated to the document.getTitle()Returns the title of type of document.getTOCContextMenuActions(org.gvsig.fmap.mapcontext.MapContext mapContext, org.gvsig.fmap.mapcontext.layers.FLayer[] selecteds, ITocItem nodeUserObject) Returns the type name of the document factory.booleanstatic voidregister()Registers in the points of extension the Factory with alias.Methods inherited from class org.gvsig.app.project.documents.AbstractDocumentManager
addObserver, create, create, create, createDocumentByUser, createDocumentsByUser, createDocumentsByUser, createDocumentWindow, createFromState, deleteObserver, deleteObservers, existName, getClassOfDocument, getDefinitions, getDomainName, getDomainURL, getExtendedProperties, getMainComponent, getMainComponent, getMainWindow, getManagedClass, getManagedClass, getManagedClass, getManagedClasses, getManagedClassName, getProperty, hasMainWindow, loadFromState, manages, manages, notifyObservers, notifyObservers, registerMainComponent, saveToState, setProperty, unregisterMainComponent, update
-
Field Details
-
TYPENAME
-
-
Constructor Details
-
ViewManager
public ViewManager()
-
-
Method Details
-
getPriority
public int getPriority()Description copied from class:AbstractDocumentManagerReturns the type of document priority. This priority is used when order document factories in UI.- Specified by:
getPriorityin interfaceDocumentManager- Overrides:
getPriorityin classAbstractDocumentManager- Returns:
- Priority.
-
getIcon
Description copied from class:AbstractDocumentManagerReturns the icon for the type of document.- Specified by:
getIconin interfaceDocumentManager- Overrides:
getIconin classAbstractDocumentManager- Returns:
- Image.
-
getIconSelected
Description copied from class:AbstractDocumentManagerReturns the icon for the type of document when is selected- Specified by:
getIconSelectedin interfaceDocumentManager- Overrides:
getIconSelectedin classAbstractDocumentManager- Returns:
- Image.
-
getTitle
Description copied from class:AbstractDocumentManagerReturns the title of type of document.- Specified by:
getTitlein interfaceDocumentManager- Overrides:
getTitlein classAbstractDocumentManager- Returns:
- String title for type of document
-
getTypeName
Description copied from interface:DocumentManagerReturns the type name of the document factory.- Returns:
- Name of registration
-
getMainWindowClass
Description copied from interface:DocumentManagerReturn the class that implement the main window for this type of documents.- Returns:
- the class of main window
-
createDocument
Description copied from interface:DocumentManagerCreate a new ProjectDocument.- Returns:
- ProjectDocument.
-
getMainWindow
Description copied from interface:DocumentManagerReturn the main window asociated to the document.- Specified by:
getMainWindowin interfaceDocumentManager- Overrides:
getMainWindowin classAbstractDocumentManager- Parameters:
doc- , layoutlayout-- Returns:
- Window asociated to document
-
getPropertiesWindow
Description copied from interface:DocumentManagerReturn the windows properties asociated to the document.- Specified by:
getPropertiesWindowin interfaceDocumentManager- Overrides:
getPropertiesWindowin classAbstractDocumentManager- Parameters:
doc-- Returns:
-
addTOCContextAction
-
addTOCContextAction
-
addTOCContextAction
public void addTOCContextAction(org.gvsig.andami.actioninfo.ActionInfo action) -
addTOCContextAction
public void addTOCContextAction(org.gvsig.andami.actioninfo.ActionInfo action, String group, int groupOrder) -
addTOCSeparator
-
addTOCContextAction
- Parameters:
id-action-
-
register
public static void register()Registers in the points of extension the Factory with alias. -
getDefinition
-
getDocumentClass
Description copied from class:AbstractDocumentManagerReturn the class or interface for the documents managed by this factory.- Specified by:
getDocumentClassin classAbstractDocumentManager- Returns:
- The document class;
-
manages
-
getTOCContextMenuActions
public List<IContextMenuAction> getTOCContextMenuActions(org.gvsig.fmap.mapcontext.MapContext mapContext, org.gvsig.fmap.mapcontext.layers.FLayer[] selecteds, ITocItem nodeUserObject) -
existsTOCContextMenuActions
-