Skip to main content



      Home
Home » Eclipse Projects » GEF » collapse/expand nested container problem
collapse/expand nested container problem [message #83042] Tue, 10 June 2003 14:26 Go to next message
Eclipse UserFriend
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 #83287 is a reply to message #83042] Wed, 11 June 2003 11:16 Go to previous messageGo to next message
Eclipse UserFriend
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
>
>
>
Re: collapse/expand nested container problem [message #83509 is a reply to message #83287] Wed, 11 June 2003 17:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jwoods.journee.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
> >
> >
> >
>
Re: collapse/expand nested container problem [message #83872 is a reply to message #83509] Sun, 15 June 2003 14:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.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
> > >
> > >
> > >
> >
>
>
Re: collapse/expand nested container problem [message #83948 is a reply to message #83872] Mon, 16 June 2003 08:42 Go to previous message
Eclipse UserFriend
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
> > > >
> > > >
> > > >
> > >
> >
> >
>
>
Previous Topic:Multiple ConnectionLayers
Next Topic:Moving EditPart effect on other EditParts
Goto Forum:
  


Current Time: Tue Jul 22 08:35:08 EDT 2025

Powered by FUDForum. Page generated in 0.34980 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top