src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/Navigation.java
equal
deleted
inserted
replaced
427 } |
427 } |
428 } |
428 } |
429 } |
429 } |
430 if (!listContents.isEmpty()) { |
430 if (!listContents.isEmpty()) { |
431 Content li = HtmlTree.LI(contents.summaryLabel); |
431 Content li = HtmlTree.LI(contents.summaryLabel); |
432 li.add(Contents.SPACE); |
432 li.add(Entity.NO_BREAK_SPACE); |
433 tree.add(li); |
433 tree.add(li); |
434 addListToNav(listContents, tree); |
434 addListToNav(listContents, tree); |
435 } |
435 } |
436 break; |
436 break; |
437 case MODULE: |
437 case MODULE: |
459 } else { |
459 } else { |
460 addContentToList(listContents, contents.navServices); |
460 addContentToList(listContents, contents.navServices); |
461 } |
461 } |
462 if (!listContents.isEmpty()) { |
462 if (!listContents.isEmpty()) { |
463 Content li = HtmlTree.LI(contents.moduleSubNavLabel); |
463 Content li = HtmlTree.LI(contents.moduleSubNavLabel); |
464 li.add(Contents.SPACE); |
464 li.add(Entity.NO_BREAK_SPACE); |
465 tree.add(li); |
465 tree.add(li); |
466 addListToNav(listContents, tree); |
466 addListToNav(listContents, tree); |
467 } |
467 } |
468 break; |
468 break; |
469 default: |
469 default: |
663 } |
663 } |
664 } |
664 } |
665 } |
665 } |
666 if (!listContents.isEmpty()) { |
666 if (!listContents.isEmpty()) { |
667 Content li = HtmlTree.LI(contents.detailLabel); |
667 Content li = HtmlTree.LI(contents.detailLabel); |
668 li.add(Contents.SPACE); |
668 li.add(Entity.NO_BREAK_SPACE); |
669 tree.add(li); |
669 tree.add(li); |
670 addListToNav(listContents, tree); |
670 addListToNav(listContents, tree); |
671 } |
671 } |
672 break; |
672 break; |
673 default: |
673 default: |
799 |
799 |
800 private void addListToNav(List<Content> listContents, Content tree) { |
800 private void addListToNav(List<Content> listContents, Content tree) { |
801 int count = 0; |
801 int count = 0; |
802 for (Content liContent : listContents) { |
802 for (Content liContent : listContents) { |
803 if (count < listContents.size() - 1) { |
803 if (count < listContents.size() - 1) { |
804 liContent.add(Contents.SPACE); |
804 liContent.add(Entity.NO_BREAK_SPACE); |
805 liContent.add("|"); |
805 liContent.add("|"); |
806 liContent.add(Contents.SPACE); |
806 liContent.add(Entity.NO_BREAK_SPACE); |
807 } |
807 } |
808 tree.add(liContent); |
808 tree.add(liContent); |
809 count++; |
809 count++; |
810 } |
810 } |
811 } |
811 } |
1003 if (top) { |
1003 if (top) { |
1004 fixedNavDiv.add(subDiv); |
1004 fixedNavDiv.add(subDiv); |
1005 fixedNavDiv.add(queue.poll()); |
1005 fixedNavDiv.add(queue.poll()); |
1006 fixedNavDiv.add(Position.TOP.endOfNav()); |
1006 fixedNavDiv.add(Position.TOP.endOfNav()); |
1007 tree.add(fixedNavDiv); |
1007 tree.add(fixedNavDiv); |
1008 HtmlTree paddingDiv = HtmlTree.DIV(HtmlStyle.navPadding, Contents.SPACE); |
1008 HtmlTree paddingDiv = HtmlTree.DIV(HtmlStyle.navPadding, Entity.NO_BREAK_SPACE); |
1009 tree.add(paddingDiv); |
1009 tree.add(paddingDiv); |
1010 addFixedNavScript(tree); |
1010 addFixedNavScript(tree); |
1011 } else { |
1011 } else { |
1012 tree.add(subDiv); |
1012 tree.add(subDiv); |
1013 tree.add(queue.poll()); |
1013 tree.add(queue.poll()); |