com.vlsolutions.swing.tabbedpane

Class JTabbedPaneSmartIconManager

public class JTabbedPaneSmartIconManager extends Object implements MouseListener, 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(JTabbedPane tabbedPane)
Constructs a new tabbedPane manager for a given JTabbedPane
Method Summary
voidmouseClicked(MouseEvent e)
MouseListener implementation, not used.
voidmouseDragged(MouseEvent e)
MouseMotionListener implementation, not used.
voidmouseEntered(MouseEvent e)
MouseListener implementation, not used.
voidmouseExited(MouseEvent e)
MouseListener implementation, use to track mouse behaviour inside the tab selector bounds and forward them to the appropriate smart icon.
voidmouseMoved(MouseEvent e)
MouseListener implementation, use to track mouse behaviour inside the tab selector bounds and forward them to the appropriate smart icon.
voidmousePressed(MouseEvent e)
MouseListener implementation, use to track mouse behaviour inside the tab selector bounds and forward them to the appropriate smart icon.
voidmouseReleased(MouseEvent e)
MouseListener implementation, use to track mouse behaviour inside the tab selector bounds and forward them to the appropriate smart icon.

Constructor Detail

JTabbedPaneSmartIconManager

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

Method Detail

mouseClicked

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

mouseDragged

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

mouseEntered

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

mouseExited

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

mouseMoved

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

mousePressed

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

mouseReleased

public void mouseReleased(MouseEvent e)
MouseListener implementation, use to track mouse behaviour inside the tab selector bounds and forward them to the appropriate smart icon.
© Copyright 2004-2005 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications