public class DocumentLink
extends java.lang.Object
| Constructor and Description |
|---|
DocumentLink() |
DocumentLink(Range range) |
DocumentLink(Range range,
java.lang.String target) |
DocumentLink(Range range,
java.lang.String target,
java.lang.Object data) |
DocumentLink(Range range,
java.lang.String target,
java.lang.Object data,
java.lang.String tooltip) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
getData()
A data entry field that is preserved on a document link between a
DocumentLinkRequest and a DocumentLinkResolveRequest.
|
Range |
getRange()
The range this link applies to.
|
java.lang.String |
getTarget()
The uri this link points to.
|
java.lang.String |
getTooltip()
The tooltip text when you hover over this link.
|
int |
hashCode() |
void |
setData(java.lang.Object data)
A data entry field that is preserved on a document link between a
DocumentLinkRequest and a DocumentLinkResolveRequest.
|
void |
setRange(Range range)
The range this link applies to.
|
void |
setTarget(java.lang.String target)
The uri this link points to.
|
void |
setTooltip(java.lang.String tooltip)
The tooltip text when you hover over this link.
|
java.lang.String |
toString() |
public DocumentLink()
public DocumentLink(Range range)
public DocumentLink(Range range, java.lang.String target)
public DocumentLink(Range range, java.lang.String target, java.lang.Object data)
public DocumentLink(Range range, java.lang.String target, java.lang.Object data, java.lang.String tooltip)
@Pure public Range getRange()
public void setRange(Range range)
@Pure public java.lang.String getTarget()
public void setTarget(java.lang.String target)
@Pure public java.lang.String getTooltip()
If a tooltip is provided, is will be displayed in a string that includes instructions on how to trigger the link, such as `{0} (ctrl + click)`. The specific instructions vary depending on OS, user settings, and localization.
Since 3.15.0
public void setTooltip(java.lang.String tooltip)
If a tooltip is provided, is will be displayed in a string that includes instructions on how to trigger the link, such as `{0} (ctrl + click)`. The specific instructions vary depending on OS, user settings, and localization.
Since 3.15.0
@Pure public java.lang.Object getData()
Since 3.8.0
public void setData(java.lang.Object data)
Since 3.8.0
@Pure public java.lang.String toString()
toString in class java.lang.Object@Pure public boolean equals(java.lang.Object obj)
equals in class java.lang.Object@Pure public int hashCode()
hashCode in class java.lang.Object