Add summary details to the navigation bar.

@param subDiv the content tree to which the summary detail links will be added
336189
protected void addSummaryDetailLinks(Content subDiv) {
        try {
            Content div = HtmlTree.DIV(getNavSummaryLinks());
            div.addContent(getNavDetailLinks());
            subDiv.addContent(div);
        } catch (Exception e) {
            e.printStackTrace();
            throw new DocletAbortException(e);
        }
    }
162486
protected void addNavSummaryLink(SortedSet<? extends Element> members,
            VisibleMemberMap visibleMemberMap, Content liNav) {
        if (!members.isEmpty()) {
            liNav.addContent(getNavSummaryLink(null, true));
            return;
        }

        TypeElement superClass = utils.getSuperClass(typeElement);
        while (superClass != null) {
            if (visibleMemberMap.hasMembers(superClass)) {
                liNav.addContent(getNavSummaryLink(superClass, true));
                return;
            }
            superClass = utils.getSuperClass(superClass);
        }
        liNav.addContent(getNavSummaryLink(null, false));
    }
364310
def add_subsegment(self, subsegment):
        
        self._check_ended()
        subsegment.parent_id = self.id
        self.subsegments.append(subsegment)
207356
public function add_menu() {
		if ( !isset( $this->page_id ) && !isset( $this->title ) && !isset( $this->name ) && !isset( $this->parent ) && !isset( $this->cap ) ) {
			return;
		}

		if ( $this->parent ) {	
			$this->screen_name = add_submenu_page( $this->parent, $this->title, $this->name, $this->cap, $this->page_id, array( &$this, 'render_page' ) );
		} else {
			$this->screen_name = add_menu_page( $this->title, $this->name, $this->cap, $this->page_id, array( &$this, 'render_page' ) );	
		}
	}
963522
public void addMemberTree(Content memberSummaryTree, Content memberTree) {
        if (configuration.allowTag(HtmlTag.SECTION)) {
            HtmlTree htmlTree = HtmlTree.SECTION(getMemberTree(memberTree));
            memberSummaryTree.addContent(htmlTree);
        } else {
            memberSummaryTree.addContent(getMemberTree(memberTree));
        }
    }
982971
@Override
    protected void addNavigationBarFooter(Content body) {
        Content htmlTree = (configuration.allowTag(HtmlTag.FOOTER))
                ? HtmlTree.FOOTER()
                : body;
        addNavLinks(false, htmlTree);
        addBottom(htmlTree);
        if (configuration.allowTag(HtmlTag.FOOTER)) {
            body.addContent(htmlTree);
        }
    }
922726
@Override
    protected void addOverview(Content body) {
        if (configuration.allowTag(HtmlTag.MAIN)) {
            body.addContent(htmlTree);
        }
    }
774672
function (tplDiv) {
            var params = this._cfg;
            /* check parameter: */
            this.$assert(320, tplDiv != null);
            /* must not be already linked: */
            this.$assert(322, params.tplDiv == null);
            /* must already have a markup waiting to be linked: */
            this.$assert(324, this._mainSection != null);
            params.tplDiv = tplDiv;
            params.div = (tplDiv.parentNode) ? tplDiv.parentNode : null;
            this.__addDebugInfo(tplDiv);
            this.insertSection(this._mainSection, true);
            // getMarkup + linkToPreviousMarkup is in fact doing the first refresh
            // so we call $afterRefresh here as well
            this.afterRefresh();
            this.$raiseEvent({
                name : "SectionRefreshed",
                sectionID : null
            });
        }
1227456
protected void addSubNavEntry(final NavEntry navEntry) {

        Button button = m_rootLayout.addSubNavEntry(navEntry);
        button.addClickListener(new ClickListener() {

            private static final long serialVersionUID = 1L;

            public void buttonClick(ClickEvent event) {

                openSubView(navEntry.getTargetState(), true);
            }
        });
    }
523764
public void addGridDetail()
    {
        GridBagLayout gridbag = new GridBagLayout();
        GridBagConstraints c = new GridBagConstraints();
        m_panelGrid.setLayout(gridbag);

        this.addGridDetailItems(this.getModel(), gridbag, c);
    }
822526
private IncludeAllPageAndToc addPaginationInformation(List<IncludeAllPageWithOutput> pages, boolean includeChildSummary) {

    List<Header> globalToc = new ArrayList<>();

    List<IncludeAllPageWithPagination> processedResources = new ArrayList<>();
    for (int i = 0; i < pages.size(); i++) {
      if (!pages.get(i).files.isEmpty()) {

        IncludeAllPageWithOutput current = pages.get(i);
        
        int summaryPositionBegin = globalToc.size();
        
        globalToc.addAll(current.summary);
        
        int includedChildCount = 0;
        if(includeChildSummary) {
          for (int j = i+1; j < pages.size(); j++) {
            if(pages.get(j).depth > current.depth) {
              includedChildCount += pages.get(j).summary.size();
            } else {
              break;
            }
          }
        }
        
        int summaryPositionEnd = globalToc.size() + includedChildCount;

        String previousPageUrl = null;
        String previousPageTitle = null;
        String nextPageUrl = null;
        String nextPageTitle = null;
        
        
        List<Link> breadcrumbs = extractBreadcrumbs(pages, i, current.outputPath);
        
        if (i > 0) {
          previousPageUrl = PathUtils.relativePathTo(pages.get(i - 1).outputPath, current.outputPath);
          previousPageTitle = pages.get(i - 1).title.orElse(null);
        }
        if (i < pages.size() - 1) {
          nextPageUrl = PathUtils.relativePathTo(pages.get(i + 1).outputPath, current.outputPath);
          nextPageTitle = pages.get(i + 1).title.orElse(null);
        }

        Pagination pagination = new Pagination(i + 1, pages.size(), current.depth, new Link(previousPageUrl, 
            previousPageTitle), new Link(nextPageUrl, nextPageTitle), current.title.orElse(null), breadcrumbs);
        processedResources.add(new IncludeAllPageWithPagination(current, pagination, summaryPositionBegin, summaryPositionEnd));
      }
    }
    return new IncludeAllPageAndToc(processedResources, addPositionsToGlobalToc(globalToc));
  }
1072353
public void addSubPath(Coordinate[] coordinates, boolean closed) {
		subPaths.add(new SubPath(coordinates, closed));
		updateCoordinates();

	}
833743
protected void addDescription(TypeElement typeElement, Content dlTree, SearchIndexItem si) {
        Content link = getLink(new LinkInfoImpl(configuration,
                        LinkInfoImpl.Kind.INDEX, typeElement).strong(true));
        si.setContainingPackage(utils.getPackageName(utils.containingPackage(typeElement)));
        si.setLabel(utils.getSimpleName(typeElement));
        si.setCategory(resources.getText("doclet.Types"));
        Content dt = HtmlTree.DT(link);
        dt.addContent(" - ");
        addClassInfo(typeElement, dt);
        dlTree.addContent(dt);
        Content dd = new HtmlTree(HtmlTag.DD);
        addComment(typeElement, dd);
        dlTree.addContent(dd);
    }
1260995
protected void addIndexComment(Element member, List<? extends DocTree> firstSentenceTags,
            Content tdSummary) {
        List<? extends DocTree> deprs = utils.getBlockTags(member, DocTree.Kind.DEPRECATED);
        Content div;
        if (utils.isDeprecated(member)) {
            Content deprLabel = HtmlTree.SPAN(HtmlStyle.deprecatedLabel, getDeprecatedPhrase(member));
            div = HtmlTree.DIV(HtmlStyle.block, deprLabel);
            div.addContent(Contents.SPACE);
            if (!deprs.isEmpty()) {
                addInlineDeprecatedComment(member, deprs.get(0), div);
            }
            tdSummary.addContent(div);
            return;
        } else {
            Element te = member.getEnclosingElement();
            if (te != null &&  utils.isTypeElement(te) && utils.isDeprecated(te)) {
                Content deprLabel = HtmlTree.SPAN(HtmlStyle.deprecatedLabel, getDeprecatedPhrase(te));
                div = HtmlTree.DIV(HtmlStyle.block, deprLabel);
                div.addContent(Contents.SPACE);
                tdSummary.addContent(div);
            }
        }
        addSummaryComment(member, firstSentenceTags, tdSummary);
    }
922480
public void setSubResources(java.util.Collection<SubResourceSummary> subResources) {
        if (subResources == null) {
            this.subResources = null;
            return;
        }

        this.subResources = new java.util.ArrayList<SubResourceSummary>(subResources);
    }
906337
public Button addSubNavEntry(final NavEntry navEntry) {

        Button button = CmsDefaultAppButtonProvider.createIconButton(
            navEntry.getName(),
            navEntry.getDescription(),
            navEntry.getIcon());
        m_subNav.addComponent(button);
        return button;
    }
312169
public void buildSummary(XMLNode node, Content packageContentTree) {
        Content summaryContentTree = packageWriter.getSummaryHeader();
        buildChildren(node, summaryContentTree);
        packageContentTree.addContent(summaryContentTree);
    }