Can't immediately see why that wouldn't work.  Just three things from
a diagnostic point of view

a)  does your formCollapsedState() method work outside of event
handling?
b) did you wait the 10 seconds you set up as delay?
c) have you sunk the event and wired up that sink to your handler -
i.e. is any code in your onmouseout event being called?

//A

On 10 Nov, 12:51, Sirisha <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Can we have a kind of sleep( ) or wait( ) delays inside my ONMOUSEOUT
> event without any threads? I want to call my collapsing method to
> perform something like collapsing onmouseout event after few seconds.
>
> I tried to use timer in the following way, but it didnt help:
> case Event.ONMOUSEOUT:
>   Timer timer = new Timer(){
>      public void run(){
>         formCollapsedState()
>      }
>    };
>    timer.schedule(10000);
>    timer.run();
>
> Please let me know if  anybody has idea on this.
>
> Thanks
> Sirisha
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to