public static interface Component.FocusChangedListener
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
onFocusChange(Component component,
boolean hasFocus) |
Processes a focus state change event of a component.
|
void onFocusChange(Component component, boolean hasFocus)
component - Indicates the component where the focus state changes.hasFocus - Indicates the new focus state of the component. The value true indicates that the
component is in focus, and false indicates focus loss.