Thomas,

What I did when I wanted to open up some SuggestBox features was to
copy the source file into my project source tree so that it maintained
the same package, and therefore access to package-protected methods. I
made the minimum required changes to that class, trying to keep future
merges as easy as possible, and then wrote my custom extensions and
composites in my own package structure. That's worked for me so far.

Hope that helps.

- Isaac

On Tue, May 5, 2009 at 5:27 AM, darkflame <darkfl...@gmail.com> wrote:
>
> 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