Package org.cef.callback
Class CefNativeAdapter
- java.lang.Object
-
- org.cef.callback.CefNativeAdapter
-
- All Implemented Interfaces:
CefNative
- Direct Known Subclasses:
CefMessageRouterHandlerAdapter
,CefPrintHandlerAdapter
public class CefNativeAdapter extends java.lang.Object implements CefNative
-
-
Constructor Summary
Constructors Constructor Description CefNativeAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getNativeRef(java.lang.String identifer)
Method is called by the native code to get the reference to an previous stored identifier.void
setNativeRef(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:CefNative
Method is called by the native code to store a reference to an implemented native JNI counterpart.- Specified by:
setNativeRef
in 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:CefNative
Method is called by the native code to get the reference to an previous stored identifier.- Specified by:
getNativeRef
in interfaceCefNative
- Parameters:
identifer
- The name of the interface class (e.g. CefFocusHandler).- Returns:
- The stored reference value of the native code.
-
-