org.apache.pivot.wtk
Class ContainerMouseListener.Adapter

java.lang.Object
  extended by org.apache.pivot.wtk.ContainerMouseListener.Adapter
All Implemented Interfaces:
ContainerMouseListener
Enclosing interface:
ContainerMouseListener

public static class ContainerMouseListener.Adapter
extends Object
implements ContainerMouseListener

Container mouse listener adapter.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerMouseListener
ContainerMouseListener.Adapter
 
Constructor Summary
ContainerMouseListener.Adapter()
           
 
Method Summary
 boolean mouseDown(Container container, Mouse.Button button, int x, int y)
          Called when the mouse is pressed over a container.
 boolean mouseMove(Container container, int x, int y)
          Called when the mouse is moved over a container.
 boolean mouseUp(Container container, Mouse.Button button, int x, int y)
          Called when the mouse is released over a container.
 boolean mouseWheel(Container container, Mouse.ScrollType scrollType, int scrollAmount, int wheelRotation, int x, int y)
          Called when the mouse wheel is scrolled over a container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerMouseListener.Adapter

public ContainerMouseListener.Adapter()
Method Detail

mouseMove

public boolean mouseMove(Container container,
                         int x,
                         int y)
Description copied from interface: ContainerMouseListener
Called when the mouse is moved over a container.

Specified by:
mouseMove in interface ContainerMouseListener
Returns:
true to consume the event; false to allow it to propagate.

mouseDown

public boolean mouseDown(Container container,
                         Mouse.Button button,
                         int x,
                         int y)
Description copied from interface: ContainerMouseListener
Called when the mouse is pressed over a container.

Specified by:
mouseDown in interface ContainerMouseListener
Returns:
true to consume the event; false to allow it to propagate.

mouseUp

public boolean mouseUp(Container container,
                       Mouse.Button button,
                       int x,
                       int y)
Description copied from interface: ContainerMouseListener
Called when the mouse is released over a container.

Specified by:
mouseUp in interface ContainerMouseListener
Returns:
true to consume the event; false to allow it to propagate.

mouseWheel

public boolean mouseWheel(Container container,
                          Mouse.ScrollType scrollType,
                          int scrollAmount,
                          int wheelRotation,
                          int x,
                          int y)
Description copied from interface: ContainerMouseListener
Called when the mouse wheel is scrolled over a container.

Specified by:
mouseWheel in interface ContainerMouseListener
Returns:
true to consume the event; false to allow it to propagate.