src/share/classes/com/sun/tools/doclets/formats/html/AllClassesFrameWriter.java

changeset 1372
78962d89f283
parent 1359
25e14ad23cef
child 1410
bfec2a1cc869
equal deleted inserted replaced
1366:12cf6bfd8c05 1372:78962d89f283
49 * @author Bhavesh Patel (Modified) 49 * @author Bhavesh Patel (Modified)
50 */ 50 */
51 public class AllClassesFrameWriter extends HtmlDocletWriter { 51 public class AllClassesFrameWriter extends HtmlDocletWriter {
52 52
53 /** 53 /**
54 * The name of the output file with frames
55 */
56 public static final String OUTPUT_FILE_NAME_FRAMES = "allclasses-frame.html";
57
58 /**
59 * The name of the output file without frames
60 */
61 public static final String OUTPUT_FILE_NAME_NOFRAMES = "allclasses-noframe.html";
62
63 /**
64 * Index of all the classes. 54 * Index of all the classes.
65 */ 55 */
66 protected IndexBuilder indexbuilder; 56 protected IndexBuilder indexbuilder;
67 57
68 /** 58 /**
69 * BR tag to be used within a document tree. 59 * BR tag to be used within a document tree.
70 */ 60 */
71 final HtmlTree BR = new HtmlTree(HtmlTag.BR); 61 final HtmlTree BR = new HtmlTree(HtmlTag.BR);
72 62
73 /** 63 /**
74 * Construct AllClassesFrameWriter object. Also initilises the indexbuilder 64 * Construct AllClassesFrameWriter object. Also initializes the indexbuilder
75 * variable in this class. 65 * variable in this class.
66 * @param configuration The current configuration
67 * @param filename Path to the file which is getting generated.
68 * @param indexbuilder Unicode based Index from {@link IndexBuilder}
76 * @throws IOException 69 * @throws IOException
77 * @throws DocletAbortException 70 * @throws DocletAbortException
78 */ 71 */
79 public AllClassesFrameWriter(ConfigurationImpl configuration, 72 public AllClassesFrameWriter(ConfigurationImpl configuration,
80 String filename, IndexBuilder indexbuilder) 73 DocPath filename, IndexBuilder indexbuilder)
81 throws IOException { 74 throws IOException {
82 super(configuration, filename); 75 super(configuration, filename);
83 this.indexbuilder = indexbuilder; 76 this.indexbuilder = indexbuilder;
84 } 77 }
85 78
92 * @throws DocletAbortException 85 * @throws DocletAbortException
93 */ 86 */
94 public static void generate(ConfigurationImpl configuration, 87 public static void generate(ConfigurationImpl configuration,
95 IndexBuilder indexbuilder) { 88 IndexBuilder indexbuilder) {
96 AllClassesFrameWriter allclassgen; 89 AllClassesFrameWriter allclassgen;
97 String filename = OUTPUT_FILE_NAME_FRAMES; 90 DocPath filename = DocPaths.ALLCLASSES_FRAME;
98 try { 91 try {
99 allclassgen = new AllClassesFrameWriter(configuration, 92 allclassgen = new AllClassesFrameWriter(configuration,
100 filename, indexbuilder); 93 filename, indexbuilder);
101 allclassgen.buildAllClassesFile(true); 94 allclassgen.buildAllClassesFile(true);
102 allclassgen.close(); 95 allclassgen.close();
103 filename = OUTPUT_FILE_NAME_NOFRAMES; 96 filename = DocPaths.ALLCLASSES_NOFRAME;
104 allclassgen = new AllClassesFrameWriter(configuration, 97 allclassgen = new AllClassesFrameWriter(configuration,
105 filename, indexbuilder); 98 filename, indexbuilder);
106 allclassgen.buildAllClassesFile(false); 99 allclassgen.buildAllClassesFile(false);
107 allclassgen.close(); 100 allclassgen.close();
108 } catch (IOException exc) { 101 } catch (IOException exc) {

mercurial