public class JBCefClient extends java.lang.Object implements JBCefDisposable
CefClient
.
Provides facilities to add multiple handlers of the same type (CefClient
doesn't).
All the handlers of the same type are called in the "last-added-last-called" order. When a return value is expected, the last handler's
return value is returned as the result. When a CEF callback is passed to the handler, it's the responsibility of the client to manage
the callback calls in case when multiple handlers are added.
Disposable.Parent
Modifier and Type | Method and Description |
---|---|
JBCefClient |
addContextMenuHandler(CefContextMenuHandler handler,
CefBrowser browser) |
JBCefClient |
addDialogHandler(CefDialogHandler handler,
CefBrowser browser) |
JBCefClient |
addDisplayHandler(CefDisplayHandler handler,
CefBrowser browser) |
JBCefClient |
addDownloadHandler(CefDownloadHandler handler,
CefBrowser browser) |
JBCefClient |
addDragHandler(CefDragHandler handler,
CefBrowser browser) |
JBCefClient |
addFocusHandler(CefFocusHandler handler,
CefBrowser browser) |
JBCefClient |
addJSDialogHandler(CefJSDialogHandler handler,
CefBrowser browser) |
JBCefClient |
addKeyboardHandler(CefKeyboardHandler handler,
CefBrowser browser) |
JBCefClient |
addLifeSpanHandler(CefLifeSpanHandler handler,
CefBrowser browser) |
JBCefClient |
addLoadHandler(CefLoadHandler handler,
CefBrowser browser) |
JBCefClient |
addRequestHandler(CefRequestHandler handler,
CefBrowser browser) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
CefClient |
getCefClient() |
boolean |
isDisposed() |
void |
removeContextMenuHandler(CefContextMenuHandler handler,
CefBrowser browser) |
void |
removeDialogHandler(CefDialogHandler handler,
CefBrowser browser) |
void |
removeDisplayHandler(CefDisplayHandler handler,
CefBrowser browser) |
void |
removeDownloadHandle(CefDownloadHandler handler,
CefBrowser browser) |
void |
removeDragHandler(CefDragHandler handler,
CefBrowser browser) |
void |
removeFocusHandler(CefFocusHandler handler,
CefBrowser browser) |
void |
removeJSDialogHandler(CefJSDialogHandler handler,
CefBrowser browser) |
void |
removeKeyboardHandler(CefKeyboardHandler handler,
CefBrowser browser) |
void |
removeLifeSpanHandler(CefLifeSpanHandler handler,
CefBrowser browser) |
void |
removeLoadHandler(CefLoadHandler handler,
CefBrowser browser) |
void |
removeRequestHandler(CefRequestHandler handler,
CefBrowser browser) |
public CefClient getCefClient()
public void dispose()
Disposable
dispose
in interface Disposable
public boolean isDisposed()
isDisposed
in interface JBCefDisposable
public JBCefClient addContextMenuHandler(CefContextMenuHandler handler, CefBrowser browser)
public void removeContextMenuHandler(CefContextMenuHandler handler, CefBrowser browser)
public JBCefClient addDialogHandler(CefDialogHandler handler, CefBrowser browser)
public void removeDialogHandler(CefDialogHandler handler, CefBrowser browser)
public JBCefClient addDisplayHandler(CefDisplayHandler handler, CefBrowser browser)
public void removeDisplayHandler(CefDisplayHandler handler, CefBrowser browser)
public JBCefClient addDownloadHandler(CefDownloadHandler handler, CefBrowser browser)
public void removeDownloadHandle(CefDownloadHandler handler, CefBrowser browser)
public JBCefClient addDragHandler(CefDragHandler handler, CefBrowser browser)
public void removeDragHandler(CefDragHandler handler, CefBrowser browser)
public JBCefClient addFocusHandler(CefFocusHandler handler, CefBrowser browser)
public void removeFocusHandler(CefFocusHandler handler, CefBrowser browser)
public JBCefClient addJSDialogHandler(CefJSDialogHandler handler, CefBrowser browser)
public void removeJSDialogHandler(CefJSDialogHandler handler, CefBrowser browser)
public JBCefClient addKeyboardHandler(CefKeyboardHandler handler, CefBrowser browser)
public void removeKeyboardHandler(CefKeyboardHandler handler, CefBrowser browser)
public JBCefClient addLifeSpanHandler(CefLifeSpanHandler handler, CefBrowser browser)
public void removeLifeSpanHandler(CefLifeSpanHandler handler, CefBrowser browser)
public JBCefClient addLoadHandler(CefLoadHandler handler, CefBrowser browser)
public void removeLoadHandler(CefLoadHandler handler, CefBrowser browser)
public JBCefClient addRequestHandler(CefRequestHandler handler, CefBrowser browser)
public void removeRequestHandler(CefRequestHandler handler, CefBrowser browser)