|
Eclipse Remote Application Platform | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RemoteObject
Instances of this interface represent an object on the client that is synchronized with an object
on the server. A RemoteObject is used to transfer changes to the remote object. To create a
remote object, use Connection.createRemoteObject(String)
.
Note: The classes and interfaces in the package org.eclipse.rap.rwt.remote are still considered provisional. They are expected to evolve over the next releases, which may lead to slight changes. We make the package available to enable the development of custom components with the new API.
Connection
Method Summary | |
---|---|
void |
call(java.lang.String method,
java.util.Map<java.lang.String,java.lang.Object> properties)
Calls the method with the given name on the remote object. |
void |
destroy()
Instructs the client to destroy the remote object. |
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,
java.lang.Object 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. |
Method Detail |
---|
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, java.lang.Object value)
name
- the name of the property to setvalue
- the value to setvoid 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, java.util.Map<java.lang.String,java.lang.Object> properties)
method
- the name of the method to callproperties
- the named properties to pass as arguments to the method callvoid destroy()
void setHandler(OperationHandler handler)
handler
- the handler that processes incoming operation
|
Eclipse Remote Application Platform | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) EclipseSource and others 2002, 2012. All rights reserved.