KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * Project: AMODA - Abstract Modeled Application
3  * Class: de.gulden.framework.amoda.generic.document.GenericSingleViewDocumentAbstract
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.document.*;
22 import de.gulden.framework.amoda.model.document.Document;
23 import de.gulden.framework.amoda.model.document.DocumentView;
24 import java.awt.*;
25 import java.lang.*;
26 import java.util.*;
27 import javax.swing.*;
28 import org.w3c.dom.*;
29
30 /**
31  * Class GenericSingleViewDocumentAbstract.
32  *
33  * @author Jens Gulden
34  * @version snapshot-beautyj-1.1
35  */

36 public abstract class GenericSingleViewDocumentAbstract extends GenericDocumentAbstract implements Cloneable JavaDoc, DocumentView {
37
38     // ------------------------------------------------------------------------
39
// --- methods ---
40
// ------------------------------------------------------------------------
41

42     public DocumentView createDefaultView() {
43         return this;
44     }
45
46     public Document getDocument() {
47         return this;
48     }
49
50     public DocumentPart getActiveDocumentPart() {
51         return this;
52     }
53
54     public DocumentSelection getSelection() {
55         // your code here
56
return null;
57     }
58
59     public JComponent createGUIEditor() {
60         // your code here
61
return null;
62     }
63
64     public Object JavaDoc clone() {
65         try {
66             return super.clone();
67         } catch (CloneNotSupportedException JavaDoc cnse) {
68             return null;
69         }
70     }
71
72     public Component getGUIPrintView(JComponent editor) {
73         // your code here
74
return null;
75     }
76
77     public Component getGUIExportView(JComponent editor) {
78         // your code here
79
return null;
80     }
81
82 } // end GenericSingleViewDocumentAbstract
83
Popular Tags