com.vlsolutions.swing.tabbedpane

Class JTabbedPaneSmartIconManager

Implemented Interfaces:
MouseListener, MouseMotionListener

public class JTabbedPaneSmartIconManager
extends java.lang.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

void
mouseClicked(MouseEvent e)
MouseListener implementation, not used.
void
mouseDragged(MouseEvent e)
MouseMotionListener implementation, not used.
void
mouseEntered(MouseEvent e)
MouseListener implementation, not used.
void
mouseExited(MouseEvent e)
MouseListener implementation, use to track mouse behaviour inside the tab selector bounds and forward them to the appropriate smart icon.
void
mouseMoved(MouseEvent e)
MouseListener implementation, use to track mouse behaviour inside the tab selector bounds and forward them to the appropriate smart icon.
void
mousePressed(MouseEvent e)
MouseListener implementation, use to track mouse behaviour inside the tab selector bounds and forward them to the appropriate smart icon.
void
mouseReleased(MouseEvent e)
MouseListener implementation, use to track mouse behaviour inside the tab selector bounds and forward them to the appropriate smart icon.

Constructor Details

JTabbedPaneSmartIconManager

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

Method Details

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-2006 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications