Class BrowserComponent.JSProxy
- Enclosing class:
BrowserComponent
-
Method Summary
Modifier and TypeMethodDescriptionvoidcall(int timeout, String method, Object[] args, SuccessCallback<BrowserComponent.JSRef> callback) Calls a method on this javascript object.voidcall(String method, Object[] args, SuccessCallback<BrowserComponent.JSRef> callback) Calls a method on this javascript object.callAndWait(int timeout, String method, Object[] args) Calls method on this javascript object and waits for the result using invokeAndBlock.callAndWait(String method, Object[] args) Calls method on this javascript object and waits for the result using invokeAndBlock.voidget(int timeout, String property, SuccessCallback<BrowserComponent.JSRef> callback) Gets a property of this javascript object.voidget(int timeout, Collection<String> properties, SuccessCallback<Map<String, BrowserComponent.JSRef>> callback) Gets multiple properties as a batch.voidget(String property, SuccessCallback<BrowserComponent.JSRef> callback) Gets a property of this javascript object.voidget(Collection<String> properties, SuccessCallback<Map<String, BrowserComponent.JSRef>> callback) Gets a property of this javascript object and waits for the result using invokeAndBlock.getAndWait(int timeout, String property) Gets a property of this javascript object and waits for the result using invokeAndBlock.getAndWait(int timeout, Collection<String> properties) Gets multiple properties on this object in a batch.getAndWait(String property) Gets a property of this javascript object and waits for the result using invokeAndBlock.getAndWait(Collection<String> properties) Gets multiple properties on this object in a batch.voidSets a property.voidset(int timeout, String property, Object value, SuccessCallback<BrowserComponent.JSRef> callback) Sets a property on this javascript object.voidset(int timeout, Map<String, Object> properties, SuccessCallback<BrowserComponent.JSRef> callback) Sets multiple properties in a single batch.voidSets a property.voidset(String property, Object value, SuccessCallback<BrowserComponent.JSRef> callback) Sets a property on this javascript object.voidset(Map<String, Object> properties, SuccessCallback<BrowserComponent.JSRef> callback) Sets multiple properties in a single batch.voidsetAndWait(int timeout, String property, Object value) Sets a property on this javascript object and waits for it to complete using invokeAndBlock.voidsetAndWait(int timeout, Map<String, Object> properties) Sets multiple properties in a single batch.voidsetAndWait(String property, Object value) Sets a property on this javascript object and waits for it to complete using invokeAndBlock.voidsetAndWait(Map<String, Object> properties) Sets multiple properties in a single batch.Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()booleanIndicates whether some other object is "equal to" this one.final ClassgetClass()Returns the runtime class of an object.inthashCode()Returns a hash code value for the object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.toString()Returns a string representation of the object.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
Method Details
-
call
public void call(int timeout, String method, Object[] args, SuccessCallback<BrowserComponent.JSRef> callback) Calls a method on this javascript object.
Parameters
-
timeout: The timeout in ms -
method: The method name. -
args: Arguments to pass to the method. -
callback: Callback with the result of the method.
-
-
call
Calls a method on this javascript object.
Parameters
-
method: The method name. -
args: Arguments to pass to the method. -
callback: Callback with the result of the method.
-
-
callAndWait
Calls method on this javascript object and waits for the result using invokeAndBlock.
Parameters
-
timeout: The timeout in ms -
method: The method name. -
args: Arguments for the method.
Returns
JSRef with the result of the method call.
-
-
callAndWait
Calls method on this javascript object and waits for the result using invokeAndBlock.
Parameters
-
method: The method name. -
args: Arguments for the method.
Returns
JSRef with the result of the method call.
-
-
get
Gets a property of this javascript object.
Parameters
-
timeout: Timeout in ms -
property: The property name. -
callback: Callback with the property value.
-
-
get
Gets a property of this javascript object.
Parameters
-
property: The property name. -
callback: Callback with the property value.
-
-
get
public void get(int timeout, Collection<String> properties, SuccessCallback<Map<String, BrowserComponent.JSRef>> callback) Gets multiple properties as a batch.
Parameters
-
timeout: Timeout in ms -
properties: List of property names to retrieve. -
callback
-
-
get
public void get(Collection<String> properties, SuccessCallback<Map<String, BrowserComponent.JSRef>> callback) Gets a property of this javascript object and waits for the result using invokeAndBlock.
Parameters
property: The property to retrieve.
Returns
The property value.
-
getAndWait
Gets a property of this javascript object and waits for the result using invokeAndBlock.
Parameters
-
timeout: The timeout in ms -
property: The property to retrieve.
Returns
The property value.
-
-
getAndWait
Gets a property of this javascript object and waits for the result using invokeAndBlock.
Parameters
property: The property to retrieve.
Returns
The property value.
-
getAndWait
Gets multiple properties on this object in a batch.
Parameters
-
timeout: The timeout in ms -
properties: The property names to get.
-
-
getAndWait
Gets multiple properties on this object in a batch.
Parameters
properties
-
set
-
set
-
set
public void set(int timeout, String property, Object value, SuccessCallback<BrowserComponent.JSRef> callback) Sets a property on this javascript object.
Parameters
-
timeout: The timeout in ms. -
property: The property name to set. -
value: The property value. -
callback: Callback which is called when complete
-
-
set
Sets a property on this javascript object.
Parameters
-
property: The property name to set. -
value: The property value. -
callback: Callback which is called when complete
-
-
set
public void set(int timeout, Map<String, Object> properties, SuccessCallback<BrowserComponent.JSRef> callback) Sets multiple properties in a single batch.
Parameters
-
timeout: The timeout in ms -
properties: The properties to set. -
callback: Callback called when operation is completed.
-
-
set
Sets multiple properties in a single batch.
Parameters
-
properties: The properties to set. -
callback: Callback called when operation is completed.
-
-
setAndWait
-
setAndWait
-
setAndWait
-
setAndWait
-