Class TabOverviewDialog.TabPreviewMouseHandler
java.lang.Object
java.awt.event.MouseAdapter
org.pushingpixels.radiance.theming.extras.internal.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.)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanIftrue, the tab preview controls have rollover effects on borders.private intTab index.private JComponentTab preview control.private booleanIftrue, the preview uses double click to select the tab and dismiss the tab overview dialog. -
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 TypeMethodDescriptionvoidvoidvoidMethods inherited from class MouseAdapter
mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved
-
Field Details
-
index
private int indexTab index. -
previewControl
Tab preview control. -
useDoubleClick
private boolean useDoubleClickIftrue, the preview uses double click to select the tab and dismiss the tab overview dialog. -
hasRolloverBorderEffect
private boolean hasRolloverBorderEffectIftrue, the tab preview controls have rollover effects on borders.
-
-
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:
mouseClickedin interfaceMouseListener- Overrides:
mouseClickedin classMouseAdapter
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener- Overrides:
mouseEnteredin classMouseAdapter
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener- Overrides:
mouseExitedin classMouseAdapter
-