com.google.gwt.valuestore.shared
Interface DeltaValueStore

All Superinterfaces:
ValueStore
All Known Implementing Classes:
DeltaValueStoreJsonImpl

public interface DeltaValueStore
extends ValueStore

Experimental API: This class is still under rapid development, and is very likely to be deleted. Use it at your own risk.

Set of changes to a ValueStore.


Method Summary
 void clearUsed()
          Enable a DeltaValueStore to be reused again.
 Record create(java.lang.Class token)
           
 void delete(Record record)
           
 boolean isChanged()
          Return true if there are outstanding changes that have not been communicated to the server yet.
<V> void
set(Property<V> property, Record record, V value)
           
 boolean validate()
          Returns true if all validations have passed.
 
Methods inherited from interface com.google.gwt.valuestore.shared.ValueStore
addValidation, spawnDeltaView
 

Method Detail

clearUsed

void clearUsed()
Enable a DeltaValueStore to be reused again. For example, when the edit fails on the server.


create

Record create(java.lang.Class token)

delete

void delete(Record record)

isChanged

boolean isChanged()
Return true if there are outstanding changes that have not been communicated to the server yet. Note that it is illegal to call this method after a request using it has been fired.


set

<V> void set(Property<V> property,
             Record record,
             V value)

validate

boolean validate()
Returns true if all validations have passed. May notify subscribers that implement HasErrors of new validation errors.