buoy.event

Class MouseClickedEvent

Implemented Interfaces:
WidgetEvent

public class MouseClickedEvent
extends WidgetMouseEvent

This is an event corresponding to the mouse button being pressed and released.
Author:
Peter Eastman

Constructor Summary

MouseClickedEvent(Widget source, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int button)
Create a MouseClickedEvent.

Method Summary

Methods inherited from class buoy.event.WidgetMouseEvent

getSource, getWidget

Constructor Details

MouseClickedEvent

public MouseClickedEvent(Widget source,
                         long when,
                         int modifiers,
                         int x,
                         int y,
                         int clickCount,
                         boolean popupTrigger,
                         int button)
Create a MouseClickedEvent.
Parameters:
source - the Widget which generated this event
when - the time at which the event occurred
modifiers - describes the state of various keys and buttons at the time when the event occurred (a sum of the constants defined by InputEvent)
x - the x coordinate at which the event occurred
y - the y coordinate at which the event occurred
clickCount - the number of successive times the mouse has been clicked
popupTrigger - true if this event corresponds to the platform-specific trigger for displaying popup menus
button - the flag for the button which has just changed state

Written by Peter Eastman.