Do i need to recompile the GWT sources for that ?
It seems that i can not override the DOMImplSafari...so it seems that
a re-compilation is required...
I there a document/tuto with the differents mandatory steps to create
a new DOMImpl ?
Is there a list of class to implement when adding a new DOMImpl ?
(DOMImpl, UserAgent.gwt.xml, Creating new DomEvent...)
Is there allready a DOMImplIphone implementation (GoogleWave is
available on the iPhone....pearhaps are they using a dedicated
implementation) ??
Fred.
If I find the answer I'll let you know.
Cheers,
Dave
1. I have overloaded the DOMImpl class. The new overloaded class must
be in a package named com.google.gwt.user.client.impl
2. I have created dedicated events (extending DomEvent)
3. I have created dedicated handlers (extending EventHandler)
4. I have created dedicated HasHandlers
5. In my module file i have added:
<replace-with class="com.google.gwt.user.client.impl.MyDomImpl">
<when-type-is class="com.google.gwt.user.client.impl.DOMImpl"/>
<when-property-is name="user.agent" value="safari"/>
</replace-with>
6. I have created a new Widget implementing the
public HandlerRegistration add<Your>Handler(<Your>Handler handler) {
return addDomHandler(handler, <Your>Event.getType());
}
7. My application create the new widget and call the
add<Your>Handler...
... and it works perfectly...
Hope it can help...
On 31 déc, 01:28, DaveC <david.andrew.chap...@googlemail.com> wrote:
> It seems I'm trying to do the same thinghttp://groups.google.com/group/google-web-toolkit/browse_thread/threa......
Cheers,
Dave
Error: Method 'eventGetTypeInt(String)' in type
'com.applegreen.gwt.html5.dom.DOMImplMozillaHtml5' is native. Running
the modified program will cause UnsatisfiedLinkError.
Warn: Package 'com.google.gwt.user.client.impl' already exists in this
project in a folder....
I guess if I downloaded the GWT source doing this would be straight
forward but I can't do that for this project... I need to stick with
the (2.0) release.
Any other suggestions?
The only problem is that the events aren't being captured (or the
handlers aren't being added correctly)... would you be able to post
one of your Event classes?
Cheers,
DaveC
Cheers,
Dave