guk.editIM
Class Hyperactive

java.lang.Object
  |
  +--guk.editIM.Hyperactive
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.HyperlinkListener

class Hyperactive
extends java.lang.Object
implements javax.swing.event.HyperlinkListener

taken from an example in the Java Swing documentation (otherwise, I would not have been handling frames here...). Added some ToolTips with current / touched URL myself.


Field Summary
(package private)  javax.swing.JComponent compo
          The component which bears our ToolTip.
(package private)  java.lang.String lastURL
          The currently displaying URL.
 
Constructor Summary
Hyperactive(javax.swing.JComponent target)
          The constructor needs to know a target, so that the object can update the target ToolTip when the user clicks on or points at an hyperlink.
 
Method Summary
 void hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
          Whenever the user clicks on, points at, or stops to point at an hyperlink, this is triggered.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

compo

javax.swing.JComponent compo
The component which bears our ToolTip.

lastURL

java.lang.String lastURL
The currently displaying URL.
Constructor Detail

Hyperactive

public Hyperactive(javax.swing.JComponent target)
The constructor needs to know a target, so that the object can update the target ToolTip when the user clicks on or points at an hyperlink.
Parameters:
target - Something that can have a ToolTip.
Method Detail

hyperlinkUpdate

public void hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
Whenever the user clicks on, points at, or stops to point at an hyperlink, this is triggered.
Specified by:
hyperlinkUpdate in interface javax.swing.event.HyperlinkListener
Parameters:
e - The hyperlink event which tells us which URL the user touched or triggered and what he did with that hyperlink.