protected void addPackageDeprecatedAPI ( List < Doc > deprPkgs , String headingKey , String tableSummary , String [ ] tableHeader , Content contentTree ) { if ( deprPkgs . size ( ) > 0 ) { Content table = HtmlTree . TABLE ( HtmlStyle . deprecatedSummary , 0 , 3 , 0 , tableSummary , getTableCaption ( configuration . getResource ( headingKey ) ) ) ; table . addContent ( getSummaryTableHeader ( tableHeader , "col" ) ) ; Content tbody = new HtmlTree ( HtmlTag . TBODY ) ; for ( int i = 0 ; i < deprPkgs . size ( ) ; i ++ ) { PackageDoc pkg = ( PackageDoc ) deprPkgs . get ( i ) ; HtmlTree td = HtmlTree . TD ( HtmlStyle . colOne , getPackageLink ( pkg , getPackageName ( pkg ) ) ) ; if ( pkg . tags ( "deprecated" ) . length > 0 ) { addInlineDeprecatedComment ( pkg , pkg . tags ( "deprecated" ) [ 0 ] , td ) ; } HtmlTree tr = HtmlTree . TR ( td ) ; if ( i % 2 == 0 ) { tr . addStyle ( HtmlStyle . altColor ) ; } else { tr . addStyle ( HtmlStyle . rowColor ) ; } tbody . addContent ( tr ) ; } table . addContent ( tbody ) ; Content li = HtmlTree . LI ( HtmlStyle . blockList , table ) ; Content ul = HtmlTree . UL ( HtmlStyle . blockList , li ) ; contentTree . addContent ( ul ) ; } }
Add package deprecation information to the documentation tree