Java java.awt.event ActionEvent fields, constructors, methods, implement or subclass

Example usage for Java java.awt.event ActionEvent fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt.event ActionEvent.

The text is from its open source code.

Field

intSHIFT_MASK
The shift modifier.
intCTRL_MASK
The control modifier.
intMETA_MASK
The meta modifier.
intALT_MASK
The alt modifier.
intACTION_FIRST
The first number in the range of ids used for action events.
intACTION_LAST
The last number in the range of ids used for action events.
intACTION_PERFORMED
This event id indicates that a meaningful action occurred.

Constructor

ActionEvent(Object source, int id, String command, int modifiers)
Constructs an ActionEvent object with modifier keys.
ActionEvent(Object source, int id, String command)
Constructs an ActionEvent object.
ActionEvent(Object source, int id, String command, long when, int modifiers)
Constructs an ActionEvent object with the specified modifier keys and timestamp.

Method

voidconsume()
Consumes this event, if this event can be consumed.
StringgetActionCommand()
Returns the command string associated with this action.
ClassgetClass()
Returns the runtime class of this Object .
intgetID()
Returns the event type.
intgetModifiers()
Returns the modifier keys held down during this action event.
ObjectgetSource()
The object on which the Event initially occurred.
longgetWhen()
Returns the timestamp of when this event occurred.
StringparamString()
Returns a parameter string identifying this action event.
StringtoString()
Returns a String representation of this object.