Lines Matching refs:cs
1 <?cs # A link to a package ?><?cs
3 <a href="<?cs var:toroot ?><?cs var:pkg.link ?>"><?cs var:pkg.name ?></a><?cs
6 <?cs # A link to a type, or not if it's a primitive type
122 that doesn't inherit from anything?><?cs
123 elif:tag.kind == "@attr" ?><?cs
124 else ?>{<?cs var:tag.name?> <?cs var:tag.text ?>}<?cs
125 /if ?><?cs
126 /each ?><?cs
129 <?cs # Show the short-form description of something. These come from shortDescr and deprecated ?><…
130 def:short_descr(obj) ?><?cs
131 if:subcount(obj.deprecated) ?><em><?cs
133 This <?cs var:obj.kind ?> was deprecated
134 in API level <?cs var:obj.deprecatedsince ?>.<?cs
136 This <?cs var:obj.kind ?> is deprecated.<?cs
138 <?cs call:tag_list(obj.deprecated) ?></em><?cs
139 else ?><?cs call:tag_list(obj.shortDescr) ?><?cs
140 if:subcount(obj.annotationdocumentation)?><?cs
142 <div><?cs var:annodoc.text?></div><?cs
143 /each?><?cs /if?><?cs
144 /if ?><?cs
148 <?cs
155 # ?><?cs
156 def:show_annotations_list(obj, pre, between, post) ?><?cs
157 each:anno = obj.showAnnotations ?><?cs
158 if:first(anno) ?><?cs
159 var:pre ?><?cs
161 @<?cs var:anno.type.label ?>(<?cs
162 each:elem = anno.elementValues ?><?cs
163 var:elem.name ?> = <?cs
164 var:elem.value ?><?cs
165 if:last(elem) == 0 ?>, <?cs
166 /if ?><?cs
167 /each ?>)<?cs
168 if:last(anno) == 0 ?><?cs
169 var:between ?><?cs
170 /if ?><?cs
171 if:last(anno) ?><?cs
172 var:post ?><?cs
173 /if ?><?cs
174 /each ?><?cs
177 <?cs # Show a comma-separated list of annotations associated with obj ?><?cs
178 def:show_simple_annotations_list(obj, pre, post) ?><?cs
179 call:show_annotations_list(obj, pre, ", ", post) ?><?cs
182 <?cs # Show the red box with the deprecated warning ?><?cs
183 def:deprecated_warning(obj) ?><?cs
185 <p class="caution"><strong><?cs
187 This <?cs var:obj.kind ?> was deprecated
188 in API level <?cs var:obj.deprecatedsince ?>.<?cs
190 This <?cs var:obj.kind ?> is deprecated.<?cs
192 <?cs call:tag_list(obj.deprecated) ?>
193 </p><?cs
194 /if ?><?cs
197 <?cs # print the See Also: section ?><?cs
198 def:see_also_tags(also) ?><?cs
202 <ul class="nolist"><?cs
203 each:tag=also ?><li><?cs
204 if:tag.kind == "@see" ?><code><a href="<?cs var:toroot ?><?cs var:tag.href ?>"><?cs
205 var:tag.label ?></a></code><?cs
206 … elif:tag.kind == "@seeHref" ?><a href="<?cs var:tag.href ?>"><?cs var:tag.label ?></a><?cs
207 elif:tag.kind == "@seeJustLabel" ?><?cs var:tag.label ?><?cs
208 else ?>[ERROR: Unknown @see kind]<?cs
209 /if ?></li><?cs
212 </div><?cs
214 <?cs /def ?>
216 <?cs # print the API Level ?><?cs
217 def:since_tags(obj) ?><?cs
219 …ot ?>guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level <?cs var:obj.since ?></a><?cs
220 /if ?><?cs
222 <?cs def:federated_refs(obj) ?>
223 <?cs if:subcount(obj.federated) ?>
226 <?cs each:federated=obj.federated ?>
227 <a href="<?cs var:federated.url ?>"><?cs var:federated.name ?></a><?cs
228 if:!last(federated) ?>,<?cs /if ?>
229 <?cs /each ?>
231 <?cs /if ?>
232 <?cs /def ?>
233 <?cs # Print the long-form description for something.
234 Uses the following fields: deprecated descr seeAlso since ?><?cs
235 def:description(obj) ?><?cs
237 <div class="jd-tagdata jd-tagdescr"><p><?cs call:tag_list(obj.descr) ?></p></div><?cs
238 if:subcount(obj.annotationdocumentation)?><?cs
240 <div class="jd-tagdata" style="display:block"><?cs var:annodoc.text?></div><?cs
241 /each?><?cs /if?><?cs
245 <ul class="nolist"><?cs
247 … <li><a href="<?cs var:toroot ?><?cs var:attr.href ?>"><?cs var:attr.name ?></a></li><?cs
250 </div><?cs
251 /if ?><?cs
255 <table class="jd-tagtable"><?cs
258 <th><?cs if:tag.isTypeParameter ?><<?cs /if ?><?cs var:tag.name
259 ?><?cs if:tag.isTypeParameter ?>><?cs /if ?></td>
260 <td><?cs call:tag_list(tag.comment) ?></td>
261 </tr><?cs
264 </div><?cs
265 /if ?><?cs
269 <ul class="nolist"><li><?cs call:tag_list(obj.returns) ?></li></ul>
270 </div><?cs
271 /if ?><?cs
275 <table class="jd-tagtable"><?cs
278 <th><?cs call:type_link(tag.type) ?></td>
279 <td><?cs call:tag_list(tag.comment) ?></td>
280 </tr><?cs
283 </div><?cs
284 /if ?><?cs
285 call:see_also_tags(obj.seeAlso) ?><?cs
288 <?cs # A table of links to classes with descriptions, as in a package file or the nested classes ?>…
289 def:class_link_table(classes) ?><?cs
291 <table class="jd-sumtable-expando"><?cs
294 <td class="jd-linkcol"><?cs call:type_link(cl.type) ?></td>
295 <td class="jd-descrcol" width="100%"><?cs call:short_descr(cl) ?> </td>
296 </tr><?cs set:count = count + #1 ?><?cs
298 </table><?cs
301 <?cs # A list of links to classes, for use in the side navigation of classes when viewing a package…
302 def:class_link_list(label, classes) ?><?cs
304 <li><h2><?cs var:label ?></h2>
305 <ul><?cs
307 …<li class="api apilevel-<?cs var:cl.type.since ?>"><?cs call:type_link2(cl.type,"true") ?></li><?cs
310 </li><?cs
311 /if ?><?cs
314 <?cs # A list of links to classes, for use in the side navigation of classes when viewing a class (…
315 def:list(label, classes) ?><?cs
317 <li><h2><?cs var:label ?></h2>
318 <ul><?cs
320 …>selected <?cs /if ?>api apilevel-<?cs var:cl.since ?>"><?cs call:type_link2(cl,"true") ?></li><?cs
323 </li><?cs
324 /if ?><?cs
327 <?cs # A list of links to packages, for use in the side navigation of packages (panel nav) ?><?cs
328 def:package_link_list(packages) ?><?cs
330 …)?>selected <?cs /if ?>api apilevel-<?cs var:pkg.since ?>"><?cs call:package_link(pkg) ?></li><?cs
331 /each ?><?cs
334 <?cs # An expando trigger ?><?cs
339 class="jd-expando-trigger-img" /></a><?cs
342 <?cs # An expandable list of classes ?><?cs
347 <?cs if:default != "list" ?>style="display: none;"<?cs /if ?>
349 <?cs if:subcount(classes) <= #20 ?>
350 <?cs each:cl=classes ?>
351 <?cs call:type_link(cl.type) ?><?cs if:!last(cl) ?>,<?cs /if ?>
352 <?cs /each ?>
353 <?cs else ?>
354 <?cs set:leftovers = subcount(classes) - #15 ?>
355 <?cs loop:i = #0, #14, #1 ?>
356 <?cs with:cl=classes[i] ?>
357 <?cs call:type_link(cl.type) ?>,
358 <?cs /with ?>
359 <?cs if:(#i == #14) ?>and
361 var:id ?>', null))"><?cs var:leftovers ?> others.</a>
362 <?cs /if ?>
363 <?cs /loop ?>
364 <?cs /if ?>
367 <?cs if:default != "summary" ?>style="display: none;"<?cs /if ?>
368 ><?cs
371 </div><?cs
374 <?cs include:"components.cs" ?>