I don't often fire off programmatic events but there are a couple
cases where I need to and I can't figure out how to make it happen
since I've been transition to 1.6.
Before, as an example, I'd have something like this:
class MyClass implements ClickListener {
public MyClass() {
Button b = new Button("", this);
onClick(b); // programmatic click
}
public void onClick(Widget w) { ... }
}
But now in 1.6 I'm not sure how to make this happen. Looking at
creating my own ClickEvent object the constructor, says this:
"Protected constructor, use DomEvent.fireNativeEvent
(com.google.gwt.dom.client.NativeEvent,
com.google.gwt.event.shared.HasHandlers) to fire click events."
But looking up that method I can't figure out what it is asking for.
Could someone help me out with an example?
I searched through all the samples but nobody ever calls
fireNativeEvent. 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 [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
-~----------~----~----~----~------~----~------~--~---