KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > caucho > xtpdoc > Summary


1 /*
2  * Copyright (c) 1998-2000 Caucho Technology -- all rights reserved
3  *
4  * This file is part of Resin(R) Open Source
5  *
6  * Each copy or derived work must preserve the copyright notice and this
7  * notice unmodified.
8  *
9  * Resin Open Source is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * Resin Open Source is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty
17  * of NON-INFRINGEMENT. See the GNU General Public License for more
18  * details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with Resin Open Source; if not, write to the
22  *
23  * Free Software Foundation, Inc.
24  * 59 Temple Place, Suite 330
25  * Boston, MA 02111-1307 USA
26  *
27  * @author Emil Ong
28  */

29
30 package com.caucho.xtpdoc;
31
32 import javax.xml.stream.XMLStreamException;
33 import javax.xml.stream.XMLStreamWriter;
34 import java.io.IOException JavaDoc;
35 import java.io.PrintWriter JavaDoc;
36 import java.util.logging.Logger JavaDoc;
37
38 public class Summary implements ContentItem {
39   private static final Logger JavaDoc log = Logger.getLogger(Summary.class.getName());
40
41   private Document _document;
42   private ATOCControl _atocControl;
43   private Navigation _navigation;
44
45   private boolean _isSkipDescription;
46
47   public Summary(Document document)
48   {
49     _document = document;
50   }
51
52   void setNavigation(Navigation navigation)
53   {
54     _navigation = navigation;
55   }
56
57   public void setATOC(String JavaDoc atoc)
58   {
59   }
60
61   public void setSkipDescription(boolean isSkip)
62   {
63     _isSkipDescription = isSkip;
64   }
65
66   public void setObjSummary(String JavaDoc objSummary)
67   {
68   }
69
70   public void setNoObjSummary(String JavaDoc noObjSummary)
71   {
72   }
73
74   public void setObjSummaryInLocalTOC(String JavaDoc objSummary)
75   {
76   }
77
78   public void setDescription(String JavaDoc description)
79   {
80   }
81
82   public void setLocalTOC(String JavaDoc localTOC)
83   {
84     // XXX
85
}
86
87   public void setATOCControl(ATOCControl atocControl)
88   {
89     _atocControl = atocControl;
90   }
91
92   public void writeHtml(XMLStreamWriter out)
93     throws XMLStreamException
94   {
95     _document.fillChildNavigation();
96     
97     if (_document.getNavigation() == null) {
98     }
99     else if (_isSkipDescription) {
100       _document.getNavigation().writeHtml(out, "", 1, 2, 5);
101     }
102     else {
103       _document.getNavigation().writeHtml(out, "", 1, 0, 5);
104     }
105   }
106
107   public void writeLaTeXTop(PrintWriter JavaDoc out)
108     throws IOException JavaDoc
109   {
110   }
111
112   public void writeLaTeX(PrintWriter JavaDoc out)
113     throws IOException JavaDoc
114   {
115   }
116
117   public void writeLaTeXEnclosed(PrintWriter JavaDoc out)
118     throws IOException JavaDoc
119   {
120   }
121 }
122
Popular Tags