Package provided.owlMaps.cefUtils
Interface ICefObject
- All Superinterfaces:
ICefObjRef
public interface ICefObject extends ICefObjRef
*** FOR INTERNAL USE ONLY!! DEVELOPER CODE SHOULD NEVER USE THIS INTERFACE DIRECTLY! ***
Represents an object which has a counterpart instance on the JavaScript side. ICefObjects only provide the basic communications services for communicating with the associated JavaScript-side object Java-side representations of JavaScript-side classes are implemented as wrappers around ICefObjects.
Represents an object which has a counterpart instance on the JavaScript side. ICefObjects only provide the basic communications services for communicating with the associated JavaScript-side object Java-side representations of JavaScript-side classes are implemented as wrappers around ICefObjects.
- Author:
- swong
-
Field Summary
Fields Modifier and Type Field Description static ICefObject
NULL
*** FOR INTERNAL USE ONLY! DEVELOPER CODE SHOULD NEVER ACCESS THIS OBJECT! ***
Singleton null object -
Method Summary
Modifier and Type Method Description void
addEvent(java.lang.String eventName, java.lang.Runnable runnableCallback)
*** FOR INTERNAL USE ONLY!! DEVELOPER CODE SHOULD NEVER USE THIS METHOD DIRECTLY! ***
Add an event to the associated JavaScript-side object that utilizes a Runnable callback<T> void
addEvent(java.lang.String eventName, java.util.function.Consumer<T> consumerCallback, java.lang.reflect.Type paramType)
*** FOR INTERNAL USE ONLY!! DEVELOPER CODE SHOULD NEVER USE THIS METHOD DIRECTLY! ***
Add an event to the associated JavaScript-side object that utilizes a Consumer callback<T> java.util.concurrent.Future<T>
call(java.lang.String methodName, java.lang.reflect.Type resultType, java.lang.Object... params)
*** FOR INTERNAL USE ONLY!! DEVELOPER CODE SHOULD NEVER USE THIS METHOD DIRECTLY! ***
Call a method on the associated JavaScript side object that returns a value.void
callVoid(java.lang.String methodName, java.lang.Object... params)
*** FOR INTERNAL USE ONLY!! DEVELOPER CODE SHOULD NEVER USE THIS METHOD DIRECTLY! ***
Call a method on the associated JavaScript side object that has a void return.<T> java.util.concurrent.Future<T>
getProperty(java.lang.String propName, java.lang.reflect.Type propType)
*** FOR INTERNAL USE ONLY!! DEVELOPER CODE SHOULD NEVER USE THIS METHOD DIRECTLY! ***
Get the value of the given property as a Futurevoid
setProperty(java.lang.String propName, java.lang.Object value)
*** FOR INTERNAL USE ONLY!! DEVELOPER CODE SHOULD NEVER USE THIS METHOD DIRECTLY! ***
Set the property value where the correct type of the value can be retrieved from the value object itself.void
setProperty(java.lang.String propName, java.lang.Object value, java.lang.reflect.Type propType)
*** FOR INTERNAL USE ONLY!! DEVELOPER CODE SHOULD NEVER USE THIS METHOD DIRECTLY! ***
Set the property value with an explicit type for the value.Methods inherited from interface provided.owlMaps.cefUtils.ICefObjRef
getCefId
-
Field Details
-
NULL
*** FOR INTERNAL USE ONLY! DEVELOPER CODE SHOULD NEVER ACCESS THIS OBJECT! ***
Singleton null object
-
-
Method Details
-
getProperty
<T> java.util.concurrent.Future<T> getProperty(java.lang.String propName, java.lang.reflect.Type propType)*** FOR INTERNAL USE ONLY!! DEVELOPER CODE SHOULD NEVER USE THIS METHOD DIRECTLY! ***
Get the value of the given property as a Future- Type Parameters:
T
- The return type of the Future- Parameters:
propName
- The name of the desired propertypropType
- The type of the desired Properly- Returns:
- A Future that will supply the value of the property when it is ready.
-
setProperty
void setProperty(java.lang.String propName, java.lang.Object value)*** FOR INTERNAL USE ONLY!! DEVELOPER CODE SHOULD NEVER USE THIS METHOD DIRECTLY! ***
Set the property value where the correct type of the value can be retrieved from the value object itself. This method cannot be used for anonymous inner class implementations because those objects do not report the correct superclass type.- Parameters:
propName
- The name of the desired propertyvalue
- The value for the desired property
-
setProperty
void setProperty(java.lang.String propName, java.lang.Object value, java.lang.reflect.Type propType)*** FOR INTERNAL USE ONLY!! DEVELOPER CODE SHOULD NEVER USE THIS METHOD DIRECTLY! ***
Set the property value with an explicit type for the value. This method is useful for anonymous inner class implementations. Note that the system must already be configured to process the supplied type.- Parameters:
propName
- The name of the desired propertyvalue
- The value for the desired propertypropType
- The type of the desired property
-
call
<T> java.util.concurrent.Future<T> call(java.lang.String methodName, java.lang.reflect.Type resultType, java.lang.Object... params)*** FOR INTERNAL USE ONLY!! DEVELOPER CODE SHOULD NEVER USE THIS METHOD DIRECTLY! ***
Call a method on the associated JavaScript side object that returns a value.- Type Parameters:
T
- The expected return type of the returned value.- Parameters:
methodName
- The name of the method to call.resultType
- The type of the expected resultparams
- Vararg of any arguments to give to the method call- Returns:
- The return value of the method call as a Future.
-
callVoid
void callVoid(java.lang.String methodName, java.lang.Object... params)*** FOR INTERNAL USE ONLY!! DEVELOPER CODE SHOULD NEVER USE THIS METHOD DIRECTLY! ***
Call a method on the associated JavaScript side object that has a void return.- Parameters:
methodName
- The name of the method to call.params
- Vararg of any arguments to give to the method call
-
addEvent
void addEvent(java.lang.String eventName, java.lang.Runnable runnableCallback)*** FOR INTERNAL USE ONLY!! DEVELOPER CODE SHOULD NEVER USE THIS METHOD DIRECTLY! ***
Add an event to the associated JavaScript-side object that utilizes a Runnable callback- Parameters:
eventName
- The name of the event typerunnableCallback
- The callback to associate with that event type
-
addEvent
<T> void addEvent(java.lang.String eventName, java.util.function.Consumer<T> consumerCallback, java.lang.reflect.Type paramType)*** FOR INTERNAL USE ONLY!! DEVELOPER CODE SHOULD NEVER USE THIS METHOD DIRECTLY! ***
Add an event to the associated JavaScript-side object that utilizes a Consumer callback- Type Parameters:
T
- The type of the input to the callback Consumer.- Parameters:
eventName
- The name of the event typeconsumerCallback
- The callback to associate with event typeparamType
- The type of the input parameter to the callback.
-