Package org.apache.pivot.wtk
Class ComponentMouseButtonListener.Adapter
- java.lang.Object
-
- org.apache.pivot.wtk.ComponentMouseButtonListener.Adapter
-
- All Implemented Interfaces:
ComponentMouseButtonListener
- Enclosing interface:
- ComponentMouseButtonListener
@Deprecated public static class ComponentMouseButtonListener.Adapter extends java.lang.Object implements ComponentMouseButtonListener
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.Component mouse button listener adapter.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseButtonListener
ComponentMouseButtonListener.Adapter, ComponentMouseButtonListener.Listeners
-
-
Constructor Summary
Constructors Constructor Description Adapter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
mouseClick(Component component, Mouse.Button button, int x, int y, int count)
Deprecated.Called when a mouse button is clicked over a component.boolean
mouseDown(Component component, Mouse.Button button, int x, int y)
Deprecated.Called when a mouse button is pressed over a component.boolean
mouseUp(Component component, Mouse.Button button, int x, int y)
Deprecated.Called when a mouse button is released over a component.
-
-
-
Method Detail
-
mouseDown
public boolean mouseDown(Component component, Mouse.Button button, int x, int y)
Deprecated.Description copied from interface:ComponentMouseButtonListener
Called when a mouse button is pressed over a component.- Specified by:
mouseDown
in interfaceComponentMouseButtonListener
- Parameters:
component
- Component that is under the mouse pointer.button
- Which mouse button was pressed.x
- X position of the mouse.y
- Y position of the mouse.- Returns:
true
to consume the event;false
to allow it to propagate (default).
-
mouseUp
public boolean mouseUp(Component component, Mouse.Button button, int x, int y)
Deprecated.Description copied from interface:ComponentMouseButtonListener
Called when a mouse button is released over a component.- Specified by:
mouseUp
in interfaceComponentMouseButtonListener
- Parameters:
component
- Component user the mouse pointer.button
- Which mouse button that was released.x
- X position of the mouse.y
- Y position of the mouse.- Returns:
true
to consume the event;false
to allow it to propagate (default).
-
mouseClick
public boolean mouseClick(Component component, Mouse.Button button, int x, int y, int count)
Deprecated.Description copied from interface:ComponentMouseButtonListener
Called when a mouse button is clicked over a component.- Specified by:
mouseClick
in interfaceComponentMouseButtonListener
- Parameters:
component
- Component user the mouse pointer.button
- Which mouse button was clicked.x
- X position of the mouse.y
- Y position of the mouse.count
- Number of clicks (1 = single click, 2 = double click, etc.).- Returns:
true
to consume the event;false
to allow it to propagate (default).
-
-