Class TabOverviewDialog.TabPreviewMouseHandler
java.lang.Object
java.awt.event.MouseAdapter
org.pushingpixels.lafwidget.tabbed.TabOverviewDialog.TabPreviewMouseHandler
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,MouseWheelListener
,EventListener
- Enclosing class:
- TabOverviewDialog
Handles mouse events on the tab overview dialog (such as highlighting the
currently rolled-over tab preview, closing the overview when a tab
preview is clicked, tooltips etc.)
-
Constructor Summary
ConstructorsConstructorDescriptionTabPreviewMouseHandler
(int index, JComponent previewControl, boolean hasRolloverBorderEffect, boolean useDoubleClick) Creates the mouse handler for a single tab preview control. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
Methods inherited from class java.awt.event.MouseAdapter
mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved
-
Constructor Details
-
TabPreviewMouseHandler
public TabPreviewMouseHandler(int index, JComponent previewControl, boolean hasRolloverBorderEffect, boolean useDoubleClick) Creates the mouse handler for a single tab preview control.- Parameters:
index
- Tab index.previewControl
- Tab preview control.hasRolloverBorderEffect
- Iftrue
, the preview uses double click to select the tab and dismiss the tab overview dialog.useDoubleClick
- Iftrue
, the tab preview controls have rollover effects on borders.
-
-
Method Details
-
mouseClicked
- Specified by:
mouseClicked
in interfaceMouseListener
- Overrides:
mouseClicked
in classMouseAdapter
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
- Overrides:
mouseEntered
in classMouseAdapter
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
- Overrides:
mouseExited
in classMouseAdapter
-