org.apache.pivot.wtk
Class ComponentMouseButtonListener.Adapter
java.lang.Object
org.apache.pivot.wtk.ComponentMouseButtonListener.Adapter
- All Implemented Interfaces:
- ComponentMouseButtonListener
- Enclosing interface:
- ComponentMouseButtonListener
public static class ComponentMouseButtonListener.Adapter
- extends Object
- implements ComponentMouseButtonListener
Component mouse button listener adapter.
Method Summary |
boolean |
mouseClick(Component component,
Mouse.Button button,
int x,
int y,
int count)
Called when a mouse button is clicked over a component. |
boolean |
mouseDown(Component component,
Mouse.Button button,
int x,
int y)
Called when a mouse button is pressed over a component. |
boolean |
mouseUp(Component component,
Mouse.Button button,
int x,
int y)
Called when a mouse button is released over a component. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentMouseButtonListener.Adapter
public ComponentMouseButtonListener.Adapter()
mouseDown
public boolean mouseDown(Component component,
Mouse.Button button,
int x,
int y)
- Description copied from interface:
ComponentMouseButtonListener
- Called when a mouse button is pressed over a component.
- Specified by:
mouseDown
in interface ComponentMouseButtonListener
- Returns:
- true to consume the event; false to allow it to
propagate.
mouseUp
public boolean mouseUp(Component component,
Mouse.Button button,
int x,
int y)
- Description copied from interface:
ComponentMouseButtonListener
- Called when a mouse button is released over a component.
- Specified by:
mouseUp
in interface ComponentMouseButtonListener
- Returns:
- true to consume the event; false to allow it to
propagate.
mouseClick
public boolean mouseClick(Component component,
Mouse.Button button,
int x,
int y,
int count)
- Description copied from interface:
ComponentMouseButtonListener
- Called when a mouse button is clicked over a component.
- Specified by:
mouseClick
in interface ComponentMouseButtonListener
- Returns:
- true to consume the event; false to allow it to
propagate.