Reviewers: jgw, Description: This patch moves GlassPanel from the incubator to the GWT trunk library. A subsequent patch will deprecate GlassPanel in incubator.
The GlassPanel is a semi-transparent pane that can block the page. It can also be used to block any AbsolutePanel. PopupPanels now support setGlassPanelEnabled(), which allows users to add a GlassPanel to a PopupPanel automatically. There are a few changes from the incubator version: - Styling has been moved to the default style themes so users can change background color and opacity. - The GlassPanel no longer supports an internal widget because the opacity of the GlassPanel will make the widget had to see. Instead, users can add their widget to the containing AbsolutePanel. - The GlassPanel no longer supports autoHide. In its place, the user can add ClickHandlers or MouseHandlers to hide the GlassPanel when appropriate. - GlassPanel no longer uses an internal Timer to match the document size. If something other than a resize event changes the document size (eg. font resize), the user must handle it manually. Testing: I verified that the GlassPanel works correctly on all browsers in quirks and standards mode. I added unit tests for common use cases. Please review this at http://gwt-code-reviews.appspot.com/39806 Affected files: samples/showcase/src/com/google/gwt/sample/showcase/client/content/popups/CwBasicPopup.java user/javadoc/com/google/gwt/examples/GlassPanelExample.java user/src/com/google/gwt/user/GlassPanel.gwt.xml user/src/com/google/gwt/user/User.gwt.xml user/src/com/google/gwt/user/client/ui/GlassPanel.java user/src/com/google/gwt/user/client/ui/PopupPanel.java user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome.css user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome_rtl.css user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark.css user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark_rtl.css user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard.css user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard_rtl.css user/test/com/google/gwt/user/UISuite.java user/test/com/google/gwt/user/client/ui/GlassPanelTest.java user/test/com/google/gwt/user/client/ui/PopupTest.java --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---