Preferences node to indicate that
a child of that node has been added or removed.Note, that although NodeChangeEvent inherits Serializable interface from java.util.EventObject, it is not intended to be Serializable. Appropriate serialization methods are implemented to throw NotSerializableException.
Preferences, NodeChangeListener, PreferenceChangeEvent
| Modifier and Type | Field and Description |
|---|---|
| private transient Preferences | child
The node that was added or removed. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | NodeChangeEvent(Preferences
The parent of the node that was added or removed. parent, Preferences The node that was added or removed. child)Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| public Preferences | |
| public Preferences | Returns: The parent Preferences node whose child was added or removedReturns the parent of the node that was added or removed. |
| private void | readObject(ObjectInputStream in)
Throws NotSerializableException, since NodeChangeEvent objects are not intended to be serializable. |
| private void | writeObject(ObjectOutputStream out)
Throws NotSerializableException, since NodeChangeEvent objects are not intended to be serializable. |
| child | back to summary |
|---|---|
| private transient Preferences child The node that was added or removed. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| NodeChangeEvent | back to summary |
|---|---|
| public NodeChangeEvent(Preferences parent, Preferences child) Constructs a new
| |
| getChild | back to summary |
|---|---|
| public Preferences getChild() Returns the node that was added or removed.
| |
| getParent | back to summary |
|---|---|
| public Preferences getParent() Returns the parent of the node that was added or removed.
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream in) throws NotSerializableException Throws NotSerializableException, since NodeChangeEvent objects are not intended to be serializable. | |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream out) throws NotSerializableException Throws NotSerializableException, since NodeChangeEvent objects are not intended to be serializable. | |