Class DefaultHyperlinkListener

  extended by com.inet.editor.DefaultHyperlinkListener
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.HyperlinkListener

public class DefaultHyperlinkListener
extends java.lang.Object
implements javax.swing.event.HyperlinkListener

The default HyperlinkListener of the BaseEditor

Constructor Summary
DefaultHyperlinkListener(BaseEditor editor)
          Create a new listener for an editor
Method Summary
 void hyperlinkUpdate(javax.swing.event.HyperlinkEvent ev)
 void setCustomHyperlinkHandler(HyperlinkHandler customHandler)
          Set the handler for this instance.
static void setDefaultHyperlinkHandler(HyperlinkHandler defaultHandler)
          Sets the default hyperlink handler for ALL DefaultHyperlinkListener.
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public DefaultHyperlinkListener(BaseEditor editor)
Create a new listener for an editor

editor - the editor, which will be affected by this handler
Method Detail


public static void setDefaultHyperlinkHandler(HyperlinkHandler defaultHandler)
Sets the default hyperlink handler for ALL DefaultHyperlinkListener. The default handler will be executed after the instance custom hander and before the internal code of this a listener

defaultHandler - the default handler, may be null to reset them


public void setCustomHyperlinkHandler(HyperlinkHandler customHandler)
Set the handler for this instance. The handler will be the fist code to be executed when this listener receives an event. It may interrupt the default behavior of this listener.

customHandler - the instance custom handler, may be null to reset


public void hyperlinkUpdate(javax.swing.event.HyperlinkEvent ev)

Specified by:
hyperlinkUpdate in interface javax.swing.event.HyperlinkListener