org.beanfabrics.context
Class ParentRemovedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.beanfabrics.context.ContextEvent
          extended by org.beanfabrics.context.ParentRemovedEvent
All Implemented Interfaces:
java.io.Serializable

public class ParentRemovedEvent
extends ContextEvent

An event which indicates that a parent context has been removed from the event source.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ParentRemovedEvent(Context source, Context parent)
          Contructs a new ParentRemovedEvent.
 
Method Summary
 Context getParent()
          Returns the context that has been removed from the event source's list of parents.
 
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

ParentRemovedEvent

public ParentRemovedEvent(Context source,
                          Context parent)
Contructs a new ParentRemovedEvent.

Parameters:
source -
parent -
Method Detail

getParent

public Context getParent()
Returns the context that has been removed from the event source's list of parents.

Returns:
the context that has been removed from the event source's list of parents