Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 1.1 Source Code Directory
JDK 1.1 source code directory contains Java source code for JDK 1.1 core classes:
"C:\fyicenter\jdk-1.1.8\src".
Here is the list of Java classes of the JDK 1.1 source code:
✍: FYIcenter
⏎ java/awt/event/InputEvent.java
/* * @(#)InputEvent.java 1.13 01/12/10 * * Copyright 2002 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package java.awt.event; import java.awt.Event; import java.awt.Component; /** * The root event class for all component-level input events. * * Input events are delivered to listeners before they are * processed normally by the source where they originated. * This allows listeners and component subclasses to "consume" * the event so that the source will not process them in their * default manner. For example, consuming mousePressed events * on a Button component will prevent the Button from being * activated. * * @version 1.13 12/10/01 * @author Carl Quinn */ public abstract class InputEvent extends ComponentEvent { /** * The shift key modifier constant. */ public static final int SHIFT_MASK = Event.SHIFT_MASK; /** * The control key modifier constant. */ public static final int CTRL_MASK = Event.CTRL_MASK; /** * The meta key modifier constant. */ public static final int META_MASK = Event.META_MASK; /** * The alt key modifier constant. */ public static final int ALT_MASK = Event.ALT_MASK; /** * The mouse button1 modifier constant. */ public static final int BUTTON1_MASK = 1 << 4; /** * The mouse button2 modifier constant. */ public static final int BUTTON2_MASK = Event.ALT_MASK; /** * The mouse button3 modifier constant. */ public static final int BUTTON3_MASK = Event.META_MASK; long when; int modifiers; /** * Constructs an InputEvent object with the specified source component, * modifiers, and type. * @param source the object where the event originated * @id the event type * @when the time the event occurred * @modifiers the modifier keys down while event occurred */ InputEvent(Component source, int id, long when, int modifiers) { super(source, id); this.when = when; this.modifiers = modifiers; } /** * Returns whether or not the Shift modifier is down on this event. */ public boolean isShiftDown() { return (modifiers & Event.SHIFT_MASK) != 0; } /** * Returns whether or not the Control modifier is down on this event. */ public boolean isControlDown() { return (modifiers & Event.CTRL_MASK) != 0; } /** * Returns whether or not the Meta modifier is down on this event. */ public boolean isMetaDown() { return (modifiers & Event.META_MASK) != 0; } /** * Returns whether or not the Alt modifier is down on this event. */ public boolean isAltDown() { return (modifiers & Event.ALT_MASK) != 0; } /** * Returns the timestamp of when this event occurred. */ public long getWhen() { return when; } /** * Returns the modifiers flag for this event. */ public int getModifiers() { return modifiers; } /** * Consumes this event so that it will not be processed * in the default manner by the source which originated it. */ public void consume() { consumed = true; } /** * Returns whether or not this event has been consumed. * @see #consume */ public boolean isConsumed() { return consumed; } }
⏎ java/awt/event/InputEvent.java
Or download all of them as a single archive file:
File name: jdk-1.1.8-src.zip File size: 1574187 bytes Release date: 2018-11-16 Download
⇒ Backup JDK 1.1 Installation Directory
2018-11-17, 176040👍, 0💬
Popular Posts:
JDK 8 tools.jar is the JAR file for JDK 8 tools. It contains Java classes to support different JDK t...
What Is poi-examples-5.2.3.jar? poi-examples-5.2.3.jar is one of the JAR files for Apache POI 5.2.3,...
HttpComponents Client Source Code Files are provided in the source package file, httpcomponents-clie...
Apache ZooKeeper is an open-source server which enables highly reliable distributed coordination. Ap...
JDK 6 tools.jar is the JAR file for JDK 6 tools. It contains Java classes to support different JDK t...