public class NodeChangeEvent
extends EventObject
java.lang.Object | ||
↳ | java.util.EventObject | |
↳ | java.util.prefs.NodeChangeEvent |
由 Preferences节点发出的事件,指示该节点的子节点已被添加或删除。
请注意,虽然NodeChangeEvent从java.util.EventObject继承了Serializable接口,但它并不是可序列化的。 实施适当的序列化方法来抛出NotSerializableException。
Inherited fields |
---|
From class java.util.EventObject
|
Public constructors |
|
---|---|
NodeChangeEvent(Preferences parent, Preferences child) 构造一个新的 |
Public methods |
|
---|---|
Preferences |
getChild() 返回已添加或删除的节点。 |
Preferences |
getParent() 返回已添加或删除的节点的父节点。 |
Inherited methods |
|
---|---|
From class java.util.EventObject
|
|
From class java.lang.Object
|
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. |
Preferences getChild ()
返回已添加或删除的节点。
Returns | |
---|---|
Preferences |
The node that was added or removed. |
Preferences getParent ()
返回已添加或删除的节点的父节点。
Returns | |
---|---|
Preferences |
The parent Preferences node whose child was added or removed |