181 } 182 } 183 div.addContent(deprDiv); 184 } 185 } 186 187 /** 188 * {@inheritDoc} 189 */ 190 @Override 191 public Content getSummaryHeader() { 192 HtmlTree ul = new HtmlTree(HtmlTag.UL); 193 ul.addStyle(HtmlStyle.blockList); 194 return ul; 195 } 196 197 /** 198 * {@inheritDoc} 199 */ 200 @Override 201 public void addClassesSummary(SortedSet<TypeElement> classes, String label, 202 String tableSummary, List<String> tableHeader, Content summaryContentTree) { 203 if(!classes.isEmpty()) { 204 Content caption = getTableCaption(new RawHtml(label)); 205 Content table = (configuration.isOutputHtml5()) 206 ? HtmlTree.TABLE(HtmlStyle.typeSummary, caption) 207 : HtmlTree.TABLE(HtmlStyle.typeSummary, tableSummary, caption); 208 table.addContent(getSummaryTableHeader(tableHeader, "col")); 209 Content tbody = new HtmlTree(HtmlTag.TBODY); 210 boolean altColor = false; 211 for (TypeElement klass : classes) { 212 altColor = !altColor; 213 if (!utils.isCoreClass(klass) || 214 !configuration.isGeneratedDoc(klass)) { 215 continue; 216 } 217 Content classContent = getLink(new LinkInfoImpl( 218 configuration, LinkInfoImpl.Kind.PACKAGE, klass)); 219 Content thClass = HtmlTree.TH_ROW_SCOPE(HtmlStyle.colFirst, classContent); 220 HtmlTree tr = HtmlTree.TR(thClass); 221 tr.addStyle(altColor ? HtmlStyle.altColor : HtmlStyle.rowColor); 222 223 HtmlTree tdClassDescription = new HtmlTree(HtmlTag.TD); 224 tdClassDescription.addStyle(HtmlStyle.colLast); 225 if (utils.isDeprecated(klass)) { 226 tdClassDescription.addContent(getDeprecatedPhrase(klass)); 227 List<? extends DocTree> tags = utils.getDeprecatedTrees(klass); 228 if (!tags.isEmpty()) { | 181 } 182 } 183 div.addContent(deprDiv); 184 } 185 } 186 187 /** 188 * {@inheritDoc} 189 */ 190 @Override 191 public Content getSummaryHeader() { 192 HtmlTree ul = new HtmlTree(HtmlTag.UL); 193 ul.addStyle(HtmlStyle.blockList); 194 return ul; 195 } 196 197 /** 198 * {@inheritDoc} 199 */ 200 @Override 201 public void addInterfaceSummary(SortedSet<TypeElement> interfaces, Content summaryContentTree) { 202 String label = resources.getText("doclet.Interface_Summary"); 203 String tableSummary = resources.getText("doclet.Member_Table_Summary", 204 resources.getText("doclet.Interface_Summary"), 205 resources.getText("doclet.interfaces")); 206 TableHeader tableHeader= new TableHeader(contents.interfaceLabel, contents.descriptionLabel); 207 208 addClassesSummary(interfaces, label, tableSummary, tableHeader, summaryContentTree); 209 } 210 211 /** 212 * {@inheritDoc} 213 */ 214 @Override 215 public void addClassSummary(SortedSet<TypeElement> classes, Content summaryContentTree) { 216 String label = resources.getText("doclet.Class_Summary"); 217 String tableSummary = resources.getText("doclet.Member_Table_Summary", 218 resources.getText("doclet.Class_Summary"), 219 resources.getText("doclet.classes")); 220 TableHeader tableHeader= new TableHeader(contents.classLabel, contents.descriptionLabel); 221 222 addClassesSummary(classes, label, tableSummary, tableHeader, summaryContentTree); 223 } 224 225 /** 226 * {@inheritDoc} 227 */ 228 @Override 229 public void addEnumSummary(SortedSet<TypeElement> enums, Content summaryContentTree) { 230 String label = resources.getText("doclet.Enum_Summary"); 231 String tableSummary = resources.getText("doclet.Member_Table_Summary", 232 resources.getText("doclet.Enum_Summary"), 233 resources.getText("doclet.enums")); 234 TableHeader tableHeader= new TableHeader(contents.enum_, contents.descriptionLabel); 235 236 addClassesSummary(enums, label, tableSummary, tableHeader, summaryContentTree); 237 } 238 239 /** 240 * {@inheritDoc} 241 */ 242 @Override 243 public void addExceptionSummary(SortedSet<TypeElement> exceptions, Content summaryContentTree) { 244 String label = resources.getText("doclet.Exception_Summary"); 245 String tableSummary = resources.getText("doclet.Member_Table_Summary", 246 resources.getText("doclet.Exception_Summary"), 247 resources.getText("doclet.exceptions")); 248 TableHeader tableHeader= new TableHeader(contents.exception, contents.descriptionLabel); 249 250 addClassesSummary(exceptions, label, tableSummary, tableHeader, summaryContentTree); 251 } 252 253 /** 254 * {@inheritDoc} 255 */ 256 @Override 257 public void addErrorSummary(SortedSet<TypeElement> errors, Content summaryContentTree) { 258 String label = resources.getText("doclet.Error_Summary"); 259 String tableSummary = resources.getText("doclet.Member_Table_Summary", 260 resources.getText("doclet.Error_Summary"), 261 resources.getText("doclet.errors")); 262 TableHeader tableHeader= new TableHeader(contents.error, contents.descriptionLabel); 263 264 addClassesSummary(errors, label, tableSummary, tableHeader, summaryContentTree); 265 } 266 267 /** 268 * {@inheritDoc} 269 */ 270 @Override 271 public void addAnnotationTypeSummary(SortedSet<TypeElement> annoTypes, Content summaryContentTree) { 272 String label = resources.getText("doclet.Annotation_Types_Summary"); 273 String tableSummary = resources.getText("doclet.Member_Table_Summary", 274 resources.getText("doclet.Annotation_Types_Summary"), 275 resources.getText("doclet.annotationtypes")); 276 TableHeader tableHeader= new TableHeader(contents.annotationType, contents.descriptionLabel); 277 278 addClassesSummary(annoTypes, label, tableSummary, tableHeader, summaryContentTree); 279 } 280 281 /** 282 * {@inheritDoc} 283 */ 284 public void addClassesSummary(SortedSet<TypeElement> classes, String label, 285 String tableSummary, TableHeader tableHeader, Content summaryContentTree) { 286 if(!classes.isEmpty()) { 287 Content caption = getTableCaption(new RawHtml(label)); 288 Content table = (configuration.isOutputHtml5()) 289 ? HtmlTree.TABLE(HtmlStyle.typeSummary, caption) 290 : HtmlTree.TABLE(HtmlStyle.typeSummary, tableSummary, caption); 291 table.addContent(tableHeader.toContent()); 292 Content tbody = new HtmlTree(HtmlTag.TBODY); 293 boolean altColor = false; 294 for (TypeElement klass : classes) { 295 altColor = !altColor; 296 if (!utils.isCoreClass(klass) || 297 !configuration.isGeneratedDoc(klass)) { 298 continue; 299 } 300 Content classContent = getLink(new LinkInfoImpl( 301 configuration, LinkInfoImpl.Kind.PACKAGE, klass)); 302 Content thClass = HtmlTree.TH_ROW_SCOPE(HtmlStyle.colFirst, classContent); 303 HtmlTree tr = HtmlTree.TR(thClass); 304 tr.addStyle(altColor ? HtmlStyle.altColor : HtmlStyle.rowColor); 305 306 HtmlTree tdClassDescription = new HtmlTree(HtmlTag.TD); 307 tdClassDescription.addStyle(HtmlStyle.colLast); 308 if (utils.isDeprecated(klass)) { 309 tdClassDescription.addContent(getDeprecatedPhrase(klass)); 310 List<? extends DocTree> tags = utils.getDeprecatedTrees(klass); 311 if (!tags.isEmpty()) { |