Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

DocTemplate.java

Go to the documentation of this file.
00001 
00058 package com.arcle.rmt.j2se.swing.ui;
00059 
00060 import java.io.File;
00061 import javax.swing.filechooser.FileFilter;
00062 import com.arcle.rmt.j2se.framework.DocumentFactory;
00063 import com.arcle.rmt.j2se.framework.Document;
00064 
00076 public class DocTemplate {
00077 
00078     public DocTemplate(DocumentFactory d, ViewFactory v,
00079             FileFilter filt, File dir, int flags) {
00080         documentFactory = d;
00081         viewFactory = v;
00082         filter = filt;
00083         defaultDir = dir;
00084 
00085     }
00086 
00087     //-----------------------------------------------------------------------
00088 
00089     public Document createDocument(File path, int flags) {
00090         return null;
00091     }
00092 
00093     public View createView(Document doc, int flags) {
00094         return null;
00095     }
00096 
00101     public String  getDescription() {
00102         return getFilter().getDescription();
00103     }
00104 
00105 
00106     //-----------------------------------------------------------------------
00107     // Accessor methods
00108 
00109     protected FileFilter getFilter() {
00110         return filter;
00111     }
00112 
00113     protected File getDefaultDir() {
00114         return defaultDir;
00115     }
00116 
00117     protected DocumentFactory getDocumentFactory() {
00118         return documentFactory;
00119     }
00120 
00121     protected ViewFactory getViewFactory() {
00122         return viewFactory;
00123     }
00124 
00125 
00126     //-----------------------------------------------------------------------
00127     // Member Variables
00128 
00129     private FileFilter filter;
00130 
00131     private File defaultDir;
00132 
00133     private DocumentFactory documentFactory;
00134 
00135     private ViewFactory viewFactory;
00136 }

Generated on Fri Jun 18 19:51:17 2004 for Arcle Rambutan by doxygen 1.3.5