Package org.cef.handler
Interface CefFocusHandler
-
- All Known Implementing Classes:
CefClient,CefFocusHandlerAdapter
public interface CefFocusHandlerImplement this interface to handle events related to focus. The methods of this class will be called on the UI thread.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCefFocusHandler.FocusSourceFocus sources.
-
Method Summary
All Methods Instance Methods Abstract 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
-
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.
-
-