diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-01-20 14:03:55 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-01-20 14:03:55 -0800 |
commit | ed18741e07c5e344ff3375a293100ffb29f19b51 (patch) | |
tree | 4c125df2b0b0336e88a7e2389f74b53ab982d906 /tools/droiddoc/templates | |
parent | 66339ad5cebeae8f4cbf7e335c67368abbb91223 (diff) | |
download | build-ed18741e07c5e344ff3375a293100ffb29f19b51.zip build-ed18741e07c5e344ff3375a293100ffb29f19b51.tar.gz build-ed18741e07c5e344ff3375a293100ffb29f19b51.tar.bz2 |
auto import from //branches/cupcake/...@127101
Diffstat (limited to 'tools/droiddoc/templates')
-rw-r--r-- | tools/droiddoc/templates/assets/android-developer-docs.css | 152 | ||||
-rw-r--r-- | tools/droiddoc/templates/class.cs | 326 | ||||
-rw-r--r-- | tools/droiddoc/templates/classes.cs | 4 | ||||
-rw-r--r-- | tools/droiddoc/templates/macros.cs | 18 | ||||
-rw-r--r-- | tools/droiddoc/templates/package.cs | 2 | ||||
-rw-r--r-- | tools/droiddoc/templates/packages.cs | 4 |
6 files changed, 376 insertions, 130 deletions
diff --git a/tools/droiddoc/templates/assets/android-developer-docs.css b/tools/droiddoc/templates/assets/android-developer-docs.css index cfbcc75..44b5a4d 100644 --- a/tools/droiddoc/templates/assets/android-developer-docs.css +++ b/tools/droiddoc/templates/assets/android-developer-docs.css @@ -207,7 +207,7 @@ } #jd-header { - background-color: #E9E9E9; + background-color: #E2E2E2; padding: 7px 20px; } @@ -253,6 +253,86 @@ position:relative; } +/* summary tables for reference pages */ +.jd-sumtable { +margin: .5em 1em 1em 1em; +width:99%; +font-size:.9em; +} + +.jd-sumtable a { + text-decoration:none; +} + +.jd-sumtable a:hover { + text-decoration:underline; +} + +/* a div inside a sumtable th holding "Expand All" */ +.expandall { +float:right; +font-weight:normal; +} + +/* adjustments for in/direct subclasses tables */ +.jd-sumtable-subclasses { + margin: 1em 0 0 0; + max-width:968px; +} + +/* extra space between end of method name and open-paren */ +.sympad { + margin-right: 2px; +} + +/* right alignment for the return type in sumtable */ +.jd-sumtable .jd-typecol { + text-align:right; +} + +/* adjustments for the expando table-in-table */ +.jd-sumtable-expando { + margin:.5em 0; + padding:0; +} + +/* a div that holds a short description */ +.jd-descrdiv { + width:100%; + padding:3px 1em 0 1em; + margin:0; + border:0; +} + +/* page-top-right container for reference pages (holds +links to summary tables) */ +#api-info-block { + font-size:.8em; + margin:0; + padding:6px; + font-weight:normal; + float:right; + text-align:right; + color:#999; + max-width:70%; +} + +/* applies to a div containing links to summary tables */ +.sum-details-links { + margin:0 .5em; + padding:0; + font-weight:normal; +} + +.sum-details-links a { + text-decoration:none; +} + +.sum-details-links a:hover { + text-decoration:underline; +} + + /* inheritance table */ .jd-inheritance-table { border-spacing:0; @@ -295,7 +375,7 @@ hr { color:#111; border-top:2px solid #ccc; padding: .5em 0 0; - margin: 1.75em 0 1em 0; + margin: 1.5em 0 1em 0; max-width:968px; } @@ -334,7 +414,12 @@ hr { .nolist { list-style:none; padding:0; - margin:0 0 1em 1em; + margin:0 0 0 1em; +} + +.nolist li { + padding:0; + margin:0; } h4 .normal { @@ -348,18 +433,57 @@ h4 .normal { margin:0 0 1em; } +/* API reference: a container for the +.tagdata blocks that make up the detailed +description */ +.jd-details-descr { + padding:0; + margin:.5em .25em; +} + +/* API reference: a block containing +a detailed description, a params table, +seealso list, etc */ .jd-tagdata { - margin:.6em 0; + margin:.5em 1em; } -.jd-tagdata ul { +/* API reference: adjustments to +the detailed description block */ +.jd-tagdescr { + margin:.25em 0 .75em 0; + line-height:1em; +} + +.jd-tagdescr p { + margin:.5em 0; + padding:0; + +} + +.jd-tagdescr ol, +.jd-tagdescr ul { + margin:0 2.5em; padding:0; } +.jd-tagdescr table, +.jd-tagdescr img { + margin:.25em 1em; +} + +.jd-tagdescr li { +margin:0 0 .25em 0; +padding:0; +} + +/* API reference: heading marking +the details section for constants, +attrs, methods, etc. */ h4.jd-details-title { font-size:1.15em; - background-color: #d6d6d6; - margin:0 0 .6em; + background-color: #E2E2E2; + margin:1.5em 0 .6em; padding:3px; } @@ -367,8 +491,11 @@ h4.jd-tagtitle { margin:0; } -.jd-details-descr { - padding:3px; +/* API reference: heading for "Parameters", "See Also", etc., +in details sections */ +h5.jd-tagtitle { + margin:0 0 .25em 0; + font-size:1em; } .jd-tagtable { @@ -398,13 +525,13 @@ h4.jd-tagtitle { } div.special { - padding: 15px 20px 3px; + padding: .5em 1em 1em 1em; margin: 0 0 1em; background-color: #ddf0f2; } div.special p { - margin: .25em 0; + margin: .5em 0 0 0; } div.special ol { @@ -529,6 +656,7 @@ pre.classic { margin-top:0px; width:295; float:right; + font-size:.9em; } #qv ol { @@ -725,7 +853,7 @@ table ol.toc { } tr.alt-color { - background-color: #e6e6e6; + background-color: #f6f6f6; } /* expando trigger */ diff --git a/tools/droiddoc/templates/class.cs b/tools/droiddoc/templates/class.cs index 1fd4369..005ed6a 100644 --- a/tools/droiddoc/templates/class.cs +++ b/tools/droiddoc/templates/class.cs @@ -23,6 +23,84 @@ function toggle_inherited(base) { <div class="g-unit" id="doc-content"> +<div id="api-info-block"> + +<?cs # are there inherited members ?> +<?cs each:cl=class.inherited ?> + <?cs if:subcount(cl.methods) ?> + <?cs set:inhmethods = #1 ?> + <?cs /if ?> + <?cs if:subcount(cl.constants) ?> + <?cs set:inhconstants = #1 ?> + <?cs /if ?> + <?cs if:subcount(cl.fields) ?> + <?cs set:inhfields = #1 ?> + <?cs /if ?> + <?cs if:subcount(cl.attrs) ?> + <?cs set:inhattrs = #1 ?> + <?cs /if ?> +<?cs /each ?> + +<div class="sum-details-links"> +Summary: +<?cs if:subcount(class.inners) ?> + <a href="#nestedclasses">Nested Classes</a> + <?cs set:linkcount = #1 ?> +<?cs /if ?> +<?cs if:subcount(class.attrs) ?> + <?cs if:linkcount ?>| <?cs /if ?><a href="#lattrs">XML Attrs</a> + <?cs set:linkcount = #1 ?> +<?cs /if ?> +<?cs if:inhattrs ?> + <?cs if:linkcount ?>| <?cs /if ?><a href="#inhattrs">Inherited XML Attrs</a> + <?cs set:linkcount = #1 ?> +<?cs /if ?> +<?cs if:subcount(class.enumConstants) ?> + <?cs if:linkcount ?>| <?cs /if ?><a href="#enumconstants">Enums</a> + <?cs set:linkcount = #1 ?> +<?cs /if ?> +<?cs if:subcount(class.constants) ?> + <?cs if:linkcount ?>| <?cs /if ?><a href="#constants">Constants</a> + <?cs set:linkcount = #1 ?> +<?cs /if ?> +<?cs if:inhconstants ?> + <?cs if:linkcount ?>| <?cs /if ?><a href="#inhconstants">Inherited Constants</a> + <?cs set:linkcount = #1 ?> +<?cs /if ?> +<?cs if:subcount(class.fields) ?> + <?cs if:linkcount ?>| <?cs /if ?><a href="#lfields">Fields</a> + <?cs set:linkcount = #1 ?> +<?cs /if ?> +<?cs if:inhfields ?> + <?cs if:linkcount ?>| <?cs /if ?><a href="#inhfields">Inherited Fields</a> + <?cs set:linkcount = #1 ?> +<?cs /if ?> +<?cs if:subcount(class.ctors.public) ?> + <?cs if:linkcount ?>| <?cs /if ?><a href="#pubctors">Ctors</a> + <?cs set:linkcount = #1 ?> +<?cs /if ?> +<?cs if:subcount(class.ctors.protected) ?> + <?cs if:linkcount ?>| <?cs /if ?><a href="#proctors">Protected Ctors</a> + <?cs set:linkcount = #1 ?> +<?cs /if ?> +<?cs if:subcount(class.methods.public) ?> + <?cs if:linkcount ?>| <?cs /if ?><a href="#pubmethods">Methods</a> + <?cs set:linkcount = #1 ?> +<?cs /if ?> +<?cs if:subcount(class.methods.protected) ?> + <?cs if:linkcount ?>| <?cs /if ?><a href="#promethods">Protected Methods</a> + <?cs set:linkcount = #1 ?> +<?cs /if ?> +<?cs if:inhmethods ?> + <?cs if:linkcount ?>| <?cs /if ?><a href="#inhmethods">Inherited Methods</a> +<?cs /if ?> +</nobr> +<?cs if:inhattrs || inhconstants || inhfields || inhmethods || subcount(class.subclasses.direct) || subcount(class.subclasses.indirect) ?> +| [<a href="">Expand All</a>] +<?cs /if ?> +</div> +</div> + <?cs # this next line must be exactly like this to be parsed by eclipse ?> <!-- ======== START OF CLASS DATA ======== --> @@ -58,7 +136,7 @@ function toggle_inherited(base) { <tr> <?cs loop:i = 1, (subcount(class.inheritance)-colspan), 1 ?> <td class="jd-inheritance-space"> <?cs if:(subcount(class.inheritance)-colspan) == i ?> ↳<?cs /if ?></td> - <?cs /loop ?> + <?cs /loop ?> <td colspan="<?cs var:colspan ?>" class="jd-inheritance-class-cell"><?cs if:colspan == 1 ?><?cs call:class_name(class.qualifiedType) ?><?cs @@ -70,29 +148,27 @@ function toggle_inherited(base) { <?cs /each ?> </table> - -<div class="jd-descr"> -<?cs call:deprecated_warning(class) ?> -<?cs if:subcount(class.descr) ?> -<h2>Class Overview</h2> -<p><?cs call:tag_list(class.descr) ?></p> -<?cs /if ?> - <?cs # this next line must be exactly like this to be parsed by eclipse ?> <!-- ======== NESTED CLASS SUMMARY ======== --> -<?cs if:subcount(class.inners) ?> -<h4><?cs call:expando_trigger("nested-classes", "opened") ?>Nested Classes</h4> -<?cs call:expandable_class_list("nested-classes", class.inners, "summary") ?> -<?cs /if ?> - <?cs if:subcount(class.subclasses.direct) ?> -<h4><?cs call:expando_trigger("subclasses-direct", "closed") ?>Known Direct Subclasses</h4> +<table class="jd-sumtable jd-sumtable-subclasses"><tr><td colspan="12" style="border:none;margin:0;padding:0;"> +<?cs call:expando_trigger("subclasses-direct", "closed") ?>Known Direct Subclasses <?cs call:expandable_class_list("subclasses-direct", class.subclasses.direct, "list") ?> +</td></tr></table> <?cs /if ?> <?cs if:subcount(class.subclasses.indirect) ?> -<h4><?cs call:expando_trigger("subclasses-indirect", "closed") ?>Known Indirect Subclasses</h4> +<table class="jd-sumtable jd-sumtable-subclasses"><tr><td colspan="12" style="border:none;margin:0;padding:0;"> +<?cs call:expando_trigger("subclasses-indirect", "closed") ?>Known Indirect Subclasses <?cs call:expandable_class_list("subclasses-indirect", class.subclasses.indirect, "list") ?> +</td></tr></table> +<?cs /if ?> + +<div class="jd-descr"> +<?cs call:deprecated_warning(class) ?> +<?cs if:subcount(class.descr) ?> +<h2>Class Overview</h2> +<p><?cs call:tag_list(class.descr) ?></p> <?cs /if ?> <?cs call:see_also_tags(class.seeAlso) ?> @@ -100,11 +176,10 @@ function toggle_inherited(base) { </div><!-- jd-descr --> -<?cs # summar macros ?> +<?cs # summary macros ?> <?cs def:write_method_summary(methods) ?> <?cs set:count = #1 ?> -<table class="jd-linktable"> <?cs each:method = methods ?> <tr <?cs if:count % #2 ?>class="alt-color"<?cs /if ?> > <td class="jd-typecol"><nobr> @@ -115,71 +190,80 @@ function toggle_inherited(base) { <?cs call:type_link(method.generic) ?> <?cs call:type_link(method.returnType) ?></nobr> </td> - <td class="jd-linkcol" width="100%"><a href="<?cs var:toroot ?><?cs var:method.href ?>"><strong><?cs var:method.name ?></strong></a>(<?cs call:parameter_list(method.params) ?>)</td> - </tr> - <?cs if:subcount(method.shortDescr) || subcount(method.deprecated) ?> - <tr <?cs if:count % #2 ?>class="alt-color"<?cs /if ?> > - <td class="jd-commentrow"></td> - <td class="jd-commentrow"><?cs call:short_descr(method) ?></td> - </tr> + <td class="jd-linkcol" width="100%"><nobr> + <span class="sympad"><a href="<?cs var:toroot ?><?cs var:method.href ?>"> + <?cs var:method.name ?></a></span>(<?cs call:parameter_list(method.params) ?>)</nobr> + <?cs if:subcount(method.shortDescr) || subcount(method.deprecated) ?> + <div class="jd-descrdiv"><?cs call:short_descr(method) ?></div> <?cs /if ?> + </td></tr> <?cs set:count = count + #1 ?> <?cs /each ?> -</table> <?cs /def ?> <?cs def:write_field_summary(fields) ?> <?cs set:count = #1 ?> -<table class="jd-linktable"> <?cs each:field=fields ?> <tr <?cs if:count % #2 ?>class="alt-color"<?cs /if ?> > - <td class="jd-descrcol"><?cs var:field.scope ?> </td> - <td class="jd-descrcol"><?cs var:field.static ?> </td> - <td class="jd-descrcol"><?cs var:field.final ?> </td> - <td class="jd-descrcol"><?cs call:type_link(field.type) ?> </td> - <td class="jd-linkcol"><a href="<?cs var:toroot ?><?cs var:field.href ?>"><?cs var:field.name ?></a> </td> - <td class="jd-descrcol" width="100%"><?cs call:short_descr(field) ?> </td> + <td class="jd-typecol"><nobr> + <?cs var:field.scope ?> + <?cs var:field.static ?> + <?cs var:field.final ?> + <?cs call:type_link(field.type) ?></nobr></td> + <td class="jd-linkcol"><a href="<?cs var:toroot ?><?cs var:field.href ?>"><?cs var:field.name ?></a></td> + <td class="jd-descrcol" width="100%"><?cs call:short_descr(field) ?></td> </tr> <?cs set:count = count + #1 ?> <?cs /each ?> -</table> <?cs /def ?> <?cs def:write_constant_summary(fields) ?> <?cs set:count = #1 ?> -<table class="jd-linktable"> - <?cs each:field=fields ?> <tr <?cs if:count % #2 ?>class="alt-color"<?cs /if ?> > - <td class="jd-descrcol"><?cs call:type_link(field.type) ?> </td> - <td class="jd-linkcol"><a href="<?cs var:toroot ?><?cs var:field.href ?>"><?cs var:field.name ?></a> </td> - <td class="jd-descrcol"><?cs call:short_descr(field) ?> </td> + <td class="jd-typecol"><?cs call:type_link(field.type) ?></td> + <td class="jd-linkcol"><a href="<?cs var:toroot ?><?cs var:field.href ?>"><?cs var:field.name ?></a></td> + <td class="jd-descrcol" width="100%"><?cs call:short_descr(field) ?></td> </tr> <?cs set:count = count + #1 ?> <?cs /each ?> -</table> <?cs /def ?> <?cs def:write_attr_summary(attrs) ?> <?cs set:count = #1 ?> -<table class="jd-linktable"> <tr> - <th>Attribute name</th> - <th>Related methods</th> - <th> </th> + <td><nobr><em>Attribute Name</em></nobr></td> + <td><nobr><em>Related Method</em></nobr></td> + <td><nobr><em>Description</em></nobr></td> </tr> <?cs each:attr=attrs ?> <tr <?cs if:count % #2 ?>class="alt-color"<?cs /if ?> > <td class="jd-linkcol"><a href="<?cs var:toroot ?><?cs var:attr.href ?>"><?cs var:attr.name ?></a></td> - <td class="jd-linkcol"><?cs each:m=attr.methods - ?><a href="<?cs var:toroot ?><?cs var:m.href ?>"><?cs var:m.name ?></a><br/> - <?cs /each ?> + <td class="jd-linkcol"><?cs each:m=attr.methods ?> + <a href="<?cs var:toroot ?><?cs var:m.href ?>"><?cs var:m.name ?></a> + <?cs /each ?> </td> <td class="jd-descrcol" width="100%"><?cs call:short_descr(attr) ?> </td> </tr> <?cs set:count = count + #1 ?> <?cs /each ?> -</table> +<?cs /def ?> + +<?cs def:write_inners_summary(classes) ?> +<?cs set:count = #1 ?> + <?cs each:cl=class.inners ?> + <tr <?cs if:count % #2 ?>class="alt-color"<?cs /if ?> > + <td class="jd-typecol"><nobr> + <?cs var:class.scope ?> + <?cs var:class.static ?> + <?cs var:class.final ?> + <?cs var:class.abstract ?> + <?cs var:class.kind ?></nobr></td> + <td class="jd-linkcol"><?cs call:type_link(cl.type) ?></td> + <td class="jd-descrcol" width="100%"><?cs call:short_descr(cl) ?> </td> + </tr> + <?cs set:count = count + #1 ?> + <?cs /each ?> <?cs /def ?> <?cs # end macros ?> @@ -187,39 +271,50 @@ function toggle_inherited(base) { <div class="jd-descr"> <h2>Summary</h2> +<?cs if:subcount(class.inners) ?> +<?cs # this next line must be exactly like this to be parsed by eclipse ?> +<!-- ======== NESTED CLASS SUMMARY ======== --> +<table id="nestedclasses" class="jd-sumtable"><tr><th colspan="12">Nested Classes</th></tr> +<?cs call:write_inners_summary(class.inners) ?> +<?cs /if ?> + <?cs # this next line must be exactly like this to be parsed by eclipse ?> -<!-- =========== FIELD SUMMARY =========== --> <?cs if:subcount(class.attrs) ?> -<h3>XML Attributes</h3> +<!-- =========== FIELD SUMMARY =========== --> +<table id="lattrs" class="jd-sumtable"><tr><th colspan="12">XML Attributes</th></tr> <?cs call:write_attr_summary(class.attrs) ?> <?cs /if ?> +<?cs # if there are inherited attrs, write the table ?> +<?cs if:inhattrs ?> +<table id="inhattrs" class="jd-sumtable"><tr><th> + <div class="expandall">[<a href="">Expand All</a>]</div> + <div style="clear:left;">Inherited XML Attributes</div></th></tr> <?cs each:cl=class.inherited ?> <?cs if:subcount(cl.attrs) ?> -<h4><?cs call:expando_trigger("inherited-attrs-"+cl.qualified, "closed") ?>XML Attributes inherited - from <?cs var:cl.kind ?> - <a href="<?cs var:toroot ?><?cs var:cl.link ?>"><?cs var:cl.qualified ?></a> -</h4> +<tr><td colspan="12"> +<?cs call:expando_trigger("inherited-attrs-"+cl.qualified, "closed") ?>From <?cs var:cl.kind ?> +<a href="<?cs var:toroot ?><?cs var:cl.link ?>"><?cs var:cl.qualified ?></a> <div id="inherited-attrs-<?cs var:cl.qualified ?>"> <div id="inherited-attrs-<?cs var:cl.qualified ?>-list" - class="jd-inheritedlinks"> + class="jd-inheritedlinks"> </div> - <div id="inherited-attrs-<?cs var:cl.qualified ?>-summary" - style="display: none;"> - <?cs call:write_attr_summary(cl.attrs) ?> + <div id="inherited-attrs-<?cs var:cl.qualified ?>-summary" style="display: none;"> + <table class="jd-sumtable-expando"> + <?cs call:write_attr_summary(cl.attrs) ?></table> </div> </div> +</td></tr> <?cs /if ?> <?cs /each ?> - - +</table> +<?cs /if ?> <?cs if:subcount(class.enumConstants) ?> <?cs # this next line must be exactly like this to be parsed by eclipse ?> <!-- =========== ENUM CONSTANT SUMMARY =========== --> -<h3>Enum Values</h3> +<table id="enumconstants" class="jd-sumtable"><tr><th colspan="12">Enum Values</th></tr> <?cs set:count = #1 ?> -<table class="jd-linktable"> <?cs each:field=class.enumConstants ?> <tr <?cs if:count % #2 ?>class="alt-color"<?cs /if ?> > <td class="jd-descrcol"><?cs call:type_link(field.type) ?> </td> @@ -228,109 +323,129 @@ function toggle_inherited(base) { </tr> <?cs set:count = count + #1 ?> <?cs /each ?> -</table> <?cs /if ?> <?cs if:subcount(class.constants) ?> <?cs # this next line must be exactly like this to be parsed by eclipse ?> <!-- =========== FIELD SUMMARY =========== --> -<h3>Constants</h3> +<table id="constants" class="jd-sumtable"><tr><th colspan="12">Constants</th></tr> <?cs call:write_constant_summary(class.constants) ?> +</table> <?cs /if ?> +<?cs # if there are inherited constants, write the table ?> +<?cs if:inhconstants ?> +<table id="inhconstants" class="jd-sumtable"><tr><th> + <div class="expandall">[<a href="">Expand All</a>]</div> + <div style="clear:left;">Inherited Constants</div></th></tr> <?cs each:cl=class.inherited ?> <?cs if:subcount(cl.constants) ?> -<h4><?cs call:expando_trigger("inherited-constants-"+cl.qualified, "closed") ?>Constants inherited - from <?cs var:cl.kind ?> - <a href="<?cs var:toroot ?><?cs var:cl.link ?>"><?cs var:cl.qualified ?></a> -</h4> +<tr><td colspan="12"> +<?cs call:expando_trigger("inherited-constants-"+cl.qualified, "closed") ?>From <?cs var:cl.kind ?> +<a href="<?cs var:toroot ?><?cs var:cl.link ?>"><?cs var:cl.qualified ?></a> <div id="inherited-constants-<?cs var:cl.qualified ?>"> -<div id="inherited-constants-<?cs var:cl.qualified ?>-list" + <div id="inherited-constants-<?cs var:cl.qualified ?>-list" class="jd-inheritedlinks"> - -</div> -<div id="inherited-constants-<?cs var:cl.qualified ?>-summary" - style="display: none;"> -<?cs call:write_constant_summary(cl.constants) ?> -</div> + </div> + <div id="inherited-constants-<?cs var:cl.qualified ?>-summary" style="display: none;"> + <table class="jd-sumtable-expando"> + <?cs call:write_constant_summary(cl.constants) ?></table> + </div> </div> +</td></tr> <?cs /if ?> <?cs /each ?> - +</table> +<?cs /if ?> <?cs if:subcount(class.fields) ?> <?cs # this next line must be exactly like this to be parsed by eclipse ?> <!-- =========== FIELD SUMMARY =========== --> -<h3>Fields</h3> +<table id="lfields" class="jd-sumtable"><tr><th colspan="12">Fields</th></tr> <?cs call:write_field_summary(class.fields) ?> +</table> <?cs /if ?> +<?cs # if there are inherited fields, write the table ?> +<?cs if:inhfields ?> +<table id="inhfields" class="jd-sumtable"><tr><th> + <div class="expandall">[<a href="">Expand All</a>]</div> + <div style="clear:left;">Inherited Fields</div></th></tr> <?cs each:cl=class.inherited ?> <?cs if:subcount(cl.fields) ?> -<h4><?cs call:expando_trigger("inherited-fields-"+cl.qualified, "closed") ?>Fields inherited - from <?cs var:cl.kind ?> - <a href="<?cs var:toroot ?><?cs var:cl.link ?>"><?cs var:cl.qualified ?></a> -</h4> +<tr><td colspan="12"> +<?cs call:expando_trigger("inherited-fields-"+cl.qualified, "closed") ?>From <?cs var:cl.kind ?> +<a href="<?cs var:toroot ?><?cs var:cl.link ?>"><?cs var:cl.qualified ?></a> <div id="inherited-fields-<?cs var:cl.qualified ?>"> -<div id="inherited-fields-<?cs var:cl.qualified ?>-list" + <div id="inherited-fields-<?cs var:cl.qualified ?>-list" class="jd-inheritedlinks"> - -</div> -<div id="inherited-fields-<?cs var:cl.qualified ?>-summary" - style="display: none;"> -<?cs call:write_field_summary(cl.fields) ?> -</div> + </div> + <div id="inherited-fields-<?cs var:cl.qualified ?>-summary" style="display: none;"> + <table class="jd-sumtable-expando"> + <?cs call:write_field_summary(cl.fields) ?></table> + </div> </div> +</td></tr> <?cs /if ?> <?cs /each ?> - +</table> +<?cs /if ?> <?cs if:subcount(class.ctors.public) ?> <?cs # this next line must be exactly like this to be parsed by eclipse ?> <!-- ======== CONSTRUCTOR SUMMARY ======== --> -<h3>Public Constructors</h3> +<table id="pubctors" class="jd-sumtable"><tr><th colspan="12">Public Constructors</th></tr> <?cs call:write_method_summary(class.ctors.public) ?> +</table> <?cs /if ?> <?cs if:subcount(class.ctors.protected) ?> <?cs # this next line must be exactly like this to be parsed by eclipse ?> <!-- ======== CONSTRUCTOR SUMMARY ======== --> -<h3>Protected Constructors</h3> +<table id="proctors" class="jd-sumtable"><tr><th colspan="12">Protected Constructors</th></tr> <?cs call:write_method_summary(class.ctors.protected) ?> +</table> <?cs /if ?> <?cs if:subcount(class.methods.public) ?> <?cs # this next line must be exactly like this to be parsed by eclipse ?> <!-- ========== METHOD SUMMARY =========== --> -<h3>Public Methods</h3> +<table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr> <?cs call:write_method_summary(class.methods.public) ?> +</table> <?cs /if ?> <?cs if:subcount(class.methods.protected) ?> <?cs # this next line must be exactly like this to be parsed by eclipse ?> <!-- ========== METHOD SUMMARY =========== --> -<h3>Protected Methods</h3> +<table id="promethods" class="jd-sumtable"><tr><th colspan="12">Protected Methods</th></tr> <?cs call:write_method_summary(class.methods.protected) ?> +</table> <?cs /if ?> +<?cs # if there are inherited methods, write the table ?> +<?cs if:inhmethods ?> +<table id="inhmethods" class="jd-sumtable"><tr><th> + <div class="expandall">[<a href="">Expand All</a>]</div> + <div style="clear:left;">Inherited Methods</div></th></tr> <?cs each:cl=class.inherited ?> <?cs if:subcount(cl.methods) ?> -<h4><?cs call:expando_trigger("inherited-methods-"+cl.qualified, "closed") ?>Methods inherited - from <?cs var:cl.kind ?> - <a href="<?cs var:toroot ?><?cs var:cl.link ?>"><?cs var:cl.qualified ?></a> -</h4> +<tr><td colspan="12"><?cs call:expando_trigger("inherited-methods-"+cl.qualified, "closed") ?> +From <?cs var:cl.kind ?> <a href="<?cs var:toroot ?><?cs var:cl.link ?>"><?cs var:cl.qualified ?></a> <div id="inherited-methods-<?cs var:cl.qualified ?>"> -<div id="inherited-methods-<?cs var:cl.qualified ?>-list" + <div id="inherited-methods-<?cs var:cl.qualified ?>-list" class="jd-inheritedlinks"> - -</div> -<div id="inherited-methods-<?cs var:cl.qualified ?>-summary" - style="display: none;"> -<?cs call:write_method_summary(cl.methods) ?> -</div> + </div> + <div id="inherited-methods-<?cs var:cl.qualified ?>-summary" style="display: none;"> + <table class="jd-sumtable-expando"> + <?cs call:write_method_summary(cl.methods) ?></table> + </div> </div> +</td></tr> <?cs /if ?> <?cs /each ?> +</table> +<?cs /if ?> </div><!-- jd-descr (summary) --> @@ -381,7 +496,8 @@ function toggle_inherited(base) { <?cs var:method.synchronized ?> <?cs call:type_link(method.returnType) ?> </span> - <?cs var:method.name ?>(<?cs call:parameter_list(method.params) ?>) + <span class="sympad"><?cs var:method.name ?></span> + <span class="normal">(<?cs call:parameter_list(method.params) ?>)</span> </h4> <div class="jd-details-descr"><?cs call:description(method) ?></div> </div> diff --git a/tools/droiddoc/templates/classes.cs b/tools/droiddoc/templates/classes.cs index 44aefbd..f8494e5 100644 --- a/tools/droiddoc/templates/classes.cs +++ b/tools/droiddoc/templates/classes.cs @@ -18,10 +18,10 @@ <?cs each:letter=docs.classes ?> <?cs set:count = #1 ?> <h2 id="letter_<?cs name:letter ?>"><?cs name:letter ?></h2> -<table class="jd-linktable jd-lettertable"> +<table class="jd-sumtable"> <?cs set:cur_row = #0 ?> <?cs each:cl = letter ?> - <tr class="jd-letterentries <?cs if:count % #2 ?>alt-color<?cs /if ?>" > + <tr <?cs if:count % #2 ?>class="alt-color"<?cs /if ?> > <td class="jd-linkcol"><?cs call:type_link(cl.type) ?></td> <td class="jd-descrcol" width="100%"><?cs call:short_descr(cl) ?> </td> </tr> diff --git a/tools/droiddoc/templates/macros.cs b/tools/droiddoc/templates/macros.cs index 1325496..8f5fa8e 100644 --- a/tools/droiddoc/templates/macros.cs +++ b/tools/droiddoc/templates/macros.cs @@ -103,7 +103,7 @@ This <?cs var:kind ?> is deprecated. <?cs def:see_also_tags(also) ?> <?cs if:subcount(also) ?> <div class="jd-tagdata"> - <h4 class="jd-tagtitle">See Also</h4> + <h5 class="jd-tagtitle">See Also</h5> <ul class="nolist"> <?cs each:tag=also ?><li><?cs @@ -114,8 +114,7 @@ This <?cs var:kind ?> is deprecated. else ?>[ERROR: Unknown @see kind]<?cs /if ?></li> <?cs /each ?> - </table> - <ul> + </ul> </div> <?cs /if ?> <?cs /def ?> @@ -127,11 +126,12 @@ This <?cs var:kind ?> is deprecated. <?cs def:description(obj) ?> <?cs call:deprecated_warning(obj) ?> -<?cs call:tag_list(obj.descr) ?> +<div class="jd-tagdata jd-tagdescr"><p><?cs call:tag_list(obj.descr) ?></p></div> + <?cs if:subcount(obj.attrRefs) ?> <div class="jd-tagdata"> - <h4 class="jd-tagtitle">Related XML Attributes</h4> + <h5 class="jd-tagtitle">Related XML Attributes</h5> <ul class="nolist"> <?cs each:attr=obj.attrRefs ?> <li><a href="<?cs var:toroot ?><?cs var:attr.href ?>"><?cs var:attr.name ?></a></li> @@ -142,7 +142,7 @@ This <?cs var:kind ?> is deprecated. <?cs if:subcount(obj.paramTags) ?> <div class="jd-tagdata"> - <h4 class="jd-tagtitle">Parameters</h4> + <h5 class="jd-tagtitle">Parameters</h5> <table class="jd-tagtable"> <?cs each:tag=obj.paramTags ?><tr> @@ -158,14 +158,14 @@ This <?cs var:kind ?> is deprecated. <?cs if:subcount(obj.returns) ?> <div class="jd-tagdata"> - <h4 class="jd-tagtitle">Returns</h4> + <h5 class="jd-tagtitle">Returns</h5> <ul class="nolist"><li><?cs call:tag_list(obj.returns) ?></li></ul> </div> <?cs /if ?> <?cs if:subcount(obj.throws) ?> <div class="jd-tagdata"> - <h4 class="jd-tagtitle">Throws</h4> + <h5 class="jd-tagtitle">Throws</h5> <table class="jd-tagtable"> <?cs each:tag=obj.throws ?> <tr> @@ -185,7 +185,7 @@ This <?cs var:kind ?> is deprecated. <?cs # A table of links to classes with descriptions, as in a package file or the nested classes ?> <?cs def:class_link_table(classes) ?> <?cs set:count = #1 ?> -<table class="jd-linktable"><?cs +<table class="jd-sumtable-expando"><?cs each:cl=classes ?> <tr <?cs if:count % #2 ?>class="alt-color"<?cs /if ?> > <td class="jd-linkcol"><?cs call:type_link(cl.type) ?></td> diff --git a/tools/droiddoc/templates/package.cs b/tools/droiddoc/templates/package.cs index 65f0278..becf482 100644 --- a/tools/droiddoc/templates/package.cs +++ b/tools/droiddoc/templates/package.cs @@ -29,7 +29,9 @@ <?cs def:class_table(label, classes) ?> <?cs if:subcount(classes) ?> <h3><?cs var:label ?></h3> + <div class="jd-sumtable"> <?cs call:class_link_table(classes) ?> + </div> <?cs /if ?> <?cs /def ?> diff --git a/tools/droiddoc/templates/packages.cs b/tools/droiddoc/templates/packages.cs index 14f7246..3ef85b8 100644 --- a/tools/droiddoc/templates/packages.cs +++ b/tools/droiddoc/templates/packages.cs @@ -17,9 +17,9 @@ </div> <?cs set:count = #1 ?> -<table class="jd-linktable"> +<table class="jd-sumtable"> <?cs each:pkg = docs.packages ?> - <tr class="jd-letterentries <?cs if:count % #2 ?>alt-color<?cs /if ?>" > + <tr <?cs if:count % #2 ?>class="alt-color"<?cs /if ?> > <td class="jd-linkcol"><?cs call:package_link(pkg) ?></td> <td class="jd-descrcol" width="100%"><?cs call:tag_list(pkg.shortDescr) ?> </td> </tr> |