Good luck,
--Rob
On Friday, July 27, 2012 2:06:34 PM UTC-7, Mark Wengranowski wrote:
OK, if i do that i can call event.cancel() wich stops it from changing.
My button that changes the stackpanel to the next stack uses the showWidget(int) method and when i call that it triggers the same event which is then cancelled. Is there a work around for this? I guess i could just put in a switch or something that would detect if it was a header click vs a button click?
On Friday, July 27, 2012 1:14:22 PM UTC-7, Rob Whiteside wrote:Looks like you can register a "BeforeSelectionHandler" then just call cancel on the event. Looks like that's what it's intended for.--Rob
On Friday, July 27, 2012 9:13:43 AM UTC-7, Mark Wengranowski wrote:Hi Everyone,
I want my stacklayoutpanel to only change stacks when i click on a button i've created and not when someone clicks on the header. i.e. i only want the stack to change once my validation has passed.
The only way I can see to do this is to copy/paste the StackLayoutPanel.java code into my own file and remove the handler that gets added to the header. Then use my custom SLP for my ui.
Does anyone have a better alternative? I'm unable to override the insert method for stacklayoutpanel
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/215RS1kM9OQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment