I can't really understand what you are asking or saying.
If you want the widget to remain visible but to stop receiving events, do
what Jens said: suppress the event handling logic in the event handler.
If you want the widget to stop being visible and to stop receiving events,
just do what I sai
El lunes, 29 de octubre de 2012 21:46:34 UTC+1, Jens escribió:
>
> When you create two HelloWorld widgets each of them receives its own
> events. If you use @UiHandler in your UiBinder widget and you want to stop
> receive events for a widget without removing the widget itself from the
> paren
>
> If you want to "destroy" h1, and have it stop reacting to events, simply
> remove it from the dom and ensure it is garbage collected (ie. set your
> reference to null):
>
> panel.remove(h1);
> h1 = null;
>
Thanks
Garbage collected? I thought that we were in a Javascript world
Setting to n
When you create two HelloWorld widgets each of them receives its own
events. If you use @UiHandler in your UiBinder widget and you want to stop
receive events for a widget without removing the widget itself from the
parent (for whatever reason) you have to "disable" your @UiHandler
implementati
Sorry there is a typo there.
GWT.getRoot().add(panel);
should be
RootPanel.get().add(panel);
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/U6
I presume by uibinder owner you mean your HelloWorld class overrides the
onEvent() method, is that correct?
I also presume that you have some other component that is using the
HelloWorld objects and attaching them to the view.
For example, in your EntryPoint:
HelloWorld h1 = new HelloWorld();
H
Hi:
I use GWT 2.3 and this question may sound a little bit weird
I create a Widget component calling
initWidget(uiBinder.createAndBindUi(this)) into uibinder owner constructor
method.
public HelloWorld()
{
initWidget(uiBinder.createAndBindUi(this));
}
Therefore, uibinder owner implem