- All Implemented Interfaces:
- Direct Known Subclasses:
public class SharedState
- extends Object
- implements Serializable
Interface to be implemented by all shared state classes used to communicate
basic information about a
Connector from server to client.
Shared state classes have to be declared in client side packages to be
accessible both for server and client code. They can be static nested classes
Shared state objects are only sent from the server to the client, and any
modifications from the client should be performed via an RPC call that
modifies the authoritative state on the server.
A shared state class should be a bean with getters and setters for each
field. Supported data types are simple Java types, other beans and maps and
arrays of these.
On the client side the connector should override
AbstractComponentConnector#createState() to create the correct state
AbstractComponentConnector.getState() override the return
Subclasses of a
Connector using shared state should also provide a
subclass of the shared state class of the parent class to extend the state. A
Connector can only have one shared state object.
- See Also:
- Serialized Form
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.