|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MouseListener
Event listener interface for mouse events.
Method Summary | |
---|---|
void |
onMouseDown(Widget sender,
int x,
int y)
Fired when the user depresses the mouse button over a widget. |
void |
onMouseEnter(Widget sender)
Fired when the mouse enters a widget's area. |
void |
onMouseLeave(Widget sender)
Fired when the mouse leaves a widget's area. |
void |
onMouseMove(Widget sender,
int x,
int y)
Fired when the user moves the mouse over a widget. |
void |
onMouseUp(Widget sender,
int x,
int y)
Fired when the user releases the mouse button over a widget. |
Method Detail |
---|
void onMouseDown(Widget sender, int x, int y)
sender
- the widget sending the eventx
- the x coordinate of the mousey
- the y coordinate of the mousevoid onMouseEnter(Widget sender)
sender
- the widget sending the eventvoid onMouseLeave(Widget sender)
sender
- the widget sending the eventvoid onMouseMove(Widget sender, int x, int y)
sender
- the widget sending the eventx
- the x coordinate of the mousey
- the y coordinate of the mousevoid onMouseUp(Widget sender, int x, int y)
sender
- the widget sending the eventx
- the x coordinate of the mousey
- the y coordinate of the mouse
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |