Hello,

I wish to create a decorated menubar version by extending the menubar
class (in the same way as decoratedstackpanel extends stackpanel).
Would something like this be possible? The decorated menubar would
need to wrap a decoratorpanel around the menubar.

I know it would be easier to just create a decorator panel with a
menubar inside, but I have some other methods that take a menubar as
an argument and would like that these also work with the decorated
menubar.

I am trying to do this, but the parent.replaceChild(...) line crashes:

Element parent = DOM.getParent(instance.getElement());

DecoratorPanel dp = new DecoratorPanel();
dp.add( instance );

parent.replaceChild(dp.getElement(), instance.getElement());

Any ideas, suggestions, ... welcome.

Cheers
Tom
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to