Skip to main content
Participant
Sep 7, 2009 10:06 AM UTC
Question

modelChanged on FlowGroupElement on add/remove

When calling addChild on a FlowGroupElement, modelChange is called for the added child. I think the parent model should be notified of the change as well (modelChange should be called on the parent).

If I missunderstood the usability of modelChange function, please offer an alternative. What I need is a generic function to override when the parent model changes (children are added, removed).

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Inspiring
Sep 9, 2009 2:56 PM UTC

I understand your point but the modelChanged calls don't bubble through the parent chain.  They generate TextFlow events.  The best thing you can do is listen for all modelChanged events and then check the parent chain.

Rich

Translate