Java Doc for AWTEvent.java in  » 6.0-JDK-Core » AWT » java » awt » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » AWT » java.awt 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.util.EventObject
      java.awt.AWTEvent

All known Subclasses:   java.awt.event.AdjustmentEvent,  java.awt.event.InputMethodEvent,  java.awt.event.ActionEvent,  java.awt.event.ComponentEvent,  java.awt.event.InvocationEvent,  java.awt.event.ItemEvent,  java.awt.SequencedEvent,  java.awt.event.TextEvent,  java.awt.event.HierarchyEvent,  java.awt.SentEvent,
AWTEvent
abstract public class AWTEvent extends EventObject (Code)
The root event class for all AWT events. This class and its subclasses supercede the original java.awt.Event class. Subclasses of this root AWTEvent class defined outside of the java.awt.event package should define event ID values greater than the value defined by RESERVED_ID_MAX.

The event masks defined in this class are needed by Component subclasses which are using Component.enableEvents() to select for event types not selected by registered listeners. If a listener is registered on a component, the appropriate event mask is already set internally by the component.

The masks are also used to specify to which types of events an AWTEventListener should listen. The masks are bitwise-ORed together and passed to Toolkit.addAWTEventListener.
See Also:   Component.enableEvents
See Also:   Toolkit.addAWTEventListener
See Also:   java.awt.event.ActionEvent
See Also:   java.awt.event.AdjustmentEvent
See Also:   java.awt.event.ComponentEvent
See Also:   java.awt.event.ContainerEvent
See Also:   java.awt.event.FocusEvent
See Also:   java.awt.event.InputMethodEvent
See Also:   java.awt.event.InvocationEvent
See Also:   java.awt.event.ItemEvent
See Also:   java.awt.event.HierarchyEvent
See Also:   java.awt.event.KeyEvent
See Also:   java.awt.event.MouseEvent
See Also:   java.awt.event.MouseWheelEvent
See Also:   java.awt.event.PaintEvent
See Also:   java.awt.event.TextEvent
See Also:   java.awt.event.WindowEvent
author:
   Carl Quinn
author:
   Amy Fowler
version:
   1.68 06/05/07
since:
   1.1



Field Summary
final public static  longACTION_EVENT_MASK
     The event mask for selecting action events.
final public static  longADJUSTMENT_EVENT_MASK
     The event mask for selecting adjustment events.
final public static  longCOMPONENT_EVENT_MASK
     The event mask for selecting component events.
final public static  longCONTAINER_EVENT_MASK
     The event mask for selecting container events.
final public static  longFOCUS_EVENT_MASK
     The event mask for selecting focus events.
final public static  longHIERARCHY_BOUNDS_EVENT_MASK
     The event mask for selecting hierarchy bounds events.
final public static  longHIERARCHY_EVENT_MASK
     The event mask for selecting hierarchy events.
final static  longINPUT_METHODS_ENABLED_MASK
     The pseudo event mask for enabling input methods.
final public static  longINPUT_METHOD_EVENT_MASK
     The event mask for selecting input method events.
final public static  longINVOCATION_EVENT_MASK
     The event mask for selecting invocation events.
final public static  longITEM_EVENT_MASK
     The event mask for selecting item events.
final public static  longKEY_EVENT_MASK
     The event mask for selecting key events.
final public static  longMOUSE_EVENT_MASK
     The event mask for selecting mouse events.
final public static  longMOUSE_MOTION_EVENT_MASK
     The event mask for selecting mouse motion events.
final public static  longMOUSE_WHEEL_EVENT_MASK
     The event mask for selecting mouse wheel events.
final public static  longPAINT_EVENT_MASK
     The event mask for selecting paint events.
final public static  intRESERVED_ID_MAX
     The maximum value for reserved AWT event IDs.
final public static  longTEXT_EVENT_MASK
     The event mask for selecting text events.
final public static  longWINDOW_EVENT_MASK
     The event mask for selecting window events.
final public static  longWINDOW_FOCUS_EVENT_MASK
     The event mask for selecting window focus events.
final public static  longWINDOW_STATE_EVENT_MASK
     The event mask for selecting window state events.
protected  booleanconsumed
     Controls whether or not the event is sent back down to the peer once the source has processed it - false means it's sent to the peer; true means it's not.
transient  booleanfocusManagerIsDispatching
    
protected  intid
     The event's id.
transient  booleanisPosted
    

Constructor Summary
public  AWTEvent(Event event)
     Constructs an AWTEvent object from the parameters of a 1.0-style event.
public  AWTEvent(Object source, int id)
     Constructs an AWTEvent object with the specified source object and type.

Method Summary
protected  voidconsume()
     Consumes this event, if this event can be consumed.
 EventconvertToOld()
     Converts a new event to an old one (used for compatibility).
 voidcopyPrivateDataInto(AWTEvent that)
     Copies all private data from this event into that.
 voiddispatched()
    
public  intgetID()
     Returns the event type.
protected  booleanisConsumed()
     Returns whether this event has been consumed.
public  StringparamString()
     Returns a string representing the state of this Event. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations.
public  voidsetSource(Object newSource)
     Retargets an event to a new source.
public  StringtoString()
     Returns a String representation of this object.

Field Detail
ACTION_EVENT_MASK
final public static long ACTION_EVENT_MASK(Code)
The event mask for selecting action events.



ADJUSTMENT_EVENT_MASK
final public static long ADJUSTMENT_EVENT_MASK(Code)
The event mask for selecting adjustment events.



COMPONENT_EVENT_MASK
final public static long COMPONENT_EVENT_MASK(Code)
The event mask for selecting component events.



CONTAINER_EVENT_MASK
final public static long CONTAINER_EVENT_MASK(Code)
The event mask for selecting container events.



FOCUS_EVENT_MASK
final public static long FOCUS_EVENT_MASK(Code)
The event mask for selecting focus events.



HIERARCHY_BOUNDS_EVENT_MASK
final public static long HIERARCHY_BOUNDS_EVENT_MASK(Code)
The event mask for selecting hierarchy bounds events.



HIERARCHY_EVENT_MASK
final public static long HIERARCHY_EVENT_MASK(Code)
The event mask for selecting hierarchy events.



INPUT_METHODS_ENABLED_MASK
final static long INPUT_METHODS_ENABLED_MASK(Code)
The pseudo event mask for enabling input methods. We're using one bit in the eventMask so we don't need a separate field inputMethodsEnabled.



INPUT_METHOD_EVENT_MASK
final public static long INPUT_METHOD_EVENT_MASK(Code)
The event mask for selecting input method events.



INVOCATION_EVENT_MASK
final public static long INVOCATION_EVENT_MASK(Code)
The event mask for selecting invocation events.



ITEM_EVENT_MASK
final public static long ITEM_EVENT_MASK(Code)
The event mask for selecting item events.



KEY_EVENT_MASK
final public static long KEY_EVENT_MASK(Code)
The event mask for selecting key events.



MOUSE_EVENT_MASK
final public static long MOUSE_EVENT_MASK(Code)
The event mask for selecting mouse events.



MOUSE_MOTION_EVENT_MASK
final public static long MOUSE_MOTION_EVENT_MASK(Code)
The event mask for selecting mouse motion events.



MOUSE_WHEEL_EVENT_MASK
final public static long MOUSE_WHEEL_EVENT_MASK(Code)
The event mask for selecting mouse wheel events.
since:
   1.4



PAINT_EVENT_MASK
final public static long PAINT_EVENT_MASK(Code)
The event mask for selecting paint events.



RESERVED_ID_MAX
final public static int RESERVED_ID_MAX(Code)
The maximum value for reserved AWT event IDs. Programs defining their own event IDs should use IDs greater than this value.



TEXT_EVENT_MASK
final public static long TEXT_EVENT_MASK(Code)
The event mask for selecting text events.



WINDOW_EVENT_MASK
final public static long WINDOW_EVENT_MASK(Code)
The event mask for selecting window events.



WINDOW_FOCUS_EVENT_MASK
final public static long WINDOW_FOCUS_EVENT_MASK(Code)
The event mask for selecting window focus events.
since:
   1.4



WINDOW_STATE_EVENT_MASK
final public static long WINDOW_STATE_EVENT_MASK(Code)
The event mask for selecting window state events.
since:
   1.4



consumed
protected boolean consumed(Code)
Controls whether or not the event is sent back down to the peer once the source has processed it - false means it's sent to the peer; true means it's not. Semantic events always have a 'true' value since they were generated by the peer in response to a low-level event.
See Also:   AWTEvent.consume
See Also:   AWTEvent.isConsumed



focusManagerIsDispatching
transient boolean focusManagerIsDispatching(Code)



id
protected int id(Code)
The event's id.
See Also:   AWTEvent.getID()
See Also:   AWTEvent.AWTEvent



isPosted
transient boolean isPosted(Code)




Constructor Detail
AWTEvent
public AWTEvent(Event event)(Code)
Constructs an AWTEvent object from the parameters of a 1.0-style event.
Parameters:
  event - the old-style event



AWTEvent
public AWTEvent(Object source, int id)(Code)
Constructs an AWTEvent object with the specified source object and type.
Parameters:
  source - the object where the event originated
Parameters:
  id - the event type




Method Detail
consume
protected void consume()(Code)
Consumes this event, if this event can be consumed. Only low-level, system events can be consumed



convertToOld
Event convertToOld()(Code)
Converts a new event to an old one (used for compatibility). If the new event cannot be converted (because no old equivalent exists) then this returns null. Note: this method is here instead of in each individual new event class in java.awt.event because we don't want to make it public and it needs to be called from java.awt.



copyPrivateDataInto
void copyPrivateDataInto(AWTEvent that)(Code)
Copies all private data from this event into that. Space is allocated for the copied data that will be freed when the that is finalized. Upon completion, this event is not changed.



dispatched
void dispatched()(Code)



getID
public int getID()(Code)
Returns the event type.



isConsumed
protected boolean isConsumed()(Code)
Returns whether this event has been consumed.



paramString
public String paramString()(Code)
Returns a string representing the state of this Event. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be null. a string representation of this event



setSource
public void setSource(Object newSource)(Code)
Retargets an event to a new source. This method is typically used to retarget an event to a lightweight child Component of the original heavyweight source.

This method is intended to be used only by event targeting subsystems, such as client-defined KeyboardFocusManagers. It is not for general client use.
Parameters:
  newSource - the new Object to which the event should be dispatched
since:
   1.4




toString
public String toString()(Code)
Returns a String representation of this object.



Fields inherited from java.util.EventObject
protected transient Object source(Code)(Java Doc)

Methods inherited from java.util.EventObject
public Object getSource()(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.