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) /*-{
  [EMAIL PROTECTED]
::setStackVisible(IZ)([EMAIL PROTECTED]::visibleStack,
false);
  [EMAIL PROTECTED]::visibleStack = -1;
  }-*/;

Hope that helps,
-Sumit Chandel

On Sat, Oct 25, 2008 at 8:03 AM, David E. <[EMAIL PROTECTED]> 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,
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to