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) ?><?cs
27   if:class.deprecatedsince
28     ?><br>Deprecated since <a href="<?cs var:toroot ?>guide/topics/manifest/uses-sdk-element.html#ApiLevels"
29         >API level <?cs var:class.deprecatedsince ?></a><?cs
30   /if ?>
31   <?cs call:federated_refs(class) ?>
32 </div>
33 
34 <?cs # Set variables about whether there are inherited members; no output ?>
35 <?cs each:cl=class.inherited ?>
36   <?cs if:subcount(cl.methods) ?>
37    <?cs set:inhmethods = #1 ?>
38   <?cs /if ?>
39   <?cs if:subcount(cl.constants) ?>
40    <?cs set:inhconstants = #1 ?>
41   <?cs /if ?>
42   <?cs if:subcount(cl.fields) ?>
43    <?cs set:inhfields = #1 ?>
44   <?cs /if ?>
45   <?cs if:subcount(cl.attrs) ?>
46    <?cs set:inhattrs = #1 ?>
47   <?cs /if ?>
48 <?cs /each ?>
49 
50 <div class="sum-details-links">
51 <?cs if:inhattrs || inhconstants || inhfields || inhmethods || (!class.subclasses.hidden &&
52      (subcount(class.subclasses.direct) || subcount(class.subclasses.indirect))) ?>
53 Summary:
54 <?cs if:subcount(class.inners) ?>
55   <a href="#nestedclasses">Nested Classes</a>
56   <?cs set:linkcount = #1 ?>
57 <?cs /if ?>
58 <?cs if:subcount(class.attrs) ?>
59   <?cs if:linkcount ?>&#124; <?cs /if ?><a href="#lattrs">XML Attrs</a>
60   <?cs set:linkcount = #1 ?>
61 <?cs /if ?>
62 <?cs if:inhattrs ?>
63   <?cs if:linkcount ?>&#124; <?cs /if ?><a href="#inhattrs">Inherited XML Attrs</a>
64   <?cs set:linkcount = #1 ?>
65 <?cs /if ?>
66 <?cs if:subcount(class.enumConstants) ?>
67   <?cs if:linkcount ?>&#124; <?cs /if ?><a href="#enumconstants">Enums</a>
68   <?cs set:linkcount = #1 ?>
69 <?cs /if ?>
70 <?cs if:subcount(class.constants) ?>
71   <?cs if:linkcount ?>&#124; <?cs /if ?><a href="#constants">Constants</a>
72   <?cs set:linkcount = #1 ?>
73 <?cs /if ?>
74 <?cs if:inhconstants ?>
75   <?cs if:linkcount ?>&#124; <?cs /if ?><a href="#inhconstants">Inherited Constants</a>
76   <?cs set:linkcount = #1 ?>
77 <?cs /if ?>
78 <?cs if:subcount(class.fields) ?>
79   <?cs if:linkcount ?>&#124; <?cs /if ?><a href="#lfields">Fields</a>
80   <?cs set:linkcount = #1 ?>
81 <?cs /if ?>
82 <?cs if:inhfields ?>
83   <?cs if:linkcount ?>&#124; <?cs /if ?><a href="#inhfields">Inherited Fields</a>
84   <?cs set:linkcount = #1 ?>
85 <?cs /if ?>
86 <?cs if:subcount(class.ctors.public) ?>
87   <?cs if:linkcount ?>&#124; <?cs /if ?><a href="#pubctors">Ctors</a>
88   <?cs set:linkcount = #1 ?>
89 <?cs /if ?>
90 <?cs if:subcount(class.ctors.protected) ?>
91   <?cs if:linkcount ?>&#124; <?cs /if ?><a href="#proctors">Protected Ctors</a>
92   <?cs set:linkcount = #1 ?>
93 <?cs /if ?>
94 <?cs if:subcount(class.methods.public) ?>
95   <?cs if:linkcount ?>&#124; <?cs /if ?><a href="#pubmethods">Methods</a>
96   <?cs set:linkcount = #1 ?>
97 <?cs /if ?>
98 <?cs if:subcount(class.methods.protected) ?>
99   <?cs if:linkcount ?>&#124; <?cs /if ?><a href="#promethods">Protected Methods</a>
100   <?cs set:linkcount = #1 ?>
101 <?cs /if ?>
102 <?cs if:inhmethods ?>
103   <?cs if:linkcount ?>&#124; <?cs /if ?><a href="#inhmethods">Inherited Methods</a>
104 <?cs /if ?>
105 &#124; <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a>
106 <?cs /if ?>
107 </div><!-- end sum-details-links -->
108 </div><!-- end api-info-block --><?cs
109 /if ?><?cs # end of if package or class ?>