Re: Best practice for implementing an "active" field

2011-05-12 Thread matttai
Hi Michael,

I can't think of an approach using CSS, but if I were to attack this
I'd try to use either an ImageButton or an Image widget. Both widgets
support mouseOverHandlers which would cover handling your hover state,
whilst you can toggle the appearance of an active/inactive state with
setUrl/setImage and handle it as you wish in the clickHandler.

I'm seeing I/O vids coming up progressively on 
http://www.youtube.com/user/GoogleDevelopers
so keep checking for updates :)

Cheers,

Matt

On May 12, 8:17 pm, Jambi  wrote:
> Hey guys,
>
> maybe you have a good solution for this. I have a menu with some image
> buttons that have three different states: Inactive, hover, active. The
> activity or presenter to the corresponding button should trigger their
> own button to active and the active buttons should not be triggered
> onHover. Does someone have an elegant solution for this? I think I
> need to do this all with gwt code because css would be to unfexible,
> right?
>
> BTW: Can we expect the GWT sessions on I/O to be online soon?
>
> kind regards,
>
> Michael

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Best practice for implementing an "active" field

2011-05-12 Thread Jambi
Hey guys,

maybe you have a good solution for this. I have a menu with some image
buttons that have three different states: Inactive, hover, active. The
activity or presenter to the corresponding button should trigger their
own button to active and the active buttons should not be triggered
onHover. Does someone have an elegant solution for this? I think I
need to do this all with gwt code because css would be to unfexible,
right?

BTW: Can we expect the GWT sessions on I/O to be online soon?

kind regards,

Michael

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.