Build 1.0_r1(from source)

java.util.prefs
Class NodeChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by java.util.prefs.NodeChangeEvent
All Implemented Interfaces:
Serializable

public class NodeChangeEvent
extends EventObject
implements Serializable

This is the event class to indicate one child of the preferences node has been added or deleted.

Please note that this class cannot be serialized actually, so relevant serialization methods only throw NotSerializableException.

Since:
1.4
See Also:
Preferences, NodeChangeListener, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
NodeChangeEvent(Preferences p, Preferences c)
          Construct a new NodeChangeEvent instance.
 
Method Summary
 Preferences getChild()
          Get the child Preferences node that was added or removed.
 Preferences getParent()
          Get the Preferences instance that this event happened.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeChangeEvent

public NodeChangeEvent(Preferences p,
                       Preferences c)
Construct a new NodeChangeEvent instance.

Parameters:
p - the Preferences instance that this event happened, this object is considered as event's source.
c - the child Preferences instance that was added or deleted.
Method Detail

getParent

public Preferences getParent()
Get the Preferences instance that this event happened.

Returns:
the Preferences instance that this event happened.

getChild

public Preferences getChild()
Get the child Preferences node that was added or removed.

Returns:
the child Preferences node that was added or removed.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature