com.jidesoft.docking
Class AutoHideMouseListener
java.lang.Object
java.awt.event.MouseAdapter
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_frame
protected final DockableFrame _frame
_side
protected final int _side
_dockingManager
protected final DockingManager _dockingManager
AutoHideMouseListener
public AutoHideMouseListener(DockingManager dockingManager,
DockableFrame frame,
int side)
- Constructor.
- Parameters:
dockingManager
- the docking managerframe
- the dockable frameside
- the autohide side in the docking manager
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