public class NodeChangeEvent extends EventObject
请注意,尽管NodeChangeEvent继承了java.util.EventObject中的Serializable接口,但它并不是可串行化的。 实现适当的序列化方法来抛出NotSerializableException。
Preferences
, NodeChangeListener
, PreferenceChangeEvent
source
Constructor and Description |
---|
NodeChangeEvent(Preferences parent, Preferences child)
构造一个新的
NodeChangeEvent 实例。
|
Modifier and Type | Method and Description |
---|---|
Preferences |
getChild()
返回添加或删除的节点。
|
Preferences |
getParent()
返回添加或删除的节点的父节点。
|
getSource, toString
public NodeChangeEvent(Preferences parent, Preferences child)
NodeChangeEvent
实例。
parent
- 添加或删除的节点的父节点。
child
- 添加或删除的节点。
public Preferences getParent()
public Preferences getChild()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.