public class SharedObject extends EventDispatcher
| Modifier and Type | Field and Description |
|---|---|
static EventType |
ASYNCERROR
Dispatched when an exception is thrown asynchronously — that is, from native asynchronous code.
|
static EventType |
NETSTATUS
Dispatched when a SharedObject instance is reporting its status or error condition.
|
static EventType |
SYNC
Dispatched when a remote shared object has been updated by the server.
|
ACTIVATE, DEACTIVATE| Modifier | Constructor and Description |
|---|---|
protected |
SharedObject() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
For local shared objects, purges all of the data and deletes the shared object from the disk.
|
void |
close()
Closes the connection between a remote shared object and the server.
|
String |
flush(int minDiskSpace)
Immediately writes a locally persistent shared object to a local file.
|
com.google.gwt.core.client.JavaScriptObject |
getData()
The collection of attributes assigned to the data property of the object; these attributes can be shared and stored.
|
static SharedObject |
getLocal(String name,
String localPath,
boolean secure)
Returns a reference to a locally persistent shared object that is only available to the current client.
|
void |
setProperty(String propertyName,
Object value)
Updates the value of a property in a shared object and indicates to the server that the value of the property has changed.
|
int |
size()
The current size of the shared object, in bytes.
|
addEventListener, create, dispatchEvent, hasEventListener, removeEventListener, willTriggerpublic static final EventType ASYNCERROR
public static final EventType NETSTATUS
public static final EventType SYNC
public static SharedObject getLocal(String name, String localPath, boolean secure)
name - localPath - public final com.google.gwt.core.client.JavaScriptObject getData()
public final int size()
public final void clear()
public final void close()
public final String flush(int minDiskSpace)
minDiskSpace - Copyright © 2013. All Rights Reserved.