Phineas Gage,
I haven't tried it, but you could probably override either the
showStack or onBrowserEvent method. Probably showStack, something like
this:
@Override
public void showStack(int index) {
super.showStack(index);
if (index == getSelectedIndex()) {
onShowStack();
}
}
And, of course, create an onShowStack method that would only be called
when the stack is changed.
HTH,
Chad
On Aug 28, 1:26 am, Phineas Gage <[email protected]> wrote:
> When using a StackPanel, is there any way to listen for when the
> selected index of the StackPanel changes?
>
> I see that it can be retrieved with getSelectedIndex() and set with
> showStack(index), but there is no apparent way to be called when
> someone clicks to set the current index. I'd like to do this so that I
> can set a history token and restore the StackPanel to its original
> state when the back button is pressed or an external link is used...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---