Spec-Zone .ru
спецификации, руководства, описания, API
|
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--java.awt.AWTEvent
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 ONLY 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.
Component.enableEvents(long)
,
ComponentEvent
,
FocusEvent
,
KeyEvent
,
MouseEvent
,
WindowEvent
,
ActionEvent
,
AdjustmentEvent
,
ItemEvent
,
TextEvent
, Serialized FormField Summary | |
static long |
ACTION_EVENT_MASK
The event mask for selecting action events. |
static long |
ADJUSTMENT_EVENT_MASK
The event mask for selecting adjustment events. |
static long |
COMPONENT_EVENT_MASK
The event mask for selecting component events. |
protected boolean |
consumed
|
static long |
CONTAINER_EVENT_MASK
The event mask for selecting container events. |
static long |
FOCUS_EVENT_MASK
The event mask for selecting focus events. |
protected int |
id
|
static long |
INPUT_METHOD_EVENT_MASK
The event mask for selecting input method events. |
static long |
ITEM_EVENT_MASK
The event mask for selecting item events. |
static long |
KEY_EVENT_MASK
The event mask for selecting key events. |
static long |
MOUSE_EVENT_MASK
The event mask for selecting mouse events. |
static long |
MOUSE_MOTION_EVENT_MASK
The event mask for selecting mouse motion events. |
static int |
RESERVED_ID_MAX
The maximum value for reserved AWT event IDs. |
static long |
TEXT_EVENT_MASK
The event mask for selecting text events. |
static long |
WINDOW_EVENT_MASK
The event mask for selecting window events. |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
AWTEvent(Event event)
Constructs an AWTEvent object from the parameters of a 1.0-style event. |
|
AWTEvent(Object source,
int id)
Constructs an AWTEvent object with the specified source object and type. |
Method Summary | |
protected void |
consume()
|
protected void |
finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
int |
getID()
Returns the event type. |
protected boolean |
isConsumed()
|
String |
paramString()
Returns a string representing the state of this event. |
String |
toString()
Returns a String representation of this EventObject. |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected int id
protected boolean consumed
public static final long COMPONENT_EVENT_MASK
public static final long CONTAINER_EVENT_MASK
public static final long FOCUS_EVENT_MASK
public static final long KEY_EVENT_MASK
public static final long MOUSE_EVENT_MASK
public static final long MOUSE_MOTION_EVENT_MASK
public static final long WINDOW_EVENT_MASK
public static final long ACTION_EVENT_MASK
public static final long ADJUSTMENT_EVENT_MASK
public static final long ITEM_EVENT_MASK
public static final long TEXT_EVENT_MASK
public static final long INPUT_METHOD_EVENT_MASK
public static final int RESERVED_ID_MAX
Constructor Detail |
public AWTEvent(Event event)
event
- the old-style eventpublic AWTEvent(Object source, int id)
source
- the object where the event originatedMethod Detail |
public int getID()
public String toString()
public String paramString()
null
.protected void consume()
protected boolean isConsumed()
protected void finalize() throws Throwable
finalize
method to dispose of
system resources or to perform other cleanup.
The general contract of finalize is that it is invoked if and when the JavaTM virtual machine has determined that there is no longer any means by which this object can be accessed by any thread that has not yet died, except as a result of an action taken by the finalization of some other object or class which is ready to be finalized. The finalize method may take any action, including making this object available again to other threads; the usual purpose of finalize, however, is to perform cleanup actions before the object is irrevocably discarded. For example, the finalize method for an object that represents an input/output connection might perform explicit I/O transactions to break the connection before the object is permanently discarded.
The finalize method of class Object performs no special action; it simply returns normally. Subclasses of Object may override this definition.
The Java programming language does not guarantee which thread will invoke the finalize method for any given object. It is guaranteed, however, that the thread that invokes finalize will not be holding any user-visible synchronization locks when finalize is invoked. If an uncaught exception is thrown by the finalize method, the exception is ignored and finalization of that object terminates.
After the finalize method has been invoked for an object, no further action is taken until the Java virtual machine has again determined that there is no longer any means by which this object can be accessed by any thread that has not yet died, including possible actions by other objects or classes which are ready to be finalized, at which point the object may be discarded.
The finalize method is never invoked more than once by a Java virtual machine for any given object.
Any exception thrown by the finalize
method causes
the finalization of this object to be halted, but is otherwise
ignored.
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |