com.vlsolutions.swing.tabbedpane
public class JTabbedPaneSmartIconManager extends Object implements MouseListener, MouseMotionListener
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. |