Package org.cef.handler
Class CefClientHandler
- java.lang.Object
-
- org.cef.handler.CefClientHandler
-
-
Constructor Summary
Constructors Constructor Description CefClientHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddMessageRouter(CefMessageRouter h)protected voiddispose()protected abstract java.lang.Object[]getAllBrowser()Returns a list of all browser instances.protected abstract CefBrowsergetBrowser(int identifier)Returns the java part of the browser implementation.protected abstract CefContextMenuHandlergetContextMenuHandler()Return the handler for context menus.protected abstract CefDialogHandlergetDialogHandler()Return the handler for dialogs.protected abstract CefDisplayHandlergetDisplayHandler()Return the handler for browser display state events.protected abstract CefDownloadHandlergetDownloadHandler()Return the handler for download events.protected abstract CefDragHandlergetDragHandler()Return the handler for drag events.protected abstract CefFocusHandlergetFocusHandler()Return the handler for focus events.protected abstract CefJSDialogHandlergetJSDialogHandler()Return the handler for javascript dialog requests.protected abstract CefKeyboardHandlergetKeyboardHandler()Return the handler for keyboard events.protected abstract CefLifeSpanHandlergetLifeSpanHandler()Return the handler for browser life span events.protected abstract CefLoadHandlergetLoadHandler()Return the handler for browser load status events.longgetNativeRef(java.lang.String identifer)Method is called by the native code to get the reference to an previous stored identifier.protected abstract CefRenderHandlergetRenderHandler()Return the handler for off-screen rendering events.protected abstract CefRequestHandlergetRequestHandler()Return the handler for browser request events.protected abstract CefWindowHandlergetWindowHandler()Return the handler for windowed rendering events.protected voidremoveContextMenuHandler(CefContextMenuHandler h)protected voidremoveDialogHandler(CefDialogHandler h)protected voidremoveDisplayHandler(CefDisplayHandler h)protected voidremoveDownloadHandler(CefDisplayHandler h)protected voidremoveDragHandler(CefDragHandler h)protected voidremoveFocusHandler(CefFocusHandler h)protected voidremoveJSDialogHandler(CefJSDialogHandler h)protected voidremoveKeyboardHandler(CefKeyboardHandler h)protected voidremoveLifeSpanHandler(CefLifeSpanHandler h)protected voidremoveLoadHandler(CefLoadHandler h)protected voidremoveMessageRouter(CefMessageRouter h)protected voidremoveRenderHandler(CefRenderHandler h)protected voidremoveRequestHandler(CefRequestHandler h)protected voidremoveWindowHandler(CefWindowHandler h)voidsetNativeRef(java.lang.String identifer, long nativeRef)Method is called by the native code to store a reference to an implemented native JNI counterpart.
-
-
-
Method Detail
-
setNativeRef
public void setNativeRef(java.lang.String identifer, long nativeRef)Description copied from interface:CefNativeMethod is called by the native code to store a reference to an implemented native JNI counterpart.- Specified by:
setNativeRefin interfaceCefNative- Parameters:
identifer- The name of the interface class (e.g. CefFocusHandler).nativeRef- The reference to the native code.
-
getNativeRef
public long getNativeRef(java.lang.String identifer)
Description copied from interface:CefNativeMethod is called by the native code to get the reference to an previous stored identifier.- Specified by:
getNativeRefin interfaceCefNative- Parameters:
identifer- The name of the interface class (e.g. CefFocusHandler).- Returns:
- The stored reference value of the native code.
-
dispose
protected void dispose()
-
getBrowser
protected abstract CefBrowser getBrowser(int identifier)
Returns the java part of the browser implementation.- Parameters:
identifer- the unique identifier of the browser.- Returns:
- The found browser or null if none is found.
-
getAllBrowser
protected abstract java.lang.Object[] getAllBrowser()
Returns a list of all browser instances.- Returns:
- an array of browser Instances.
-
getContextMenuHandler
protected abstract CefContextMenuHandler getContextMenuHandler()
Return the handler for context menus. If no handler is provided the default implementation will be used.
-
getDialogHandler
protected abstract CefDialogHandler getDialogHandler()
Return the handler for dialogs. If no handler is provided the default implementation will be used.
-
getDisplayHandler
protected abstract CefDisplayHandler getDisplayHandler()
Return the handler for browser display state events. This method is a callback method and is called by the native code.
-
getDownloadHandler
protected abstract CefDownloadHandler getDownloadHandler()
Return the handler for download events. This method is a callback method and is called by the native code.
-
getDragHandler
protected abstract CefDragHandler getDragHandler()
Return the handler for drag events. This method is a callback method and is called by the native code.
-
getFocusHandler
protected abstract CefFocusHandler getFocusHandler()
Return the handler for focus events. This method is a callback method and is called by the native code.
-
getJSDialogHandler
protected abstract CefJSDialogHandler getJSDialogHandler()
Return the handler for javascript dialog requests. This method is a callback method and is called by the native code.
-
getKeyboardHandler
protected abstract CefKeyboardHandler getKeyboardHandler()
Return the handler for keyboard events. This method is a callback method and is called by the native code.
-
getLifeSpanHandler
protected abstract CefLifeSpanHandler getLifeSpanHandler()
Return the handler for browser life span events. This method is a callback method and is called by the native code.
-
getLoadHandler
protected abstract CefLoadHandler getLoadHandler()
Return the handler for browser load status events. This method is a callback method and is called by the native code.
-
getRenderHandler
protected abstract CefRenderHandler getRenderHandler()
Return the handler for off-screen rendering events. This method is a callback method and is called by the native code.
-
getRequestHandler
protected abstract CefRequestHandler getRequestHandler()
Return the handler for browser request events. This method is a callback method and is called by the native code.
-
getWindowHandler
protected abstract CefWindowHandler getWindowHandler()
Return the handler for windowed rendering events. This method is a callback method and is called by the native code.
-
addMessageRouter
protected void addMessageRouter(CefMessageRouter h)
-
removeContextMenuHandler
protected void removeContextMenuHandler(CefContextMenuHandler h)
-
removeDialogHandler
protected void removeDialogHandler(CefDialogHandler h)
-
removeDisplayHandler
protected void removeDisplayHandler(CefDisplayHandler h)
-
removeDownloadHandler
protected void removeDownloadHandler(CefDisplayHandler h)
-
removeDragHandler
protected void removeDragHandler(CefDragHandler h)
-
removeFocusHandler
protected void removeFocusHandler(CefFocusHandler h)
-
removeJSDialogHandler
protected void removeJSDialogHandler(CefJSDialogHandler h)
-
removeKeyboardHandler
protected void removeKeyboardHandler(CefKeyboardHandler h)
-
removeLifeSpanHandler
protected void removeLifeSpanHandler(CefLifeSpanHandler h)
-
removeLoadHandler
protected void removeLoadHandler(CefLoadHandler h)
-
removeMessageRouter
protected void removeMessageRouter(CefMessageRouter h)
-
removeRenderHandler
protected void removeRenderHandler(CefRenderHandler h)
-
removeRequestHandler
protected void removeRequestHandler(CefRequestHandler h)
-
removeWindowHandler
protected void removeWindowHandler(CefWindowHandler h)
-
-