Interface CefFocusHandler

  • All Known Implementing Classes:
    CefClient, CefFocusHandlerAdapter

    public interface CefFocusHandler
    Implement this interface to handle events related to focus. The methods of this class will be called on the UI thread.
    • Method Detail

      • onTakeFocus

        void onTakeFocus​(CefBrowser browser,
                         boolean next)
        Called when the browser component is about to loose focus. For instance, if focus was on the last HTML element and the user pressed the TAB key.
        Parameters:
        browser - The browser generating the event.
        next - will be true if the browser is giving focus to the next component and false if the browser is giving focus to the previous component.
      • onSetFocus

        boolean onSetFocus​(CefBrowser browser,
                           CefFocusHandler.FocusSource source)
        Called when the browser component is requesting focus.
        Parameters:
        browser - The browser generating the event.
        source - indicates/ where the focus request is originating from.
        Returns:
        false to allow the focus to be set or true to cancel setting the focus.
      • onGotFocus

        void onGotFocus​(CefBrowser browser)
        Called when the browser component has received focus.
        Parameters:
        browser - The browser generating the event.