Sorry for my misbehavior... I was quite angry 'cause my project has
stalled because of my incapacity of intercepting some events... Won't
happen again... ;)
Anyway.. If someone would still want to help me, I would like some
more explanation..
I don't understand..
1) Is there any relationship between FocusListener and
KeyboardListener? I mean if a widget must have fired first onFocus
before could receive keyboard events.
2) The FocusListener rely totally on onFocus/onBlur DOM events or is
some custom cross-browser implementation?
3) I have a class declare like this:
public class ResizableDraggablePanel extends AbsolutePanel implements
SourcesMouseEvents
and the events it sinks are:
DOM.sinkEvents(getElement(), DOM.getEventsSunk(getElement()) |
Event.MOUSEEVENTS);
And I have another class that extends the first like this:
public class Evento extends ResizableDraggablePanel implements
SourcesKeyboardEvents, HasFocus{
sinking the events like this:
sinkEvents(DOM.getEventsSunk(getElement()) | Event.MOUSEEVENTS |
Event.ONDBLCLICK | Event.KEYEVENTS | Event.FOCUSEVENTS);
The problem is that the second class responds to focus/keyboard events
only in firefox. It could have anything to do with the first class?
If you need the whole source code just tell me and I'll post it.
Thanks and sorry for my angry post..
On Mar 23, 11:05 pm, lukehashj <[email protected]> wrote:
> Remember, when flaming a forum, not to use your real email address :)
>
> You can use the DOM and event listeners to manually monitor events.
> Just make sure to sink the events properly.
>
> http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...
>
> On Mar 23, 3:31 am, "nicanor.babula" <[email protected]> wrote:
>
> > Very nice though... Useless forum... No help at all... I finally
> > figured it out. But it doesn't worth sharing the solution with you...
> > Thank you anyway for your help..
>
> > On Mar 20, 5:37 pm, "nicanor.babula" <[email protected]> wrote:
>
> > > Hello everyone... This is my first post in here so don't be too sharp
> > > on me..
>
> > > I have wrote a class that extends AbsolutePanel and implements
> > > SourcesMouseEvents in order to have an AbsolutePanel that accept mouse
> > > events. Now, the next step I want to do is to make it accept Keyboard
> > > events. I won't use any other component existing in other libraries
> > > (like extjs) because my app must be very light.
>
> > > So, you have any hint? Any tutorial? So far I could handle it just by
> > > reading the javadocs, but for this one I couldn't figure it out...
>
> > > Sorry for my poor english too..
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---