All Downloads are FREE. Search and download functionalities are using the official Maven repository.

java.awt.event.ActionEvent Maven / Gradle / Ivy

Go to download

JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.

There is a newer version: 0.6.8
Show newest version
package java.awt.event;

import java.awt.*;

public class ActionEvent extends AWTEvent {
	public static final int SHIFT_MASK = Event.SHIFT_MASK;
	public static final int CTRL_MASK = Event.CTRL_MASK;
	public static final int META_MASK = Event.META_MASK;
	public static final int ALT_MASK = Event.ALT_MASK;
	public static final int ACTION_FIRST = 1001;
	public static final int ACTION_LAST = 1001;
	public static final int ACTION_PERFORMED = ACTION_FIRST; //Event.ACTION_EVENT
	String actionCommand;
	long when;
	int modifiers;

	public ActionEvent(Object source, int id, String command) {
		this(source, id, command, 0);
	}

	public ActionEvent(Object source, int id, String command, int modifiers) {
		this(source, id, command, 0, modifiers);
	}

	public ActionEvent(Object source, int id, String command, long when,
					   int modifiers) {
		super(source, id);
		this.actionCommand = command;
		this.when = when;
		this.modifiers = modifiers;
	}

	public String getActionCommand() {
		return actionCommand;
	}

	public long getWhen() {
		return when;
	}

	public int getModifiers() {
		return modifiers;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy