javax.swing.plaf.basic
Class BasicToolBarUI.DockingListener

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.swing.plaf.basic.BasicToolBarUI.DockingListener
All Implemented Interfaces:
MouseListener sample code for java.awt.event.MouseListener definition code for java.awt.event.MouseListener , MouseMotionListener sample code for java.awt.event.MouseMotionListener definition code for java.awt.event.MouseMotionListener , EventListener sample code for java.util.EventListener definition code for java.util.EventListener , MouseInputListener sample code for javax.swing.event.MouseInputListener definition code for javax.swing.event.MouseInputListener
Direct Known Subclasses:
MetalToolBarUI.MetalDockingListener sample code for javax.swing.plaf.metal.MetalToolBarUI.MetalDockingListener definition code for javax.swing.plaf.metal.MetalToolBarUI.MetalDockingListener
Enclosing class:
BasicToolBarUI sample code for javax.swing.plaf.basic.BasicToolBarUI definition code for javax.swing.plaf.basic.BasicToolBarUI

public class BasicToolBarUI.DockingListener
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements MouseInputListener sample code for javax.swing.event.MouseInputListener definition code for javax.swing.event.MouseInputListener

This class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicToolBarUI.


Field Summary
protected  boolean isDragging sample code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.isDragging definition code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.isDragging
           
protected  Point sample code for java.awt.Point definition code for java.awt.Point origin sample code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.origin definition code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.origin
           
protected  JToolBar sample code for javax.swing.JToolBar definition code for javax.swing.JToolBar toolBar sample code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.toolBar definition code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.toolBar
           
 
Constructor Summary
BasicToolBarUI.DockingListener sample code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.BasicToolBarUI.DockingListener(javax.swing.JToolBar) definition code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.BasicToolBarUI.DockingListener(javax.swing.JToolBar) (JToolBar sample code for javax.swing.JToolBar definition code for javax.swing.JToolBar  t)
           
 
Method Summary
 void mouseClicked sample code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mouseClicked(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mouseClicked(java.awt.event.MouseEvent) (MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
          Invoked when the mouse button has been clicked (pressed and released) on a component.
 void mouseDragged sample code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mouseDragged(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mouseDragged(java.awt.event.MouseEvent) (MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
          Invoked when a mouse button is pressed on a component and then dragged.
 void mouseEntered sample code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mouseEntered(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mouseEntered(java.awt.event.MouseEvent) (MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
          Invoked when the mouse enters a component.
 void mouseExited sample code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mouseExited(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mouseExited(java.awt.event.MouseEvent) (MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
          Invoked when the mouse exits a component.
 void mouseMoved sample code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mouseMoved(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mouseMoved(java.awt.event.MouseEvent) (MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
          Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.
 void mousePressed sample code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mousePressed(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mousePressed(java.awt.event.MouseEvent) (MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
          Invoked when a mouse button has been pressed on a component.
 void mouseReleased sample code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mouseReleased(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mouseReleased(java.awt.event.MouseEvent) (MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
          Invoked when a mouse button has been released on a component.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

toolBar sample code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.toolBar

protected JToolBar sample code for javax.swing.JToolBar definition code for javax.swing.JToolBar  toolBar

isDragging sample code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.isDragging

protected boolean isDragging

origin sample code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.origin

protected Point sample code for java.awt.Point definition code for java.awt.Point  origin
Constructor Detail

BasicToolBarUI.DockingListener sample code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener(javax.swing.JToolBar) definition code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener(javax.swing.JToolBar)

public BasicToolBarUI.DockingListener(JToolBar sample code for javax.swing.JToolBar definition code for javax.swing.JToolBar  t)
Method Detail

mouseClicked sample code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mouseClicked(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mouseClicked(java.awt.event.MouseEvent)

public void mouseClicked(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
Description copied from interface: MouseListener sample code for java.awt.event.MouseListener.mouseClicked(java.awt.event.MouseEvent) definition code for java.awt.event.MouseListener.mouseClicked(java.awt.event.MouseEvent)
Invoked when the mouse button has been clicked (pressed and released) on a component.

Specified by:
mouseClicked sample code for java.awt.event.MouseListener.mouseClicked(java.awt.event.MouseEvent) definition code for java.awt.event.MouseListener.mouseClicked(java.awt.event.MouseEvent) in interface MouseListener sample code for java.awt.event.MouseListener definition code for java.awt.event.MouseListener

mousePressed sample code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mousePressed(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mousePressed(java.awt.event.MouseEvent)

public void mousePressed(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
Description copied from interface: MouseListener sample code for java.awt.event.MouseListener.mousePressed(java.awt.event.MouseEvent) definition code for java.awt.event.MouseListener.mousePressed(java.awt.event.MouseEvent)
Invoked when a mouse button has been pressed on a component.

Specified by:
mousePressed sample code for java.awt.event.MouseListener.mousePressed(java.awt.event.MouseEvent) definition code for java.awt.event.MouseListener.mousePressed(java.awt.event.MouseEvent) in interface MouseListener sample code for java.awt.event.MouseListener definition code for java.awt.event.MouseListener

mouseReleased sample code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mouseReleased(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mouseReleased(java.awt.event.MouseEvent)

public void mouseReleased(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
Description copied from interface: MouseListener sample code for java.awt.event.MouseListener.mouseReleased(java.awt.event.MouseEvent) definition code for java.awt.event.MouseListener.mouseReleased(java.awt.event.MouseEvent)
Invoked when a mouse button has been released on a component.

Specified by:
mouseReleased sample code for java.awt.event.MouseListener.mouseReleased(java.awt.event.MouseEvent) definition code for java.awt.event.MouseListener.mouseReleased(java.awt.event.MouseEvent) in interface MouseListener sample code for java.awt.event.MouseListener definition code for java.awt.event.MouseListener

mouseEntered sample code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mouseEntered(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mouseEntered(java.awt.event.MouseEvent)

public void mouseEntered(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
Description copied from interface: MouseListener sample code for java.awt.event.MouseListener.mouseEntered(java.awt.event.MouseEvent) definition code for java.awt.event.MouseListener.mouseEntered(java.awt.event.MouseEvent)
Invoked when the mouse enters a component.

Specified by:
mouseEntered sample code for java.awt.event.MouseListener.mouseEntered(java.awt.event.MouseEvent) definition code for java.awt.event.MouseListener.mouseEntered(java.awt.event.MouseEvent) in interface MouseListener sample code for java.awt.event.MouseListener definition code for java.awt.event.MouseListener

mouseExited sample code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mouseExited(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mouseExited(java.awt.event.MouseEvent)

public void mouseExited(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
Description copied from interface: MouseListener sample code for java.awt.event.MouseListener.mouseExited(java.awt.event.MouseEvent) definition code for java.awt.event.MouseListener.mouseExited(java.awt.event.MouseEvent)
Invoked when the mouse exits a component.

Specified by:
mouseExited sample code for java.awt.event.MouseListener.mouseExited(java.awt.event.MouseEvent) definition code for java.awt.event.MouseListener.mouseExited(java.awt.event.MouseEvent) in interface MouseListener sample code for java.awt.event.MouseListener definition code for java.awt.event.MouseListener

mouseDragged sample code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mouseDragged(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mouseDragged(java.awt.event.MouseEvent)

public void mouseDragged(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
Description copied from interface: MouseMotionListener sample code for java.awt.event.MouseMotionListener.mouseDragged(java.awt.event.MouseEvent) definition code for java.awt.event.MouseMotionListener.mouseDragged(java.awt.event.MouseEvent)
Invoked when a mouse button is pressed on a component and then dragged. MOUSE_DRAGGED events will continue to be delivered to the component where the drag originated until the mouse button is released (regardless of whether the mouse position is within the bounds of the component).

Due to platform-dependent Drag&Drop implementations, MOUSE_DRAGGED events may not be delivered during a native Drag&Drop operation.

Specified by:
mouseDragged sample code for java.awt.event.MouseMotionListener.mouseDragged(java.awt.event.MouseEvent) definition code for java.awt.event.MouseMotionListener.mouseDragged(java.awt.event.MouseEvent) in interface MouseMotionListener sample code for java.awt.event.MouseMotionListener definition code for java.awt.event.MouseMotionListener

mouseMoved sample code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mouseMoved(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicToolBarUI.DockingListener.mouseMoved(java.awt.event.MouseEvent)

public void mouseMoved(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
Description copied from interface: MouseMotionListener sample code for java.awt.event.MouseMotionListener.mouseMoved(java.awt.event.MouseEvent) definition code for java.awt.event.MouseMotionListener.mouseMoved(java.awt.event.MouseEvent)
Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.

Specified by:
mouseMoved sample code for java.awt.event.MouseMotionListener.mouseMoved(java.awt.event.MouseEvent) definition code for java.awt.event.MouseMotionListener.mouseMoved(java.awt.event.MouseEvent) in interface MouseMotionListener sample code for java.awt.event.MouseMotionListener definition code for java.awt.event.MouseMotionListener