Creating new "app" windows, not actual browser Windows

1 view
Skip to first unread message

Open eSignForms

unread,
Nov 22, 2009, 9:03:27 PM11/22/09
to Google Web Toolkit
There are several objects I have where from the list of objects, when
one is selected, I'd like to simply open up a new window (DialogBox?)
that can popup within the browser window to show the details about the
selected object, allowing it to be viewed in full, modified/saved,
create a new object like it, or delete it.

Is there a GWT widget that's geared for this, with a "close" box in
the upper right corner, etc.? It might be nice if it can be resized
so if the user wants to bring up two objects, he can compare them side-
by-side. Clearly, it's not modal and should not close until
dismissed.

I'd prefer not to create new browser Windows because that implies a
new EntryPoint, etc. I'd like to just keep it within my single page
view.

Thanks!

Davis Ford

unread,
Nov 22, 2009, 9:36:07 PM11/22/09
to google-we...@googlegroups.com
Hey,

DialogBox is the simplest thing that will work here.  The only downside to it is that it is not re-sizable.  If you know the content will be some kind of UI form you create and the form fields are constant and the content is relatively small, dialog box works perfect here.  I would set the X, Y coordinates that you spawn the form at, however -- otherwise, it can sometimes be off the viewable canvas.  I know you checked my paging scroll table demo out -- if you click any row there it uses DialogBox to pop it up.  You can put a Save/Cancel button on it, etc. to do what you want, and make it modal (or not).

Hope that helps,
Davis


--

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=.





--
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977

Yozons Support on Gmail

unread,
Nov 24, 2009, 2:47:38 PM11/24/09
to google-we...@googlegroups.com
Thanks much.  The DialogBox works pretty well for me, but was hoping the title bar would hold the close button like a regular window, but it's fine to have it at just below.

Because these dialogs need to outlive the panel that swaps in and creates them, I'm using an EventBus to open them in my "main app panel" that comes up after login, and it keeps track of all the Dialogs that are open so if the user comes back and selects the same "row" from the PagingScrollTable, I just center the existing dialog, else I launch a new Dialog.

I've not yet figured out whether I should have my own subclassed DialogBox that does some of the common stuff yet, but suspect it will make sense as I build more than the one I'm working now.

The only downside I've seen so far is that when I click to sort the columns on the PagingScrollTable, the existing selected row is fired again so my PagingScrollTable tells me it's selected again, so I do the Dialog open again (which now just causes it to be centered again), which is odd, but not a showstopper.

And that bug could be resolved if there were a way to tell the PagingScrollTable to unselect rows since the header column sort would not fire if it were not still selected.  I'd love to unselect it once the action related to being selected takes place, just haven't figured out how yet....

Thanks again!
Reply all
Reply to author
Forward
0 new messages