After having lots of trouble trying to extend DialogBox to have a
close button (
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/4ee8f8169c2e3594)
and it continuing to work in a sort-of not-very-well or flexible
manor, I decided to just copy and modify googles Dialog class.
Its probably what I should have done to start with rather then
continuing hacking away at it.

However, this is the first time I've tried rewriting a existing class,
and I'm not sure of the best way to do it.
I tried just cutting and pasting the DialogBox.class into my own
SpiffyDialogBox.java in my project, then changing the constructor
names ect to match. (and the package name).

However, this leaves lots of errors with non-visible methods that it
referances.
Specifically;
The constructor DecoratedPopupPanel(boolean, boolean, String) is not
visible

On the
super(autoHide, modal, "dialog");

line.

I can then copy over the DecoratedPopupPanel.class too, but then Id
have to fix similar errors in that, by copying over more stuff...etc
etc. Its like a fractal of references.

I'm probably doing this completely the wrong way, so any help would be
welcome ;)

Cheers,
-Thomas




--~--~---------~--~----~------------~-------~--~----~
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-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to