com.vlsolutions.swing.tabbedpane
Class JTabbedPaneSmartIconManager

java.lang.Object
  extended by com.vlsolutions.swing.tabbedpane.JTabbedPaneSmartIconManager
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener

public class JTabbedPaneSmartIconManager
extends java.lang.Object
implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener

This class is the interface between a JTabbedPane and a smart icon.

As JTabbedPanes cannot use any JComponents as tab selectors (the access if protected and we just have a label, an icon and a tooltip), we have to rely on tricks to bypass them.

This class is used (with a mouse listener) to forward events into the smart icon. which is responsible for faking an enhanced tab selector (including label and optional buttons).


Constructor Summary
JTabbedPaneSmartIconManager(javax.swing.JTabbedPane tabbedPane)
          Constructs a new tabbedPane manager for a given JTabbedPane
 
Method Summary
 void mouseClicked(java.awt.event.MouseEvent e)
          MouseListener implementation, not used.
 void mouseDragged(java.awt.event.MouseEvent e)
          MouseMotionListener implementation, not used.
 void mouseEntered(java.awt.event.MouseEvent e)
          MouseListener implementation, not used.
 void mouseExited(java.awt.event.MouseEvent e)
          MouseListener implementation, use to track mouse behaviour inside the tab selector bounds and forward them to the appropriate smart icon.
 void mouseMoved(java.awt.event.MouseEvent e)
          MouseListener implementation, use to track mouse behaviour inside the tab selector bounds and forward them to the appropriate smart icon.
 void mousePressed(java.awt.event.MouseEvent e)
          MouseListener implementation, use to track mouse behaviour inside the tab selector bounds and forward them to the appropriate smart icon.
 void mouseReleased(java.awt.event.MouseEvent e)
          MouseListener implementation, use to track mouse behaviour inside the tab selector bounds and forward them to the appropriate smart icon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTabbedPaneSmartIconManager

public JTabbedPaneSmartIconManager(javax.swing.JTabbedPane tabbedPane)
Constructs a new tabbedPane manager for a given JTabbedPane

Method Detail

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
MouseListener implementation, use to track mouse behaviour inside the tab selector bounds and forward them to the appropriate smart icon.

Specified by:
mouseReleased in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
MouseListener implementation, use to track mouse behaviour inside the tab selector bounds and forward them to the appropriate smart icon.

Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
MouseListener implementation, use to track mouse behaviour inside the tab selector bounds and forward them to the appropriate smart icon.

Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
MouseListener implementation, use to track mouse behaviour inside the tab selector bounds and forward them to the appropriate smart icon.

Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
MouseListener implementation, not used.

Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
MouseMotionListener implementation, not used.

Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
MouseListener implementation, not used.

Specified by:
mouseClicked in interface java.awt.event.MouseListener


© Copyright 2004-2007 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications