Sumit, Thanks for your help. I deceided to not use the StackPanel in this way. I figure they must have had a reason to take away the functionality so I found a different solution. I appreciate your efforts though.
Best regards, David On Oct 31, 9:27 pm, Sumit Chandel <sumitchan...@google.com> wrote: > Hello again, > What I meant was, you would probably have a method like the following to > make the calls to setStackVisible() and set the visibleStack field: > > private native void closeAll(StackPanel stackPanel) /*-{ > stackpan...@com.google.gwt.user.client.ui.stackpanel > ::setStackVisible(IZ)(stackpan...@com.google.gwt.user.client.ui.stackpanel::visibleStack, > false); > stackpan...@com.google.gwt.user.client.ui.stackpanel::visibleStack = -1; > }-*/; > > I just changed the name of the method to something more meaningful. > > Cheers, > -Sumit Chandel > > On Fri, Oct 31, 2008 at 7:26 PM, Sumit Chandel <sumitchan...@google.com>wrote: > > > > > Hi David, > > Although the stackPanel.showStack(n < 0) behaviour was never documented, I > > agree with you that it is functionality that should be present to allow for > > collapsing all entries in a stack panel. > > > I've updated Issue #1188 (link below) to make sure this gets on the team's > > radar and that the functionality is reimplemented in some form. > > > Issue #1188: > >http://code.google.com/p/google-web-toolkit/issues/detail?id=1188 > > > In the meantime, you can workaround the issue by using the Violator pattern > > - that is, defining some JSNI methods that make bridge method calls / field > > accesses to your stack panel's setStackVisible(visibleStack, false) method > > and visibleStack field. > > > You would need to set the visibleStack to -1 as well. The code would look > > something like this: > > > private native void setVisibleStackToMinus1(StackPanel stackPanel) /*-{ > > stackpan...@com.google.gwt.user.client.ui.stackpanel > > ::setStackVisible(IZ)(stackpan...@com.google.gwt.user.client.ui.stackpanel::visibleStack, > > false); > > stackpan...@com.google.gwt.user.client.ui.stackpanel::visibleStack = -1; > > }-*/; > > > Hope that helps, > > -Sumit Chandel > > > On Sat, Oct 25, 2008 at 8:03 AM, David E. <dve1...@gmail.com> wrote: > > >> StackPanel stackPanel; > > >> stackPanel.showStack(-1); > > >> Would close the stackPanel in 1.4 but does not work in 1.5. > > >> Why was this functionality removed and what is the work around, if > >> there is one? > > >> Thanks,- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---