setFocus()

This is an optional method that only needs to be implemented if the "focus" capability for the Control Type is set to "component". This method sets the focus for this control. Use in situations where the focus is explicitly set using the API for this control.

Note: If the setfocus() method is defined in the ControlWrapper, the capability always picks the "focus" capability from the ControlWrapper. If you do not want the component to handle setFocus() then do not define it in ControlWrapper.