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
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
>
> 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
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
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
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
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
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
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
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.
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
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
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
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
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
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
> 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
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
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
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
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
{
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
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
23 matches
Mail list logo