Re: Event Bubbling

2014-02-13 Thread Thomas Broyer
I think there were examples in the slides for architecturing GWT apps for performance at I/O 2010 or 2012. You'll find a few examples in Cell implementations, and UiRenderer is based it too (easier than rolling your own, but it's useful to know what it all means) -- You received this message b

Re: Event Bubbling

2014-02-13 Thread Ed
AM, Axel R wrote: > Hi Ed, >> > I am looking for a simple exemple of 'event bubbling'...Just like the one > you were talking about...an HTMLPanel that has various buttons and I want > to intercept the clickEvent of each of them...Maybe you could post a little > o

Re: Event Bubbling

2014-02-13 Thread Axel R
> > Hi Ed, > I am looking for a simple exemple of 'event bubbling'...Just like the one you were talking about...an HTMLPanel that has various buttons and I want to intercept the clickEvent of each of them...Maybe you could post a little of code illustrating how you did it

Re: addDomHandler and event bubbling

2012-11-15 Thread Ümit Seren
Thanks for the explanation. On Thu, Nov 15, 2012 at 3:16 PM, Thomas Broyer wrote: > > > On Thursday, November 15, 2012 1:42:56 PM UTC+1, Ümit Seren wrote: >> >> I have some troubles understanding event bubbling and GWT. >> >> Let&#x

Re: addDomHandler and event bubbling

2012-11-15 Thread Thomas Broyer
On Thursday, November 15, 2012 1:42:56 PM UTC+1, Ümit Seren wrote: > > I have some troubles understanding event bubbling and GWT. > > Let's assume I have following structure: > > > >Text > > > > When I want to handle click events on

addDomHandler and event bubbling

2012-11-15 Thread Ümit Seren
I have some troubles understanding event bubbling and GWT. Let's assume I have following structure: Text When I want to handle click events on the elements nested in the HTMLPanel I add a DOM handler to the HTMLPanel: HTMLPanel.addDomHandler(new ClickHa

Re: Event Bubbling

2011-12-06 Thread Ed
The event bubbling you are looking for has nothing to do with GWT. It's a java design issue. Like Ashton suggests: use a local (or global) event bus. Or a parent child relation. Example: Archive controller with a Declaration and Wallet Archive controller that will show them self depending i

Re: Event Bubbling

2011-12-06 Thread Ashton Thomas
You can use a global EventBus: http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/event/shared/SimpleEventBus.html and just have only the widgets that need to listen for particular events (you can add custom events for any situation) register with the global EventBus

Event Bubbling

2011-12-06 Thread Oussema Gabtni
Hello, Is it possible in GWT to use Event bubbling? For example i would like to propagate an event from a GWT component to all it's sub components. Is there a mechanism that implements this feature? Thanks a lot for the reply -- You received this message because you are subscribed t

Re: custom event + event bubbling

2011-06-27 Thread Ashwin Desikan
se buttons, and I still catch the click > event because of the principle of event bubbling, that's the default > behavior in JS DOM events. > > Now my question was if I can use event bubbling with custom events > created by me. > > > On Jun 26, 2:40 am, "ashwin.

Re: custom event + event bubbling

2011-06-26 Thread isern
o the widget that contains those buttons, and I still catch the click event because of the principle of event bubbling, that's the default behavior in JS DOM events. Now my question was if I can use event bubbling with custom events created by me. On Jun 26, 2:40 am, "ashwin.desi...@gm

Re: custom event + event bubbling

2011-06-25 Thread ashwin.desi...@gmail.com
for listening on events on your widget you can define UiHandler or Attach / Add handlers for example, if you have a button defined in your UIBinder Hello now if you want to listen on click event of this button, you can do either of these two operations @UiHandler("button1") public void OnButton

Re: custom event + event bubbling

2011-06-25 Thread isern
I come from the Flex/JS/Tapestry worlds and a technique commonly used is to attach listeners to certain events expecting they'll will go up like a bubble through the component hierarchy. Actually if I'm not wrong this kind of behavior also occurs with native hardware events in GWT. A typical examp

Re: custom event + event bubbling

2011-06-24 Thread Ashwin Desikan
what sort of events are you looking to capture? You can create custom events and register those events with the eventBus. When ever that event occurs all handlers would receive a notification and you can take necessary action. Thanks Ashwin -- You received this message because you are subscrib

custom event + event bubbling

2011-06-24 Thread isern
Hello, I was wondering, is it possible to bubble up a custom event through the widget hierarchy? The EventBus solution seems great but in some cases I'd like to catch certain events related to the "current context" that's usually given by the UI. Thanks..! -- You received this message because

GWT Event Bubbling

2011-02-18 Thread Brandon Donnelson
How I event bubble using change handlers. I also use client persistence through out my applications and can throw global events. This isn't the native gwt event system but works good for me. http://demobubbleup.appspot.com/ - demo http://code.google.com/p/gwt-examples/wiki/Navigation - wiki Bra

Re: UiBinder and event bubbling

2010-12-21 Thread Thomas Broyer
> the parent container and used event bubbling. Can I do this in > UIBinder? Yes, UiBinder is only generating Java code from the XML, Java code that you could write by hand. > I know in the backing class for the yourclass.ui.xml, you > can use UiHandler to handle event delegation b

UiBinder and event bubbling

2010-12-21 Thread alab
Prior to UIBinder in gwt, I wrapped elements in a HTMPanel which basically handled all the events for its child elements. So instead of attaching an eventlistener to multiple widgets, I just attached it to the parent container and used event bubbling. Can I do this in UIBinder? I know in the

Re: event bubbling and safe stopPropagation()?

2009-05-08 Thread Ed
He Thomas, Thanks again for the info. Exactly what I was looking for. Too bad that not all events bubble up so you can always subscribe your listeners to one of his parents.. This would make it more transparent. This is espcially usefull when you have a panel with a view and edit mode. The view

Re: event bubbling and safe stopPropagation()?

2009-05-07 Thread Thomas Broyer
On 7 mai, 23:14, Ed wrote: > Hellu, > > I am trying to get a better understanding of the event bubbling and > canceling an event: > 1) Does all gwt events bubble up? even if the parent itself doesn't > support the gwt event? http://code.google.com/webtool

event bubbling and safe stopPropagation()?

2009-05-07 Thread Ed
Hellu, I am trying to get a better understanding of the event bubbling and canceling an event: 1) Does all gwt events bubble up? even if the parent itself doesn't support the gwt event? So a Panel should receive the focus event of contained textbox? 2) Suppose I have panel with a textbox

Re: Event Bubbling and GWT

2008-09-10 Thread Folke
{ if (w == innerWidget) { ... } } On Sep 11, 1:43 am, "Gerwood Stewart" <[EMAIL PROTECTED]> wrote: > Does GWT allow control of event Bubbling. A composite widget I'm playing > with at the moment has to click events. One on an inner widget and a > 'default' e

Event Bubbling and GWT

2008-09-10 Thread Gerwood Stewart
Does GWT allow control of event Bubbling. A composite widget I'm playing with at the moment has to click events. One on an inner widget and a 'default' event for the rest of the widget. I don't want the 'default' event to trigger if the inner widget is clicked on. D