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.CefFocusHandlerCefFocusHandler.FocusSource
 
- 
 - 
Constructor SummaryConstructors Constructor Description CefFocusHandlerAdapter()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonGotFocus(CefBrowser browser)Called when the browser component has received focus.booleanonSetFocus(CefBrowser browser, CefFocusHandler.FocusSource source)Called when the browser component is requesting focus.voidonTakeFocus(CefBrowser browser, boolean next)Called when the browser component is about to loose focus.
 
- 
- 
- 
Method Detail- 
onTakeFocuspublic void onTakeFocus(CefBrowser browser, boolean next) Description copied from interface:CefFocusHandlerCalled 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:
- onTakeFocusin 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.
 
 - 
onSetFocuspublic boolean onSetFocus(CefBrowser browser, CefFocusHandler.FocusSource source) Description copied from interface:CefFocusHandlerCalled when the browser component is requesting focus.- Specified by:
- onSetFocusin 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.
 
 - 
onGotFocuspublic void onGotFocus(CefBrowser browser) Description copied from interface:CefFocusHandlerCalled when the browser component has received focus.- Specified by:
- onGotFocusin interface- CefFocusHandler
- Parameters:
- browser- The browser generating the event.
 
 
- 
 
-