Status: New
Owner: ----

New issue 87 by allain.lalonde: property changes are not cascading to  
parent nodes
http://code.google.com/p/piccolo2d/issues/detail?id=87

What steps will reproduce the problem: The following code does:
public void testPropertyChangesCascadeToParent() {
   PNode aParent = new PNode();                         
   final List changes = new ArrayList();                
   PropertyChangeListener listener = new PropertyChangeListener(){              
        
     public void propertyChange(PropertyChangeEvent evt) {
       changes.add(evt);
     }
   };
   aParent.addPropertyChangeListener(PNode.PROPERTY_BOUNDS, listener);
                
   PNode aChild = new PNode();
   aChild.setPropertyChangeParentMask(PNode.PROPERTY_CODE_BOUNDS);
   aParent.addChild(aChild);
                
   aChild.setBounds(0, 0, 100, 100);
   assertFalse(changes.isEmpty());
}

What is the expected output? What do you see instead?
Expected output is that the test should pass, but it fails on the last
line. If the event were cascaded to its parent then I'd think that handler
would have fired.

What version of the product are you using? On what operating system?
1.2.1

Please provide any additional information below.
   I like Turtles.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to