Skip to main content



      Home
Home » Eclipse Projects » GEF » Which Layoutmanager isObservingVisibility?(ToolbarLayout does not honor setObservingVisibility)
Which Layoutmanager isObservingVisibility? [message #977384] Fri, 09 November 2012 03:39 Go to next message
Eclipse UserFriend
Hi there.

I use some figures that arrange their children using ToolbarLayout.
Now when I hide some children using setVisiblity(false) their space is rendered empty as the layout does not change.

When I found the method setObservingVisibility() I expected that upon making one child invisible the LayoutManager would re-layout the figure and shrink it to the new size. However this does not happen on ToolbarLayout.

Any idea what is going wrong?
Re: Which Layoutmanager isObservingVisibility? [message #986174 is a reply to message #977384] Mon, 19 November 2012 05:07 Go to previous messageGo to next message
Eclipse UserFriend
Hi, the only LayoutManager that is observing the visibility of figure's children the is the StackLayout.
Re: Which Layoutmanager isObservingVisibility? [message #986295 is a reply to message #986174] Mon, 19 November 2012 13:42 Go to previous messageGo to next message
Eclipse UserFriend
Jan Krakora wrote on Mon, 19 November 2012 05:07
Hi, the only LayoutManager that is observing the visibility of figure's children the is the StackLayout.

Thank you for responding, Jan.

Hmm, if that is intentionally then I'd like to see that being documented, or a call to setObservingVisibility(true) to throw an UnsupportedOperationException.

But even more than that I'd like to hide some Elements and thus shrink the Figure. Is there a recommended way of doing that?
Re: Which Layoutmanager isObservingVisibility? [message #986296 is a reply to message #986174] Mon, 19 November 2012 13:43 Go to previous messageGo to next message
Eclipse UserFriend
Jan Krakora wrote on Mon, 19 November 2012 05:07
Hi, the only LayoutManager that is observing the visibility of figure's children the is the StackLayout.

Thank you for responding, Jan.

Hmm, if that is intentionally then I'd like to see that being documented, or a call to setObservingVisibility(true) to throw an UnsupportedOperationException.

But even more than that I'd like to hide some Elements and thus shrink the Figure. Is there a recommended way of doing that?
Re: Which Layoutmanager isObservingVisibility? [message #986367 is a reply to message #986296] Tue, 20 November 2012 04:16 Go to previous message
Eclipse UserFriend
I don't think so. The ToolbarLayout just doesn't take the visibility into account. It's an optional feature.

I haven't do that yet, but what about remove that figure from it's parent for a while instead of making it invisible?
Previous Topic:Minimun ellipse bound that contain a point relative to the bound's origin
Next Topic:[Zest] Adding Label to graph
Goto Forum:
  


Current Time: Wed Jul 23 14:43:52 EDT 2025

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

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

Back to the top