A callback method automatically called by NeedFocusService when this component gains the focus.
The source UI event causing this component to gain the focus.
A callback method automatically called by NeedFocusService when this component loses its focus.
The source UI event causing this component to lose its focus.
Generated using TypeDoc
An interface of
componentclasses requiring the user's focus. For example, the ContextMenu which that it requires the user to focus on itself all the time it is being displayed. Once the user click on anywhere else outside its area (losing its focus), the ContextMenu will be disappeared. For this kind of requirement, the ContextMenu must implement this interface and register itself as afocusing componentto NeedFocusService (via NeedFocusService.setFocusingComponent method). Then, NeedFocusService will automatically call onFocus callback method on thefocusing component. Once the component loses its focus, NeedFocusService will automatically call onLostFocus callback method.shiorin, tee4cute
NeedFocusService