03-25-2009 11:43 PM
I've been trying to use a HorizontalFieldManager, and adding a handful of VerticalFieldManagers to it. I'm using the VerticalFieldManager to act as a compound item. E.g., think of a toolbar with items that include an image and text, each. I'm also trying to enable focus handling such that focus only goes to the VFMs, not the fields within each of the VFMs.
My approach was to custom extend the VerticalFieldManager, set style via super(FOCUSABLE), and override the drawFocus(…) method to then call drawHighlightRegion(…).
Problem is, drawFocus() is never called. :'( Perhaps my approach is all wrong. A manager is but a Field, no?
Delighted to hear thoughts and/or alternative suggestions. Thank you.
Platform is JDE 4.2.1, default Sim (8800).
03-26-2009 05:23 PM
drawFocus is only called ever on a endpoint field.
Makes a subclassed focusable nullfield and add it to the vertical Manager overload drawFocus and then call the drawfocus of your subclassed manager.