collapse/expand nested container problem [message #83042] |
Tue, 10 June 2003 14:26  |
Eclipse User |
|
|
|
Originally posted by: jwoods.journee.com
I'm in the process of creating a nested container that will contain other
nodes with routes between those nodes. I'm trying to give this container
the ability to be shown in either an expanded or collapsed state (with the
contained nodes and routes visible or not visible).
Currently I can change the container's figure to not show the children when
"collapsed", but the routes between those children are still being shown
(nor are they updated as the container is moved/resized).
What should I be doing to make the routes disappear when the container is in
the "collapsed" state?
Thanks,
- Jason
|
|
|
|
|
|
Re: collapse/expand nested container problem [message #83948 is a reply to message #83872] |
Mon, 16 June 2003 08:42  |
Eclipse User |
|
|
|
Originally posted by: jwoods.journee.com
That's OK - I explicitly disallow that (it's not meaningfull to my
application).
Thanks,
- Jason
"Randy Hudson" <none@us.ibm.com> wrote in message
news:bcid78$n47$1@rogue.oti.com...
> This might be problematic if you have connection from the children to
nodes
> outside the container.
>
> "Jason Woods" <jwoods@journee.com> wrote in message
> news:bc863e$k8e$1@rogue.oti.com...
> >
> > Excellent! I was just redoing the figure inside the container's
> > refreshVisuals() to get rid of the child edit part's figures. Calling
> > refreshChildren() and having it not returning the children when in the
> > "collapsed" state got rid of the routes. It's obvious now that you've
> > mentioned it...
> >
> > Thanks,
> >
> > - Jason
> >
> >
> > "Eric Bordeau" <ebordeau@us.ibm.com> wrote in message
> > news:bc7h3p$ufl$1@rogue.oti.com...
> > > How are you preventing the children from showing up when the parent is
> > > collapsed? One way to do this is to return only the visible children
in
> > your
> > > edit part's getModelChildren() method. When you collapse the parent,
> the
> > child
> > > edit parts will be removed and their connections should also be
removed.
> > When
> > > you expand it, the child edit parts should be re-added and (I think)
the
> > > connections will also be re-added.
> > >
> > > Eric
> > >
> > >
> > > Jason Woods wrote:
> > > > I'm in the process of creating a nested container that will contain
> > other
> > > > nodes with routes between those nodes. I'm trying to give this
> > container
> > > > the ability to be shown in either an expanded or collapsed state
(with
> > the
> > > > contained nodes and routes visible or not visible).
> > > >
> > > > Currently I can change the container's figure to not show the
children
> > when
> > > > "collapsed", but the routes between those children are still being
> shown
> > > > (nor are they updated as the container is moved/resized).
> > > >
> > > > What should I be doing to make the routes disappear when the
container
> > is in
> > > > the "collapsed" state?
> > > >
> > > > Thanks,
> > > >
> > > > - Jason
> > > >
> > > >
> > > >
> > >
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03752 seconds