Revision 41248 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/DocumentManager.java

View differences:

DocumentManager.java
26 26
import java.util.Iterator;
27 27

  
28 28
import javax.swing.ImageIcon;
29
import javax.swing.JComponent;
29 30

  
30 31
import org.gvsig.andami.ui.mdiManager.IWindow;
32
import org.gvsig.app.project.DocumentsContainer;
31 33
import org.gvsig.app.project.Project;
32 34
import org.gvsig.app.project.documents.gui.IDocumentWindow;
33 35
import org.gvsig.app.project.documents.gui.WindowLayout;
......
115 117
	 * @return Window asociated to document
116 118
	 */
117 119
	public IWindow getMainWindow(Document doc, WindowLayout layout) ;
120
        
121
        /**
122
         * Create a new JComponent for the document or if already exists
123
         * in the specified container, return this.
124
         * 
125
         * @param container
126
         * @param doc
127
         * @return 
128
         */
129
        public JComponent getMainComponent(DocumentsContainer container, Document doc);
118 130
	
131
        /**
132
         * Devuelbe el JComponent que se corresponde con el documento indicado.
133
         * Si la ventana activa se corresponde con este documento, devuelbe el 
134
         * JComponent asociado a esa ventana. Si no se corresponde con la ventana
135
         * activa, pero esta es un contenedor de documentos le pide a este el componente
136
         * asociado al documento requerido y si lo encuentra lo devuelve. En 
137
         * otro caso develbe null.
138
         * @param doc
139
         * @return el JComponent asociado a doc
140
         */
141
        public JComponent getMainComponent(Document doc);
142

  
143
        public void unregisterMainComponent(DocumentsContainer container, Document document);
144
        
145
        public void registerMainComponent(DocumentsContainer container, Document document, JComponent component);
146
        
119 147
	/**
120 148
	 * Return the windows properties asociated to the document.
121 149
	 * @param doc

Also available in: Unified diff