Most visited

Recently visited

Added in API level 1

NodeChangeEvent

public class NodeChangeEvent
extends EventObject

java.lang.Object
   ↳ java.util.EventObject
     ↳ java.util.prefs.NodeChangeEvent


Preferences节点发出的事件,指示该节点的子节点已被添加或删除。

请注意,虽然NodeChangeEvent从java.util.EventObject继承了Serializable接口,但它并不是可序列化的。 实施适当的序列化方法来抛出NotSerializableException。

也可以看看:

Summary

Inherited fields

From class java.util.EventObject

Public constructors

NodeChangeEvent(Preferences parent, Preferences child)

构造一个新的 NodeChangeEvent实例。

Public methods

Preferences getChild()

返回已添加或删除的节点。

Preferences getParent()

返回已添加或删除的节点的父节点。

Inherited methods

From class java.util.EventObject
From class java.lang.Object

Public constructors

NodeChangeEvent

Added in API level 1
NodeChangeEvent (Preferences parent, 
                Preferences child)

构造一个新的 NodeChangeEvent实例。

Parameters
parent Preferences: The parent of the node that was added or removed.
child Preferences: The node that was added or removed.

Public methods

getChild

Added in API level 1
Preferences getChild ()

返回已添加或删除的节点。

Returns
Preferences The node that was added or removed.

getParent

Added in API level 1
Preferences getParent ()

返回已添加或删除的节点的父节点。

Returns
Preferences The parent Preferences node whose child was added or removed

Hooray!