I totally agree - extending Composite is the way to go.
Composite Widgets are nice for encapsulating & localizing all the CRUD
associated with a single object like your text editor.
RichTextToolbar,java is a stock example of a widget that attaches itself to
your RichTextArea
See RichTextToolbar in action at
http://gwt.google.com/samples/Showcase/Showcase.html#!CwRichText
Source at
http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/content/text/RichTextToolbar.java?r=4142


On Fri, Jan 7, 2011 at 9:08 PM, Gal Dolber <[email protected]> wrote:

> mmm...
>
>    1. Use Composite!
>    2. Reduce to the minimum the number of widgets that compose your new
>    widget (Bulk html rendering + top level event capturing).
>    3. Learn all you can from native gwt widgets.
>    4. Make good use of interfaces [HasText, HasHTML, Foccusable..
>    everything you can find under com.google.gwt.user.client.ui]
>    5. UiBinder support! Design pojo-like widgets.
>    6. Use gwt's shared events when possible [SelectionEvent,
>    ValueChangeEvent, .... (under com.google.gwt.event.logical.shared)]
>    7. ~~~do not create your own event system? 
> :-J<http://www.sharpened.net/emoticons/smiley/tongue_in_cheek>
>    8. ~~~do not create your own panels and layout system? 
> :-J<http://www.sharpened.net/emoticons/smiley/tongue_in_cheek>
>
> This session is really recommendable:
> http://www.youtube.com/watch?v=7x4hun_Kqks
>
> Best
>
> On Sat, Jan 8, 2011 at 12:36 AM, Sebastian Coronado A. 
> <[email protected]>wrote:
>
>> Hello I was checking MVP explanation, it works for the whole
>> application but what if I want to create a single widget that does not
>> need transitions from one view to another. For example what design
>> pattern would you use to create a rich text editor.
>> regards
>>
>> --
>> 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]<google-web-toolkit%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>
>
> --
> Guit: Elegant, beautiful, modular and *production ready* gwt applications.
>
> http://code.google.com/p/guit/
>
>
>
>
>  --
> 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]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



-- 
-- A. Stevko
===========
"If everything seems under control, you're just not going fast enough." M.
Andretti

-- 
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