net.sf.doolin.bus.bean
Class ParentBean

java.lang.Object
  extended by net.sf.doolin.bus.bean.ParentBean
All Implemented Interfaces:
IParentBean

public class ParentBean
extends Object
implements IParentBean

This class defines the relationship between a Bean and its parent in an object hierarchy.

Author:
Damien Coraboeuf

Constructor Summary
ParentBean(Object parent, String propertyInParent)
          Constructor for the association between a parent and the property that contains the child.
 
Method Summary
 void notifyForChild(String propertyName, Object oldValue, Object newValue)
          Notifies the change of the child from the parent level
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParentBean

public ParentBean(Object parent,
                  String propertyInParent)
Constructor for the association between a parent and the property that contains the child.

Parameters:
parent - Reference to the parent bean
propertyInParent - Property in the parent that contains the child bean
Method Detail

notifyForChild

public void notifyForChild(String propertyName,
                           Object oldValue,
                           Object newValue)
Notifies the change of the child from the parent level

Specified by:
notifyForChild in interface IParentBean
Parameters:
propertyName - Property in the child
oldValue - Old value for this property
newValue - New value for this property


Copyright © 2011. All Rights Reserved.