public interface RemoteObject
Connection.createRemoteObject(String)
.Connection
Modifier and Type | Method and Description |
---|---|
void |
call(java.lang.String method,
JsonObject parameters)
Calls the method with the given name on the remote object.
|
void |
destroy()
Instructs the client to destroy the remote object.
|
java.lang.String |
getId()
Returns the id that is used to synchronize this object with the client.
|
void |
listen(java.lang.String eventType,
boolean listen)
Instructs the remote object to listen or to stop listening on the given type
of events.
|
void |
set(java.lang.String name,
boolean value)
Sets the specified property of the remote object to the given value.
|
void |
set(java.lang.String name,
double value)
Sets the specified property of the remote object to the given value.
|
void |
set(java.lang.String name,
int value)
Sets the specified property of the remote object to the given value.
|
void |
set(java.lang.String name,
JsonValue value)
Sets the specified property of the remote object to the given value.
|
void |
set(java.lang.String name,
java.lang.String value)
Sets the specified property of the remote object to the given value.
|
void |
setHandler(OperationHandler handler)
Set a handler to process incoming operations from the remote object.
|
java.lang.String getId()
void set(java.lang.String name, int value)
name
- the name of the property to setvalue
- the value to setvoid set(java.lang.String name, double value)
name
- the name of the property to setvalue
- the value to setvoid set(java.lang.String name, boolean value)
name
- the name of the property to setvalue
- the value to setvoid set(java.lang.String name, java.lang.String value)
name
- the name of the property to setvalue
- the value to setvoid set(java.lang.String name, JsonValue value)
name
- the name of the property to setvalue
- the value to set, must not be null
void listen(java.lang.String eventType, boolean listen)
eventType
- the name of event type to listenlisten
- true to listen to this type of events, false otherwisevoid call(java.lang.String method, JsonObject parameters)
method
- the name of the method to callparameters
- the named parameters to pass to the method callvoid destroy()
void setHandler(OperationHandler handler)
handler
- the handler that processes incoming operation
Copyright (c) EclipseSource and others 2002, 2016.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0