Package org.apache.pivot.wtk
Class ContainerMouseListener.Adapter
- java.lang.Object
-
- org.apache.pivot.wtk.ContainerMouseListener.Adapter
-
- All Implemented Interfaces:
ContainerMouseListener
- Enclosing interface:
- ContainerMouseListener
@Deprecated public static class ContainerMouseListener.Adapter extends java.lang.Object implements ContainerMouseListener
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.Container mouse listener adapter.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerMouseListener
ContainerMouseListener.Adapter, ContainerMouseListener.Listeners
-
-
Constructor Summary
Constructors Constructor Description Adapter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
mouseDown(Container container, Mouse.Button button, int x, int y)
Deprecated.Called when the mouse is pressed over a container.boolean
mouseMove(Container container, int x, int y)
Deprecated.Called when the mouse is moved over a container.boolean
mouseUp(Container container, Mouse.Button button, int x, int y)
Deprecated.Called when the mouse is released over a container.boolean
mouseWheel(Container container, Mouse.ScrollType scrollType, int scrollAmount, int wheelRotation, int x, int y)
Deprecated.Called when the mouse wheel is scrolled over a container.
-
-
-
Method Detail
-
mouseMove
public boolean mouseMove(Container container, int x, int y)
Deprecated.Description copied from interface:ContainerMouseListener
Called when the mouse is moved over a container.- Specified by:
mouseMove
in interfaceContainerMouseListener
- Parameters:
container
- The container under the mouse.x
- The X-position of the mouse.y
- The Y-position of the mouse.- 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)
Deprecated.Description copied from interface:ContainerMouseListener
Called when the mouse is pressed over a container.- Specified by:
mouseDown
in interfaceContainerMouseListener
- Parameters:
container
- The container under the mouse.button
- Which button was pressed.x
- The X-position of the mouse.y
- The Y-position of the mouse.- 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)
Deprecated.Description copied from interface:ContainerMouseListener
Called when the mouse is released over a container.- Specified by:
mouseUp
in interfaceContainerMouseListener
- Parameters:
container
- The container under the mouse.button
- Which mouse button was released.x
- The X-position at the time of release.y
- The Y-position at the time of release.- 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)
Deprecated.Description copied from interface:ContainerMouseListener
Called when the mouse wheel is scrolled over a container.- Specified by:
mouseWheel
in interfaceContainerMouseListener
- Parameters:
container
- The container under the mouse.scrollType
- Which type of scroll happened.scrollAmount
- How much scrolling was requested.wheelRotation
- The amount and direction of wheel rotation.x
- The X-position of the mouse at the time.y
- The Y-position of the mouse.- Returns:
true
to consume the event;false
to allow it to propagate.
-
-