org.crosswire.bibledesktop.display.basic
Class ActiveURITip
java.lang.Object
java.awt.event.MouseAdapter
org.crosswire.bibledesktop.display.basic.ActiveURITip
- All Implemented Interfaces:
- MouseListener, MouseMotionListener, MouseWheelListener, EventListener, URIEventListener
public class ActiveURITip
- extends MouseAdapter
- implements URIEventListener
How it works: 1. When mouse clicked with the right button on a link, show the
popup tip. 2. Hide the tip when clicked anywhere else.
- Author:
- Yingjie Lan [lanyjie at yahoo dot com]
- See Also:
for license details. The copyright to this program is
held by it's authors.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
owner
private JTextPane owner
lazykit
private LazyHTMLEditorKit lazykit
txtView
private JTextPane txtView
scrView
private JScrollPane scrView
title
private TitledBorder title
popup
private Popup popup
lastx
private int lastx
lasty
private int lasty
lastb
private int lastb
converter
private org.crosswire.common.xml.Converter converter
ActiveURITip
public ActiveURITip(JTextPane own,
Dimension dim)
updateText
public void updateText(URIEvent event)
showTip
void showTip()
hideTip
void hideTip()
interested
boolean interested(URIEvent ev)
- Parameters:
ev
- if we are interested in this event
activateURI
public void activateURI(URIEvent ev)
- Description copied from interface:
URIEventListener
- This method is called to indicate that an URI can be processed.
- Specified by:
activateURI
in interface URIEventListener
- Parameters:
ev
- Describes the URI
enterURI
public void enterURI(URIEvent ev)
- Description copied from interface:
URIEventListener
- This method is called to indicate that the mouse has entered the URI.
- Specified by:
enterURI
in interface URIEventListener
- Parameters:
ev
- Describes the URI
leaveURI
public void leaveURI(URIEvent ev)
- Description copied from interface:
URIEventListener
- This method is called to indicate that the mouse has left the URI.
- Specified by:
leaveURI
in interface URIEventListener
- Parameters:
ev
- Describes the URI
mousePressed
public void mousePressed(MouseEvent e)
- Specified by:
mousePressed
in interface MouseListener
- Overrides:
mousePressed
in class MouseAdapter