focus method
void
focus()
Gives focus to this component.
Sets isFocused to true and calls onFocus. Only effective if
isFocusable returns true.
Implementation
void focus() {
isFocused = true;
onFocus();
}
Gives focus to this component.
Sets isFocused to true and calls onFocus. Only effective if
isFocusable returns true.
void focus() {
isFocused = true;
onFocus();
}