com.sencha.gxt.data.shared
Interface Store.Change<M,V>

Type Parameters:
M - the model type
V - the value type (for the changed property in the model)
All Known Implementing Classes:
Store.PropertyChange
Enclosing class:
Store<M>

public static interface Store.Change<M,V>

Represents a change that can occur to a given model. This interface may not be required, it will depend on if legacy cases need it or not to allow PropertyChange to be implemented another way


Method Summary
 java.lang.Object getChangeTag()
          Gets a tag for this change, so that two changes, both making modifications to the same field, can replace each other, as they must be mutually exclusive
 V getValue()
          Gets the value that will be set on the model in modify(M).
 boolean isCurrentValue(M model)
          Checks to see if the given model already has the change
 void modify(M model)
          Make the change recorded here to the given model
 

Method Detail

getChangeTag

java.lang.Object getChangeTag()
Gets a tag for this change, so that two changes, both making modifications to the same field, can replace each other, as they must be mutually exclusive

Returns:
the tag

getValue

V getValue()
Gets the value that will be set on the model in modify(M).

Returns:
the value

isCurrentValue

boolean isCurrentValue(M model)
Checks to see if the given model already has the change

Parameters:
model - the model
Returns:
true if model already has the change

modify

void modify(M model)
Make the change recorded here to the given model

Parameters:
model - the model


Copyright © 2012. All Rights Reserved.