JIDE 3.5.15

com.jidesoft.docking
Class AutoHideMouseListener

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by com.jidesoft.docking.AutoHideMouseListener
All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, EventListener, MouseInputListener

public class AutoHideMouseListener
extends MouseAdapter
implements MouseInputListener

MouseListener for AutohideContainer. It will call corresponding methods in DockingManager

See Also:
AutoHideContainer

Field Summary
protected  DockingManager _dockingManager
           
protected  DockableFrame _frame
           
protected  int _side
           
 
Constructor Summary
AutoHideMouseListener(DockingManager dockingManager, DockableFrame frame, int side)
          Constructor.
 
Method Summary
 void mouseClicked(MouseEvent e)
          When mouse clicks, start showing frame timer immediately (delay is 0).
 void mouseEntered(MouseEvent e)
          When mouse enters, start showing frame timer later (delay is 300) so that mouse quickly hover the button won't have any effect.
 void mouseExited(MouseEvent e)
          When mouse exits, stop timer.
 void mouseMoved(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
 
Methods inherited from class java.awt.event.MouseAdapter
mouseDragged, mouseWheelMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.MouseMotionListener
mouseDragged
 

Field Detail

_frame

protected final DockableFrame _frame

_side

protected final int _side

_dockingManager

protected final DockingManager _dockingManager
Constructor Detail

AutoHideMouseListener

public AutoHideMouseListener(DockingManager dockingManager,
                             DockableFrame frame,
                             int side)
Constructor.

Parameters:
dockingManager - the docking manager
frame - the dockable frame
side - the autohide side in the docking manager
Method Detail

mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class MouseAdapter

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class MouseAdapter

mouseClicked

public void mouseClicked(MouseEvent e)
When mouse clicks, start showing frame timer immediately (delay is 0).

Specified by:
mouseClicked in interface MouseListener
Overrides:
mouseClicked in class MouseAdapter
Parameters:
e - the mouse event

mouseEntered

public void mouseEntered(MouseEvent e)
When mouse enters, start showing frame timer later (delay is 300) so that mouse quickly hover the button won't have any effect.

Specified by:
mouseEntered in interface MouseListener
Overrides:
mouseEntered in class MouseAdapter
Parameters:
e - the mouse event

mouseExited

public void mouseExited(MouseEvent e)
When mouse exits, stop timer.

Specified by:
mouseExited in interface MouseListener
Overrides:
mouseExited in class MouseAdapter
Parameters:
e - the mouse event

mouseMoved

public void mouseMoved(MouseEvent e)
Specified by:
mouseMoved in interface MouseMotionListener
Overrides:
mouseMoved in class MouseAdapter

JIDE 3.5.15