public class ToolTipInfo
extends java.lang.Object
RSyntaxTextArea instance
has FocusableTips enabled,
and the user clicks on a hyperlink in the tool tip, the specified
HyperlinkListener will be called.| Constructor and Description |
|---|
ToolTipInfo(java.lang.String text,
javax.swing.event.HyperlinkListener listener)
Constructor.
|
ToolTipInfo(java.lang.String text,
javax.swing.event.HyperlinkListener l,
java.net.URL imageBase)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
javax.swing.event.HyperlinkListener |
getHyperlinkListener()
Returns the listener to call when hyperlinks are clicked in the tool
tip.
|
java.net.URL |
getImageBase()
Returns the base URL that any images in the HTML tool tip live in.
|
java.lang.String |
getToolTipText()
Returns the tool tip text to display.
|
public ToolTipInfo(java.lang.String text,
javax.swing.event.HyperlinkListener listener)
text - The tool tip text, or null for none.listener - The hyperlink listener, or null for none.public ToolTipInfo(java.lang.String text,
javax.swing.event.HyperlinkListener l,
java.net.URL imageBase)
text - The tool tip text, or null for none.l - The hyperlink listener, or null for none.imageBase - The base URL for images in the HTML text,
or null for the default.public javax.swing.event.HyperlinkListener getHyperlinkListener()
null for none.public java.net.URL getImageBase()
FocusableTips.
Note that if what getToolTipText() returns isn't HTML, this
value is effectively ignored.null for the default.public java.lang.String getToolTipText()
null for none.