I am attempting to use an Icon that I have associated with a UITextItem input field for the purposes of controlling the TextItem field's state (I want to be able to toggle between disabled(false) and disabled(true) ).
My idea is that I would be able to show a 'lock' icon and use an addIconClickHandler() that would fire each time the Icon associated with my TextItem is clicked. Then, when handling the click event, I could, for instance, toggle the Icon image (change between a 'lock' and an 'unlocked' icon) and also change the state of my input field.
Upon testing, I found that the Icon displays nicely, the Icon's prompt text displays when I hover over the Icon (all nice things), but when I disable in the TextItem's state ( disabled(true) ), both the input field AND the Icon associated with the field are disabled. I am no longer able to access the input field and I am no longer able to see or use my Icon that I have associated with the field.
I wanted to be able to continue to the the Icon to control the state of the field.
I could create a separate control (radio button for instance) all-together, but the Icon right beside the input field was really nice.
Any ideas for being able to keep the Icon active even when the TextItem field is set to disabled(true)? Or, possibly a better way to accomplish what I'm after?
Thanks for your time.
Scott
-- 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment