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 and Description |
|---|
JTabbedPaneSmartIconManager(JTabbedPane tabbedPane)
Constructs a new tabbedPane manager for a given JTabbedPane
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public JTabbedPaneSmartIconManager(JTabbedPane tabbedPane)
public void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenerpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListener© Copyright 2004-2013 Lilian Chamontin. All Rights Reserved.