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.1 by pjm2, Sun Jan 7 19:54:03 2001 UTC vs.
Revision 1.4 by pjm2, Mon Jan 8 10:23:06 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.printLinkedList(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 85 | Line 85 | public class IndexMaker {
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.printMachines(bw, list);
91 +    }
92 +
93   //---ACCESSOR/MUTATOR METHODS---
94  
95   //---ATTRIBUTES---
96  
97 <    private LinkedList _filtered;
97 >    private LinkedList _filtered = new LinkedList();
98      private String _title;
99  
100   //---STATIC ATTRIBUTES---

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines