Class CefFocusHandlerAdapter

  • All Implemented Interfaces:
    CefFocusHandler

    public abstract class CefFocusHandlerAdapter
    extends java.lang.Object
    implements CefFocusHandler
    An abstract adapter class for receiving focus events. The methods in this class are empty. This class exists as convenience for creating handler objects.
    • Constructor Detail

      • CefFocusHandlerAdapter

        public CefFocusHandlerAdapter()
    • Method Detail

      • onTakeFocus

        public void onTakeFocus​(CefBrowser browser,
                                boolean next)
        Description copied from interface: CefFocusHandler
        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.
        Specified by:
        onTakeFocus in interface CefFocusHandler
        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

        public boolean onSetFocus​(CefBrowser browser,
                                  CefFocusHandler.FocusSource source)
        Description copied from interface: CefFocusHandler
        Called when the browser component is requesting focus.
        Specified by:
        onSetFocus in interface CefFocusHandler
        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

        public void onGotFocus​(CefBrowser browser)
        Description copied from interface: CefFocusHandler
        Called when the browser component has received focus.
        Specified by:
        onGotFocus in interface CefFocusHandler
        Parameters:
        browser - The browser generating the event.