xref: /aosp_15_r20/external/jackson-annotations/docs/javadoc/2.11/script.js (revision 2bf6642460ffb10303bd46207a4555f36d9e5945)
1*2bf66424SCole Faustfunction show(type)
2*2bf66424SCole Faust{
3*2bf66424SCole Faust    count = 0;
4*2bf66424SCole Faust    for (var key in methods) {
5*2bf66424SCole Faust        var row = document.getElementById(key);
6*2bf66424SCole Faust        if ((methods[key] &  type) != 0) {
7*2bf66424SCole Faust            row.style.display = '';
8*2bf66424SCole Faust            row.className = (count++ % 2) ? rowColor : altColor;
9*2bf66424SCole Faust        }
10*2bf66424SCole Faust        else
11*2bf66424SCole Faust            row.style.display = 'none';
12*2bf66424SCole Faust    }
13*2bf66424SCole Faust    updateTabs(type);
14*2bf66424SCole Faust}
15*2bf66424SCole Faust
16*2bf66424SCole Faustfunction updateTabs(type)
17*2bf66424SCole Faust{
18*2bf66424SCole Faust    for (var value in tabs) {
19*2bf66424SCole Faust        var sNode = document.getElementById(tabs[value][0]);
20*2bf66424SCole Faust        var spanNode = sNode.firstChild;
21*2bf66424SCole Faust        if (value == type) {
22*2bf66424SCole Faust            sNode.className = activeTableTab;
23*2bf66424SCole Faust            spanNode.innerHTML = tabs[value][1];
24*2bf66424SCole Faust        }
25*2bf66424SCole Faust        else {
26*2bf66424SCole Faust            sNode.className = tableTab;
27*2bf66424SCole Faust            spanNode.innerHTML = "<a href=\"javascript:show("+ value + ");\">" + tabs[value][1] + "</a>";
28*2bf66424SCole Faust        }
29*2bf66424SCole Faust    }
30*2bf66424SCole Faust}
31