KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > gulden > framework > amoda > generic > document > GenericDocumentAbstract


1 /*
2  * Project: AMODA - Abstract Modeled Application
3  * Class: de.gulden.framework.amoda.generic.document.GenericDocumentAbstract
4  * Version: snapshot-beautyj-1.1
5  *
6  * Date: 2004-09-29
7  *
8  * This is a snapshot version of the AMODA 0.2 development branch,
9  * 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 JavaDoc title;
42
43
44     // ------------------------------------------------------------------------
45
// --- methods ---
46
// ------------------------------------------------------------------------
47

48     public void init(Application application) {
49         setApplication(application);
50     }
51
52     public Application getApplication() {
53         return application;
54     }
55
56     public void setApplication(Application _application) {
57         application = _application;
58     }
59
60     public String JavaDoc getTitle() {
61         return title;
62     }
63
64     public void setTitle(String JavaDoc _title) {
65         title = _title;
66     }
67
68     public Workspace getWorkspace() {
69         return getApplication().getWorkspace();
70     }
71
72     public abstract DocumentView createDefaultView();
73
74 } // end GenericDocumentAbstract
75
Popular Tags