Most visited

Recently visited

Added in API level 1

EventObject

public class EventObject
extends Object implements Serializable

java.lang.Object
   ↳ java.util.EventObject
Known Direct Subclasses
Known Indirect Subclasses


所有事件状态对象应从其派生的根类。

所有事件都是参照对象,即“源”,在逻辑上被认为是有关事件最初发生的对象。

Summary

Fields

protected Object source

事件最初发生的对象。

Public constructors

EventObject(Object source)

构建一个原型事件。

Public methods

Object getSource()

事件最初发生的对象。

String toString()

返回此EventObject的字符串表示形式。

Inherited methods

From class java.lang.Object

Fields

source

Added in API level 1
Object source

事件最初发生的对象。

Public constructors

EventObject

Added in API level 1
EventObject (Object source)

构建一个原型事件。

Parameters
source Object: The object on which the Event initially occurred.
Throws
IllegalArgumentException if source is null.

Public methods

getSource

Added in API level 1
Object getSource ()

事件最初发生的对象。

Returns
Object The object on which the Event initially occurred.

toString

Added in API level 1
String toString ()

返回此EventObject的字符串表示形式。

Returns
String A a String representation of this EventObject.

Hooray!