Package org.cef.handler
Class CefFocusHandlerAdapter
- java.lang.Object
-
- org.cef.handler.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.cef.handler.CefFocusHandler
CefFocusHandler.FocusSource
-
-
Constructor Summary
Constructors Constructor Description CefFocusHandlerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onGotFocus(CefBrowser browser)
Called when the browser component has received focus.boolean
onSetFocus(CefBrowser browser, CefFocusHandler.FocusSource source)
Called when the browser component is requesting focus.void
onTakeFocus(CefBrowser browser, boolean next)
Called when the browser component is about to loose focus.
-
-
-
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 interfaceCefFocusHandler
- 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 interfaceCefFocusHandler
- 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 interfaceCefFocusHandler
- Parameters:
browser
- The browser generating the event.
-
-