01: /*
02: * Project: AMODA - Abstract Modeled Application
03: * Class: de.gulden.framework.amoda.generic.document.GenericDocumentAbstract
04: * Version: snapshot-beautyj-1.1
05: *
06: * Date: 2004-09-29
07: *
08: * This is a snapshot version of the AMODA 0.2 development branch,
09: * it is not released as a seperate version.
10: * For AMODA, see http://amoda.berlios.de/.
11: *
12: * This is licensed under the GNU Lesser General Public License (LGPL)
13: * and comes with NO WARRANTY.
14: *
15: * Author: Jens Gulden
16: * Email: amoda@jensgulden.de
17: */
18:
19: package de.gulden.framework.amoda.generic.document;
20:
21: import de.gulden.framework.amoda.model.core.*;
22: import de.gulden.framework.amoda.model.document.*;
23: import de.gulden.framework.amoda.model.document.Document;
24: import java.lang.*;
25: import java.util.*;
26:
27: /**
28: * Class GenericDocumentAbstract.
29: *
30: * @author Jens Gulden
31: * @version snapshot-beautyj-1.1
32: */
33: public abstract class GenericDocumentAbstract implements Document {
34:
35: // ------------------------------------------------------------------------
36: // --- fields ---
37: // ------------------------------------------------------------------------
38:
39: protected Application application;
40:
41: protected String title;
42:
43: // ------------------------------------------------------------------------
44: // --- methods ---
45: // ------------------------------------------------------------------------
46:
47: public void init(Application application) {
48: setApplication(application);
49: }
50:
51: public Application getApplication() {
52: return application;
53: }
54:
55: public void setApplication(Application _application) {
56: application = _application;
57: }
58:
59: public String getTitle() {
60: return title;
61: }
62:
63: public void setTitle(String _title) {
64: title = _title;
65: }
66:
67: public Workspace getWorkspace() {
68: return getApplication().getWorkspace();
69: }
70:
71: public abstract DocumentView createDefaultView();
72:
73: } // end GenericDocumentAbstract
|