Re: GWT 1.6 Custom Event Handler

2009-04-30 Thread Miroslav Genov

Maybe one of the following articles will help you:
http://www.itsolut.com/chrismusings/?p=41
http://lemnik.wordpress.com/2009/03/04/gwts-new-event-model-handlers-in-gwt-16/
http://lemnik.wordpress.com/2009/03/12/using-event-handlers-in-gwt-16/

Regards,
  Miroslav

Micky wrote:
> Seems like the Observer pattern is the best way to create this
> functionality
>
> On Apr 27, 5:16 pm, Kelo  wrote:
>   
>> I wrote a post like yours asking for a guidance or something that it
>> can explain how I can create
>> my own handlers and events, and how I can make a drag & drop using
>> mouse handlers but my issue disappeared.
>>
>> On 27 abr, 17:55, Micky  wrote:
>>
>> 
>>> I’m building an application that is similar in layout to the Showcase
>>> example that is part of the GWT 1.6 install  - there is central
>>> DeckPanel that contains a number of content widgets and only one of
>>> these widgets can be displayed at any one time. However, whereas the
>>> content widget being displayed in the Showcase example is controlled
>>> by the Tree on the left of the screen, my content widgets need to
>>> cause other content widgets to display.
>>>   
>>> I’d like to be able to fire an event (e.g. ChangeContentWidgetEvent)
>>> from the content widgets and then have an application level handler
>>> manage the change in the DeckPanel.
>>>   
>>> Do I need to create a custom event for this? If so, can someone
>>> provide some guidance or good articles on doing so? Is there a better
>>> approach to what I’m trying to do?
>>>   
>>> Thanks.
>>>   
> >
>   


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



Re: GWT 1.6 Custom Event Handler

2009-04-30 Thread Micky

Seems like the Observer pattern is the best way to create this
functionality

On Apr 27, 5:16 pm, Kelo  wrote:
> I wrote a post like yours asking for a guidance or something that it
> can explain how I can create
> my own handlers and events, and how I can make a drag & drop using
> mouse handlers but my issue disappeared.
>
> On 27 abr, 17:55, Micky  wrote:
>
> > I’m building an application that is similar in layout to the Showcase
> > example that is part of the GWT 1.6 install  - there is central
> > DeckPanel that contains a number of content widgets and only one of
> > these widgets can be displayed at any one time. However, whereas the
> > content widget being displayed in the Showcase example is controlled
> > by the Tree on the left of the screen, my content widgets need to
> > cause other content widgets to display.
>
> > I’d like to be able to fire an event (e.g. ChangeContentWidgetEvent)
> > from the content widgets and then have an application level handler
> > manage the change in the DeckPanel.
>
> > Do I need to create a custom event for this? If so, can someone
> > provide some guidance or good articles on doing so? Is there a better
> > approach to what I’m trying to do?
>
> > Thanks.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: GWT 1.6 Custom Event Handler

2009-04-27 Thread Kelo

I wrote a post like yours asking for a guidance or something that it
can explain how I can create
my own handlers and events, and how I can make a drag & drop using
mouse handlers but my issue disappeared.

On 27 abr, 17:55, Micky  wrote:
> I’m building an application that is similar in layout to the Showcase
> example that is part of the GWT 1.6 install  - there is central
> DeckPanel that contains a number of content widgets and only one of
> these widgets can be displayed at any one time. However, whereas the
> content widget being displayed in the Showcase example is controlled
> by the Tree on the left of the screen, my content widgets need to
> cause other content widgets to display.
>
> I’d like to be able to fire an event (e.g. ChangeContentWidgetEvent)
> from the content widgets and then have an application level handler
> manage the change in the DeckPanel.
>
> Do I need to create a custom event for this? If so, can someone
> provide some guidance or good articles on doing so? Is there a better
> approach to what I’m trying to do?
>
> Thanks.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



GWT 1.6 Custom Event Handler

2009-04-27 Thread Micky

I’m building an application that is similar in layout to the Showcase
example that is part of the GWT 1.6 install  - there is central
DeckPanel that contains a number of content widgets and only one of
these widgets can be displayed at any one time. However, whereas the
content widget being displayed in the Showcase example is controlled
by the Tree on the left of the screen, my content widgets need to
cause other content widgets to display.

I’d like to be able to fire an event (e.g. ChangeContentWidgetEvent)
from the content widgets and then have an application level handler
manage the change in the DeckPanel.

Do I need to create a custom event for this? If so, can someone
provide some guidance or good articles on doing so? Is there a better
approach to what I’m trying to do?

Thanks.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---