net.sourceforge.jpotpourri.gui.flexi
Class ViewTooltips
java.lang.Object
  
java.awt.event.MouseAdapter
      
net.sourceforge.jpotpourri.gui.flexi.ViewTooltips
- All Implemented Interfaces: 
 - java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener
 
public final class ViewTooltips
- extends java.awt.event.MouseAdapter
- implements java.awt.event.MouseMotionListener
  
Displays pseudo-tooltips for tree and list views which don't have enough
 space.  This class is not NB specific, and can be used with any
 JTree or JList.
- Author:
 
  - Tim Boudreau; http://javabyexample.wisdomplug.com/java-concepts/
                                34-core-java/59-tips-and-tricks-for-jtree-jlist-and-jcombobox-part-i.html
 
| 
Method Summary | 
 void | 
mouseDragged(java.awt.event.MouseEvent e)
 
            | 
 void | 
mouseEntered(java.awt.event.MouseEvent e)
 
            | 
 void | 
mouseExited(java.awt.event.MouseEvent e)
 
            | 
 void | 
mouseMoved(java.awt.event.MouseEvent e)
 
            | 
static void | 
register(javax.swing.JList list)
 
          Register a child of a JScrollPane (only JList or JTree supported 
 for now) which should show helper tooltips. | 
static void | 
register(javax.swing.JTree tree)
 
            | 
static void | 
unregister(javax.swing.JComponent comp)
 
          Unregister a child of a JScrollPane (only JList or JTree supported 
 for now) which should show helper tooltips. | 
 
| Methods inherited from class java.awt.event.MouseAdapter | 
mouseClicked, mousePressed, mouseReleased | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
register
public static void register(javax.swing.JList list)
- Register a child of a JScrollPane (only JList or JTree supported 
 for now) which should show helper tooltips.  Should be called
 from the component's addNotify() method.
 
 
 
register
public static void register(javax.swing.JTree tree)
 
 
unregister
public static void unregister(javax.swing.JComponent comp)
- Unregister a child of a JScrollPane (only JList or JTree supported 
 for now) which should show helper tooltips. Should be called
 from the component's removeNotify() method.
 
 
 
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent e)
- Specified by:
 mouseMoved in interface java.awt.event.MouseMotionListener
 
 
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)
- Specified by:
 mouseDragged in interface java.awt.event.MouseMotionListener
 
 
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
- Specified by:
 mouseEntered in interface java.awt.event.MouseListener- Overrides:
 mouseEntered in class java.awt.event.MouseAdapter
 
 
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Specified by:
 mouseExited in interface java.awt.event.MouseListener- Overrides:
 mouseExited in class java.awt.event.MouseAdapter
 
 
Copyright © 2008. All Rights Reserved.