1 <?cs # optional, more info about the page, such as API level and links ?> 2 <?cs 3 # A modal dialog when API level is set too low for this page 4 ?><div id="naMessage"></div> 5 <?cs 6 # 7 # If this is a package summary page... 8 # 9 ?><?cs 10 if:subcount(package) 11 ?> 12 <div id="api-info-block"> 13 <div class="api-level"> 14 <?cs call:since_tags(package) ?> 15 <?cs call:federated_refs(package) ?> 16 </div> 17 </div><?cs 18 # 19 # Or if this is a class page... 20 # 21 ?><?cs 22 elif:subcount(class) 23 ?> 24 <div id="api-info-block"> 25 <div class="api-level"> 26 <?cs call:since_tags(class) ?> 27 <?cs if:class.artifact ?> 28 <br><?cs call:artifact_tags(class) ?> 29 <?cs /if ?> 30 <?cs call:federated_refs(class) ?> 31 </div> 32 33 <?cs # Set variables about whether there are inherited members; no output ?> 34 <?cs each:cl=class.inherited ?> 35 <?cs if:subcount(cl.methods) ?> 36 <?cs set:inhmethods = #1 ?> 37 <?cs /if ?> 38 <?cs if:subcount(cl.constants) ?> 39 <?cs set:inhconstants = #1 ?> 40 <?cs /if ?> 41 <?cs if:subcount(cl.fields) ?> 42 <?cs set:inhfields = #1 ?> 43 <?cs /if ?> 44 <?cs if:subcount(cl.attrs) ?> 45 <?cs set:inhattrs = #1 ?> 46 <?cs /if ?> 47 <?cs /each ?> 48 49 <div class="sum-details-links"> 50 <?cs if:inhattrs || inhconstants || inhfields || inhmethods || (!class.subclasses.hidden && 51 (subcount(class.subclasses.direct) || subcount(class.subclasses.indirect))) ?> 52 Summary: 53 <?cs if:subcount(class.inners) ?> 54 <a href="#nestedclasses">Nested Classes</a> 55 <?cs set:linkcount = #1 ?> 56 <?cs /if ?> 57 <?cs if:subcount(class.attrs) ?> 58 <?cs if:linkcount ?>| <?cs /if ?><a href="#lattrs">XML Attrs</a> 59 <?cs set:linkcount = #1 ?> 60 <?cs /if ?> 61 <?cs if:inhattrs ?> 62 <?cs if:linkcount ?>| <?cs /if ?><a href="#inhattrs">Inherited XML Attrs</a> 63 <?cs set:linkcount = #1 ?> 64 <?cs /if ?> 65 <?cs if:subcount(class.enumConstants) ?> 66 <?cs if:linkcount ?>| <?cs /if ?><a href="#enumconstants">Enums</a> 67 <?cs set:linkcount = #1 ?> 68 <?cs /if ?> 69 <?cs if:subcount(class.constants) ?> 70 <?cs if:linkcount ?>| <?cs /if ?><a href="#constants">Constants</a> 71 <?cs set:linkcount = #1 ?> 72 <?cs /if ?> 73 <?cs if:inhconstants ?> 74 <?cs if:linkcount ?>| <?cs /if ?><a href="#inhconstants">Inherited Constants</a> 75 <?cs set:linkcount = #1 ?> 76 <?cs /if ?> 77 <?cs if:subcount(class.fields) ?> 78 <?cs if:linkcount ?>| <?cs /if ?><a href="#lfields">Fields</a> 79 <?cs set:linkcount = #1 ?> 80 <?cs /if ?> 81 <?cs if:inhfields ?> 82 <?cs if:linkcount ?>| <?cs /if ?><a href="#inhfields">Inherited Fields</a> 83 <?cs set:linkcount = #1 ?> 84 <?cs /if ?> 85 <?cs if:subcount(class.ctors.public) ?> 86 <?cs if:linkcount ?>| <?cs /if ?><a href="#pubctors">Ctors</a> 87 <?cs set:linkcount = #1 ?> 88 <?cs /if ?> 89 <?cs if:subcount(class.ctors.protected) ?> 90 <?cs if:linkcount ?>| <?cs /if ?><a href="#proctors">Protected Ctors</a> 91 <?cs set:linkcount = #1 ?> 92 <?cs /if ?> 93 <?cs if:subcount(class.methods.public) ?> 94 <?cs if:linkcount ?>| <?cs /if ?><a href="#pubmethods">Methods</a> 95 <?cs set:linkcount = #1 ?> 96 <?cs /if ?> 97 <?cs if:subcount(class.methods.protected) ?> 98 <?cs if:linkcount ?>| <?cs /if ?><a href="#promethods">Protected Methods</a> 99 <?cs set:linkcount = #1 ?> 100 <?cs /if ?> 101 <?cs if:inhmethods ?> 102 <?cs if:linkcount ?>| <?cs /if ?><a href="#inhmethods">Inherited Methods</a> 103 <?cs /if ?> 104 <?cs /if ?> 105 </div><!-- end sum-details-links --> 106 </div><!-- end api-info-block --><?cs 107 /if ?><?cs # end of if package or class ?>