01: /*
02: * Project: AMODA - Abstract Modeled Application
03: * Class: de.gulden.framework.amoda.generic.document.GenericSingleViewDocumentAbstract
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.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
37: GenericDocumentAbstract implements Cloneable, DocumentView {
38:
39: // ------------------------------------------------------------------------
40: // --- methods ---
41: // ------------------------------------------------------------------------
42:
43: public DocumentView createDefaultView() {
44: return this ;
45: }
46:
47: public Document getDocument() {
48: return this ;
49: }
50:
51: public DocumentPart getActiveDocumentPart() {
52: return this ;
53: }
54:
55: public DocumentSelection getSelection() {
56: // your code here
57: return null;
58: }
59:
60: public JComponent createGUIEditor() {
61: // your code here
62: return null;
63: }
64:
65: public Object clone() {
66: try {
67: return super .clone();
68: } catch (CloneNotSupportedException cnse) {
69: return null;
70: }
71: }
72:
73: public Component getGUIPrintView(JComponent editor) {
74: // your code here
75: return null;
76: }
77:
78: public Component getGUIExportView(JComponent editor) {
79: // your code here
80: return null;
81: }
82:
83: } // end GenericSingleViewDocumentAbstract
|