Re: how to determine when StackPanel index changes?

2009-08-31 Thread Phineas Gage
It works, thanks... On Aug 28, 6:57 pm, Chad chad...@gmail.com wrote: 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) {    

how to determine when StackPanel index changes?

2009-08-28 Thread Phineas Gage
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

Re: how to determine when StackPanel index changes?

2009-08-28 Thread Chad
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();