Link.setText

Sets the receiver's text. <p> The string can contain both regular text and hyperlinks. A hyperlink is delimited by an anchor tag, &lt;A&gt; and &lt;/A&gt;. Within an anchor, a single HREF attribute is supported. When a hyperlink is selected, the text field of the selection event contains either the text of the hyperlink or the value of its HREF, if one was specified. In the rare case of identical hyperlinks within the same string, the HREF tag can be used to distinguish between them. The string may include the mnemonic character and line delimiters. </p>

@param string the new text

@exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> </ul>

class Link
void
setText
(
String string
)

Meta