APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.javadoc.internal.doclets.formats.html.markup

public Class Links

extends Object
Class Inheritance
Imports
jdk.javadoc.internal.doclets.toolkit.util.DocLink, .DocPath, jdk.javadoc.internal.html.Content, .HtmlAttr, .HtmlId, .HtmlStyle, .HtmlTree, .Text

Factory for HTML A elements: links (with a href attribute).

Field Summary

Modifier and TypeField and Description
private final DocPath

Constructor Summary

AccessConstructor and Description

Method Summary

Modifier and TypeMethod and Description
public Content

Returns:

the link or just the label
createLinkOrLabel
(HtmlId
the position of the link in the file
id
,
Content
the content for the link
label
,
boolean
whether to create a link or just return the label
link
)

Creates a link of the form <a href="#id">label</a> if link is true, or else just returns label.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fileback to summary
private final DocPath file

Constructor Detail

Method Detail

createLinkOrLabelback to summary
public Content createLinkOrLabel(HtmlId id, Content label, boolean link)

Creates a link of the form <a href="#id">label</a> if link is true, or else just returns label.

Parameters
id:HtmlId

the position of the link in the file

label:Content

the content for the link

link:boolean

whether to create a link or just return the label

Returns:Content

the link or just the label