Re: Why Composite?

2011-04-24 Thread Gilles B
This is true but keep in mind that if you use inheritance to extent a widget your object must follow the "Is A..." rule. Il you extent a button with a new child class "MyButton" or "MyToolbar" you inherit all present and future methods, your object can be cast and used as a parent representative, i

Re: Why Composite?

2011-04-23 Thread Harald Schilly
When you want to design your own widget that modifies some data, you can combine more than one widget in such a Composite, additionally implement for example a HasValueChangeHandlers<...> interface, and much more. That helps to isolate all this into one class and you can use this as a bigger blo

Why Composite?

2011-04-23 Thread richip
Why would I wish to extend Composite instead of just extending the Widget that I'm wrapping in the Composite? -- 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 unsu