I am using Smart GWT Power User 3.0. In my application, I am creating a Window and populating it with various Smart GWT widgets. My end user wishes to be able to drag the window outside of the browser boundary so that it doesn't cover existing widgets in the main browser window. Is this possible with the Window object? If not, is there a different way of accomplishing this?
Announcement
Collapse
No announcement yet.
X
-
There's no way in a web browser to just drag out a DHTML/JS Window component to create a new OS-level window (this would be a browser sandbox issue). The closest thing is to offer a "pop-out" button that uses window.open() to create a new browser window which includes a subset of the user interface - this is style used in gmail, for instance (although gmail is not GWT).
The URL of this new browser window can either be a distinct GWT EntryPoint, or just has URL parameters which the Java code in your EntryPoint detect and uses to show just certain UI components.
Any communication between the two browser windows is usually best accomplished via relaying through the server. Cross-frame communication is full of nasty surprises with just JavaScript, and GWT's JSNI makes it more complex yet.
-
Thank you for the quick response. I would like to attempt your second suggestion:
"...or just has URL parameters which the Java code in your EntryPoint detect and uses to show just certain UI components"
I am not that familiar with the EntryPoint code. I see my EntryPoint class overwrites onModuleLoad() but that's all it does. I would appreciate it if you could just briefly describe where I would put code to detect the URL parameters and what that codes signature would be.
Comment
Comment