|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.data.shared.Store.PropertyChange<M,V>
M - the model typeV - the value type (for the changed property in the model)public static class Store.PropertyChange<M,V>
ValueProvider-based change impl - takes a ValueProvider and the new value to be changed. The ValueProvider instance should be reused, as it will be the objecttag.
| Constructor Summary | |
|---|---|
Store.PropertyChange(ValueProvider<? super M,V> propertyAccess,
V value)
Creates a new property change. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Store.PropertyChange(ValueProvider<? super M,V> propertyAccess,
V value)
propertyAccess - the changed propertyvalue - the changed value| Method Detail |
|---|
public final Object getChangeTag()
Store.Change
getChangeTag in interface Store.Change<M,V>public V getValue()
Store.Change
getValue in interface Store.Change<M,V>public boolean isCurrentValue(M model)
Store.Change
isCurrentValue in interface Store.Change<M,V>model - the model
public final void modify(M model)
Store.Change
modify in interface Store.Change<M,V>model - the model
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||