07-27-2010 08:18 AM
I have an ObjectChoiceField with values say YES and NO.
And i have a Clickable BitmapField
Now , When i say Yes in the ObjectChoiceField, i want the BitmapField to be enabled, or have Focus.
An when i say No, this field should be disabled for user interaction.
How do i achieve this?
07-27-2010 08:23 AM
There are many ways this could be done, Probably the easiest is to override isFocusable on the BitmapField, and have it check an internal flag. Provide a set method for this flag so that you can turn it on and off. Then create a FielcdChangeListener for the ObjectChoiceField, and have it set the focusable flag in the BitmapField.
Have a go at doing this and see how you get on.