java.util.prefs
Class NodeChangeEvent

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject 
      extended by java.util.prefs.NodeChangeEvent
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable

public class NodeChangeEvent
extends EventObject sample code for java.util.EventObject definition code for java.util.EventObject

An event emitted by a 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.

Since:
1.4
See Also:
Preferences sample code for java.util.prefs.Preferences definition code for java.util.prefs.Preferences , NodeChangeListener sample code for java.util.prefs.NodeChangeListener definition code for java.util.prefs.NodeChangeListener , PreferenceChangeEvent sample code for java.util.prefs.PreferenceChangeEvent definition code for java.util.prefs.PreferenceChangeEvent

Field Summary
 
Fields inherited from class java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject
source sample code for java.util.EventObject.source definition code for java.util.EventObject.source
 
Constructor Summary
NodeChangeEvent sample code for java.util.prefs.NodeChangeEvent.NodeChangeEvent(java.util.prefs.Preferences, java.util.prefs.Preferences) definition code for java.util.prefs.NodeChangeEvent.NodeChangeEvent(java.util.prefs.Preferences, java.util.prefs.Preferences) (Preferences sample code for java.util.prefs.Preferences definition code for java.util.prefs.Preferences  parent, Preferences sample code for java.util.prefs.Preferences definition code for java.util.prefs.Preferences  child)
          Constructs a new NodeChangeEvent instance.
 
Method Summary
 Preferences sample code for java.util.prefs.Preferences definition code for java.util.prefs.Preferences getChild sample code for java.util.prefs.NodeChangeEvent.getChild() definition code for java.util.prefs.NodeChangeEvent.getChild() ()
          Returns the node that was added or removed.
 Preferences sample code for java.util.prefs.Preferences definition code for java.util.prefs.Preferences getParent sample code for java.util.prefs.NodeChangeEvent.getParent() definition code for java.util.prefs.NodeChangeEvent.getParent() ()
          Returns the parent of the node that was added or removed.
 
Methods inherited from class java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject
getSource sample code for java.util.EventObject.getSource() definition code for java.util.EventObject.getSource() , toString sample code for java.util.EventObject.toString() definition code for java.util.EventObject.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

NodeChangeEvent sample code for java.util.prefs.NodeChangeEvent(java.util.prefs.Preferences, java.util.prefs.Preferences) definition code for java.util.prefs.NodeChangeEvent(java.util.prefs.Preferences, java.util.prefs.Preferences)

public NodeChangeEvent(Preferences sample code for java.util.prefs.Preferences definition code for java.util.prefs.Preferences  parent,
                       Preferences sample code for java.util.prefs.Preferences definition code for java.util.prefs.Preferences  child)
Constructs a new NodeChangeEvent instance.

Parameters:
parent - The parent of the node that was added or removed.
child - The node that was added or removed.
Method Detail

getParent sample code for java.util.prefs.NodeChangeEvent.getParent() definition code for java.util.prefs.NodeChangeEvent.getParent()

public Preferences sample code for java.util.prefs.Preferences definition code for java.util.prefs.Preferences  getParent()
Returns the parent of the node that was added or removed.

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

getChild sample code for java.util.prefs.NodeChangeEvent.getChild() definition code for java.util.prefs.NodeChangeEvent.getChild()

public Preferences sample code for java.util.prefs.Preferences definition code for java.util.prefs.Preferences  getChild()
Returns the node that was added or removed.

Returns:
The node that was added or removed.