Revision 9044 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/ProjectDocument.java

View differences:

ProjectDocument.java
56 56
import com.iver.cit.gvsig.project.Project;
57 57
import com.iver.cit.gvsig.project.documents.exceptions.OpenException;
58 58
import com.iver.cit.gvsig.project.documents.exceptions.SaveException;
59
import com.iver.cit.gvsig.project.documents.gui.WindowData;
59 60
import com.iver.utiles.XMLEntity;
60 61
import com.iver.utiles.extensionPoints.ExtensionPoint;
61 62
import com.iver.utiles.extensionPoints.ExtensionPoints;
......
76 77
	protected String owner;
77 78
	protected String comment;
78 79
	private boolean locked = false;
80
	protected WindowData windowData = null;
79 81

  
80 82
	private ProjectDocumentFactory projectDocumentFactory;
81 83
	/**
......
387 389
	public void importFromXML(XMLEntity root, XMLEntity typeRoot,int elementIndex ,Project project) throws XMLException, DriverException, OpenException{
388 390
		importFromXML(root,typeRoot, elementIndex,project,false);
389 391
	}
390

  
391

  
392
	
393
	/**
394
	 * Get the layout properties (size, position, state of the components)
395
	 * of the window associated with this ProjectDocument.
396
	 * This is used to re-open the window with the same properties it had
397
	 * when it was closed.
398
	 * 
399
	 * @return A WindowData object storing the properties of the window.
400
	 */
401
	public WindowData getWindowData() {
402
		return windowData;
403
	}
404
	
405
	/**
406
	 * Store the layout properties (size, position, state of the components)
407
	 * of the window associated with this ProjectDocument.
408
	 * This is used to re-open the window with the same properties it had
409
	 * when it was closed.
410
	 */
411
	public void storeWindowData(WindowData data) {
412
		windowData = data;
413
	}
392 414
}

Also available in: Unified diff