onFocus abstract method
void
onFocus()
Called when this component gains focus.
Override this method to implement custom behavior when the component becomes focused, such as showing a focus indicator or selecting text.
Implementation
void onFocus();