com.sun.tools.doclets.internal.toolkit.util.DocLink Java Examples

The following examples show how to use com.sun.tools.doclets.internal.toolkit.util.DocLink. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HtmlDocWriter.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public Content getHyperLink(DocLink link,
                           Content label, boolean strong,
                           String stylename, String title, String target) {
    Content body = label;
    if (strong) {
        body = HtmlTree.SPAN(HtmlStyle.typeNameLink, body);
    }
    if (stylename != null && stylename.length() != 0) {
        HtmlTree t = new HtmlTree(HtmlTag.FONT, body);
        t.addAttr(HtmlAttr.CLASS, stylename);
        body = t;
    }
    HtmlTree l = HtmlTree.A(link.toString(), body);
    if (title != null && title.length() != 0) {
        l.addAttr(HtmlAttr.TITLE, title);
    }
    if (target != null && target.length() != 0) {
        l.addAttr(HtmlAttr.TARGET, target);
    }
    return l;
}
 
Example #2
Source File: HtmlDocWriter.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public Content getHyperLink(DocLink link,
                           Content label, boolean strong,
                           String stylename, String title, String target) {
    Content body = label;
    if (strong) {
        body = HtmlTree.SPAN(HtmlStyle.typeNameLink, body);
    }
    if (stylename != null && stylename.length() != 0) {
        HtmlTree t = new HtmlTree(HtmlTag.FONT, body);
        t.addAttr(HtmlAttr.CLASS, stylename);
        body = t;
    }
    HtmlTree l = HtmlTree.A(link.toString(), body);
    if (title != null && title.length() != 0) {
        l.addAttr(HtmlAttr.TITLE, title);
    }
    if (target != null && target.length() != 0) {
        l.addAttr(HtmlAttr.TARGET, target);
    }
    return l;
}
 
Example #3
Source File: HtmlDocWriter.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public Content getHyperLink(DocLink link,
                           Content label, boolean strong,
                           String stylename, String title, String target) {
    Content body = label;
    if (strong) {
        body = HtmlTree.SPAN(HtmlStyle.typeNameLink, body);
    }
    if (stylename != null && stylename.length() != 0) {
        HtmlTree t = new HtmlTree(HtmlTag.FONT, body);
        t.addAttr(HtmlAttr.CLASS, stylename);
        body = t;
    }
    HtmlTree l = HtmlTree.A(link.toString(), body);
    if (title != null && title.length() != 0) {
        l.addAttr(HtmlAttr.TITLE, title);
    }
    if (target != null && target.length() != 0) {
        l.addAttr(HtmlAttr.TARGET, target);
    }
    return l;
}
 
Example #4
Source File: HtmlDocWriter.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public Content getHyperLink(DocLink link,
                           Content label, boolean strong,
                           String stylename, String title, String target) {
    Content body = label;
    if (strong) {
        body = HtmlTree.SPAN(HtmlStyle.typeNameLink, body);
    }
    if (stylename != null && stylename.length() != 0) {
        HtmlTree t = new HtmlTree(HtmlTag.FONT, body);
        t.addAttr(HtmlAttr.CLASS, stylename);
        body = t;
    }
    HtmlTree l = HtmlTree.A(link.toString(), body);
    if (title != null && title.length() != 0) {
        l.addAttr(HtmlAttr.TITLE, title);
    }
    if (target != null && target.length() != 0) {
        l.addAttr(HtmlAttr.TARGET, target);
    }
    return l;
}
 
Example #5
Source File: HtmlDocWriter.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public Content getHyperLink(DocLink link,
                           Content label, boolean strong,
                           String stylename, String title, String target) {
    Content body = label;
    if (strong) {
        body = HtmlTree.SPAN(HtmlStyle.typeNameLink, body);
    }
    if (stylename != null && stylename.length() != 0) {
        HtmlTree t = new HtmlTree(HtmlTag.FONT, body);
        t.addAttr(HtmlAttr.CLASS, stylename);
        body = t;
    }
    HtmlTree l = HtmlTree.A(link.toString(), body);
    if (title != null && title.length() != 0) {
        l.addAttr(HtmlAttr.TITLE, title);
    }
    if (target != null && target.length() != 0) {
        l.addAttr(HtmlAttr.TARGET, target);
    }
    return l;
}
 
Example #6
Source File: HtmlDocWriter.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public Content getHyperLink(DocLink link,
                           Content label, boolean strong,
                           String stylename, String title, String target) {
    Content body = label;
    if (strong) {
        body = HtmlTree.SPAN(HtmlStyle.typeNameLink, body);
    }
    if (stylename != null && stylename.length() != 0) {
        HtmlTree t = new HtmlTree(HtmlTag.FONT, body);
        t.addAttr(HtmlAttr.CLASS, stylename);
        body = t;
    }
    HtmlTree l = HtmlTree.A(link.toString(), body);
    if (title != null && title.length() != 0) {
        l.addAttr(HtmlAttr.TITLE, title);
    }
    if (target != null && target.length() != 0) {
        l.addAttr(HtmlAttr.TARGET, target);
    }
    return l;
}
 
Example #7
Source File: HtmlDocWriter.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public Content getHyperLink(DocLink link,
                           Content label, boolean strong,
                           String stylename, String title, String target) {
    Content body = label;
    if (strong) {
        body = HtmlTree.SPAN(HtmlStyle.typeNameLink, body);
    }
    if (stylename != null && stylename.length() != 0) {
        HtmlTree t = new HtmlTree(HtmlTag.FONT, body);
        t.addAttr(HtmlAttr.CLASS, stylename);
        body = t;
    }
    HtmlTree l = HtmlTree.A(link.toString(), body);
    if (title != null && title.length() != 0) {
        l.addAttr(HtmlAttr.TITLE, title);
    }
    if (target != null && target.length() != 0) {
        l.addAttr(HtmlAttr.TARGET, target);
    }
    return l;
}
 
Example #8
Source File: HtmlDocWriter.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public Content getHyperLink(DocLink link,
                           Content label, boolean strong,
                           String stylename, String title, String target) {
    Content body = label;
    if (strong) {
        body = HtmlTree.SPAN(HtmlStyle.typeNameLink, body);
    }
    if (stylename != null && stylename.length() != 0) {
        HtmlTree t = new HtmlTree(HtmlTag.FONT, body);
        t.addAttr(HtmlAttr.CLASS, stylename);
        body = t;
    }
    HtmlTree l = HtmlTree.A(link.toString(), body);
    if (title != null && title.length() != 0) {
        l.addAttr(HtmlAttr.TITLE, title);
    }
    if (target != null && target.length() != 0) {
        l.addAttr(HtmlAttr.TARGET, target);
    }
    return l;
}
 
Example #9
Source File: HtmlDocWriter.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public Content getHyperLink(DocLink link,
        Content label, String title, String target) {
    HtmlTree anchor = HtmlTree.A(link.toString(), label);
    if (title != null && title.length() != 0) {
        anchor.addAttr(HtmlAttr.TITLE, title);
    }
    if (target != null && target.length() != 0) {
        anchor.addAttr(HtmlAttr.TARGET, target);
    }
    return anchor;
}
 
Example #10
Source File: HtmlDocWriter.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public Content getHyperLink(DocLink link,
        Content label, String title, String target) {
    HtmlTree anchor = HtmlTree.A(link.toString(), label);
    if (title != null && title.length() != 0) {
        anchor.addAttr(HtmlAttr.TITLE, title);
    }
    if (target != null && target.length() != 0) {
        anchor.addAttr(HtmlAttr.TARGET, target);
    }
    return anchor;
}
 
Example #11
Source File: HtmlDocWriter.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public Content getHyperLink(DocLink link,
        Content label, String title, String target) {
    HtmlTree anchor = HtmlTree.A(link.toString(), label);
    if (title != null && title.length() != 0) {
        anchor.addAttr(HtmlAttr.TITLE, title);
    }
    if (target != null && target.length() != 0) {
        anchor.addAttr(HtmlAttr.TARGET, target);
    }
    return anchor;
}
 
Example #12
Source File: HtmlDocWriter.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public Content getHyperLink(DocLink link,
        Content label, String title, String target) {
    HtmlTree anchor = HtmlTree.A(link.toString(), label);
    if (title != null && title.length() != 0) {
        anchor.addAttr(HtmlAttr.TITLE, title);
    }
    if (target != null && target.length() != 0) {
        anchor.addAttr(HtmlAttr.TARGET, target);
    }
    return anchor;
}
 
Example #13
Source File: HtmlDocWriter.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public Content getHyperLink(DocLink link,
        Content label, String title, String target) {
    HtmlTree anchor = HtmlTree.A(link.toString(), label);
    if (title != null && title.length() != 0) {
        anchor.addAttr(HtmlAttr.TITLE, title);
    }
    if (target != null && target.length() != 0) {
        anchor.addAttr(HtmlAttr.TARGET, target);
    }
    return anchor;
}
 
Example #14
Source File: HtmlDocWriter.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public Content getHyperLink(DocLink link,
        Content label, String title, String target) {
    HtmlTree anchor = HtmlTree.A(link.toString(), label);
    if (title != null && title.length() != 0) {
        anchor.addAttr(HtmlAttr.TITLE, title);
    }
    if (target != null && target.length() != 0) {
        anchor.addAttr(HtmlAttr.TARGET, target);
    }
    return anchor;
}
 
Example #15
Source File: HtmlDocWriter.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public Content getHyperLink(DocLink link,
        Content label, String title, String target) {
    HtmlTree anchor = HtmlTree.A(link.toString(), label);
    if (title != null && title.length() != 0) {
        anchor.addAttr(HtmlAttr.TITLE, title);
    }
    if (target != null && target.length() != 0) {
        anchor.addAttr(HtmlAttr.TARGET, target);
    }
    return anchor;
}
 
Example #16
Source File: HtmlDocWriter.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public Content getHyperLink(DocLink link,
        Content label, String title, String target) {
    HtmlTree anchor = HtmlTree.A(link.toString(), label);
    if (title != null && title.length() != 0) {
        anchor.addAttr(HtmlAttr.TITLE, title);
    }
    if (target != null && target.length() != 0) {
        anchor.addAttr(HtmlAttr.TARGET, target);
    }
    return anchor;
}
 
Example #17
Source File: HtmlDocWriter.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public Content getHyperLink(DocLink link, Content label) {
    return getHyperLink(link, label, "", "");
}
 
Example #18
Source File: HtmlDocWriter.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public Content getHyperLink(DocLink link, Content label) {
    return getHyperLink(link, label, "", "");
}
 
Example #19
Source File: HtmlDocWriter.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public Content getHyperLink(DocPath link,
                           Content label, boolean strong,
                           String stylename, String title, String target) {
    return getHyperLink(new DocLink(link), label, strong,
            stylename, title, target);
}
 
Example #20
Source File: HtmlDocWriter.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public Content getHyperLink(DocLink link, Content label) {
    return getHyperLink(link, label, "", "");
}
 
Example #21
Source File: HtmlDocWriter.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public Content getHyperLink(DocLink link, Content label) {
    return getHyperLink(link, label, "", "");
}
 
Example #22
Source File: HtmlDocWriter.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public Content getHyperLink(DocPath link,
                           Content label, boolean strong,
                           String stylename, String title, String target) {
    return getHyperLink(new DocLink(link), label, strong,
            stylename, title, target);
}
 
Example #23
Source File: HtmlDocWriter.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public Content getHyperLink(DocPath link,
                           Content label, boolean strong,
                           String stylename, String title, String target) {
    return getHyperLink(new DocLink(link), label, strong,
            stylename, title, target);
}
 
Example #24
Source File: HtmlDocWriter.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public Content getHyperLink(DocPath link,
                           Content label, boolean strong,
                           String stylename, String title, String target) {
    return getHyperLink(new DocLink(link), label, strong,
            stylename, title, target);
}
 
Example #25
Source File: HtmlDocWriter.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public Content getHyperLink(DocLink link, Content label) {
    return getHyperLink(link, label, "", "");
}
 
Example #26
Source File: HtmlDocWriter.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public Content getHyperLink(DocPath link,
                           Content label, boolean strong,
                           String stylename, String title, String target) {
    return getHyperLink(new DocLink(link), label, strong,
            stylename, title, target);
}
 
Example #27
Source File: HtmlDocWriter.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public Content getHyperLink(DocLink link, Content label) {
    return getHyperLink(link, label, "", "");
}
 
Example #28
Source File: HtmlDocWriter.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public Content getHyperLink(DocPath link,
                           Content label, boolean strong,
                           String stylename, String title, String target) {
    return getHyperLink(new DocLink(link), label, strong,
            stylename, title, target);
}
 
Example #29
Source File: HtmlDocWriter.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public Content getHyperLink(DocLink link, Content label) {
    return getHyperLink(link, label, "", "");
}
 
Example #30
Source File: HtmlDocWriter.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public Content getHyperLink(DocPath link,
                           Content label, boolean strong,
                           String stylename, String title, String target) {
    return getHyperLink(new DocLink(link), label, strong,
            stylename, title, target);
}