Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Which Layoutmanager isObservingVisibility?(ToolbarLayout does not honor setObservingVisibility)
Which Layoutmanager isObservingVisibility? [message #977384] Fri, 09 November 2012 08:39 Go to next message
Hiran Chaudhuri is currently offline Hiran ChaudhuriFriend
Messages: 3
Registered: November 2012
Junior Member
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 10:07 Go to previous messageGo to next message
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
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 18:42 Go to previous messageGo to next message
Hiran Chaudhuri is currently offline Hiran ChaudhuriFriend
Messages: 3
Registered: November 2012
Junior Member
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 18:43 Go to previous messageGo to next message
Hiran Chaudhuri is currently offline Hiran ChaudhuriFriend
Messages: 3
Registered: November 2012
Junior Member
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 09:16 Go to previous message
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
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: Thu Apr 18 00:16:41 GMT 2024

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

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

Back to the top