public class ToolTipInfo
extends java.lang.Object
RSyntaxTextArea
instance
has FocusableTip
s enabled, and the user clicks on a hyperlink in
the tool tip, the specified HyperlinkListener
will be called.构造器和说明 |
---|
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.
|
限定符和类型 | 方法和说明 |
---|---|
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()
FocusableTip
s.
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.