CssGradientUtil util = GWT.create(CssGradientUtil.class);
return util.getGradient(...);
To make that work, have getGradient be a non-static method, overridden in CssGradientUtilIE7. GWT.create will go through the rebind rules and create an instance that fits best, and you can use normal java inheritance to get the overridden method.
There is no need for the first replace-with block, that replaces a class with itself.
-- return util.getGradient(...);
To make that work, have getGradient be a non-static method, overridden in CssGradientUtilIE7. GWT.create will go through the rebind rules and create an instance that fits best, and you can use normal java inheritance to get the overridden method.
There is no need for the first replace-with block, that replaces a class with itself.
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/-/OfPfQzYb4EwJ.
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