ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/reports/DBReporter/IndexMaker.java
(Generate patch)

Comparing projects/cms/source/reports/DBReporter/IndexMaker.java (file contents):
Revision 1.3 by pjm2, Sun Jan 7 20:03:33 2001 UTC vs.
Revision 1.5 by pjm2, Mon Jan 8 10:27:21 2001 UTC

# Line 39 | Line 39 | public class IndexMaker {
39  
40      }
41  
42 + //---PUBLIC METHODS---
43 +
44      public void writePage(String filename) throws IOException{
45  
46          BufferedWriter bw = null;
# Line 59 | Line 61 | public class IndexMaker {
61          
62          IscreamLayout.printTitle(bw, _title);
63      
64 <        IscreamLayout.printMachines(bw, _filtered);
64 >        //IscreamLayout.printMachines(bw, _filtered);
65 >        makeCustomContents(bw, _filtered);
66          
67          IscreamLayout.printBottom(bw);
68          
69          bw.flush();
70          bw.close();
71          
72 <        System.out.println("            - Written SHTML Index page");
72 >        System.out.println("Written SHTML Index page");
73          
74      }
72        
73 //---PUBLIC METHODS---
75  
75
76      /**
77       * Overrides the {@link java.lang.Object#toString() Object.toString()}
78       * method to provide clean logging (every class should have this).
# Line 84 | Line 84 | public class IndexMaker {
84      }
85  
86   //---PRIVATE METHODS---
87 +
88 +    // Override this method for customised index pages.
89 +    private static void makeCustomContents(BufferedWriter bw, LinkedList list) throws IOException{
90 +        IscreamLayout.printAllMachines(bw, list);
91 +    }
92  
93   //---ACCESSOR/MUTATOR METHODS---
94  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines