buoy.event
Class CommandEvent
- WidgetEvent
public class CommandEvent
extends ActionEvent
This event represents a user action that issues a command, such as pressing a button or selecting
a menu item.
CommandEvent
public CommandEvent(Widget source,
long when,
int modifiers)
Create a CommandEvent.
source
- the widget to which this event occurredwhen
- the time at which the event occurredmodifiers
- describes the state of various keys at the time when the event occurred
(a sum of the constants defined by ActionEvent)
CommandEvent
public CommandEvent(Widget source,
long when,
int modifiers,
String command)
Create a CommandEvent.
source
- the widget to which this event occurredwhen
- the time at which the event occurredmodifiers
- describes the state of various keys at the time when the event occurred
(a sum of the constants defined by ActionEvent)command
- the command String describing the action which was performed
Written by Peter Eastman.