|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.clackrouter.jgraph.utils.HTMLPane.CustomLinkHandler
protected class HTMLPane.CustomLinkHandler
Handles URL hyperlink events and provides status information.
Field Summary | |
---|---|
protected java.lang.String |
hoveredURLString
|
protected boolean |
isHovering
|
protected javax.swing.JEditorPane |
pane
|
Constructor Summary | |
---|---|
HTMLPane.CustomLinkHandler(javax.swing.JEditorPane inpane)
Constructor for the CustomLinkHandler object |
Method Summary | |
---|---|
java.lang.String |
getHoveredURL()
Gets the URL being hovered over. |
void |
hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
Launch browser if hyperlink is clicked by user. |
boolean |
isHoveringOverHyperlink()
Determines if current mouse location is hovering over a hyperlink. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.swing.JEditorPane pane
protected boolean isHovering
protected java.lang.String hoveredURLString
Constructor Detail |
---|
public HTMLPane.CustomLinkHandler(javax.swing.JEditorPane inpane)
inpane
- Description of ParameterMethod Detail |
---|
public boolean isHoveringOverHyperlink()
CustomLinkHandler
is NOT notified of hyperlink
events if editing is enabled by defintion in JEditorPane. In otherwords,
when HTML code is being displayed, then hyperlink tracking is not occuring.
public java.lang.String getHoveredURL()
null
if not currently hovering over a URLpublic void hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
hyperlinkUpdate
in interface javax.swing.event.HyperlinkListener
e
- event passed by source
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |