|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.extjs.gxt.ui.client.store.Record
public class Record
Records wrap model instances and provide specialized editing features, including modification tracking and editing capabilities.
| Nested Class Summary | |
|---|---|
static class |
Record.RecordUpdate
Update enumeration. |
| Constructor Summary | |
|---|---|
Record(java.util.Map<java.lang.String,java.lang.Object> properties)
Creates a new record. |
|
Record(ModelData wrappedModel)
Creates a new record. |
|
| Method Summary | |
|---|---|
void |
beginEdit()
Begin an edit. |
void |
cancelEdit()
Cancels all changes made in the current edit operation. |
void |
endEdit()
End an edit. |
java.lang.Object |
get(java.lang.String property)
|
java.util.Map<java.lang.String,java.lang.Object> |
getChanges()
Gets a map of only the fields that have been modified since this record was created or commited. |
ModelData |
getModel()
Returns the wrapped model instance. |
java.util.Collection<java.lang.String> |
getPropertyNames()
|
boolean |
isDirty()
Returns true if the record has uncommitted changes. |
java.lang.Object |
remove(java.lang.String property)
Removes a field. |
java.lang.Object |
set(java.lang.String name,
java.lang.Object value)
Set the named field to the specified value. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Record(java.util.Map<java.lang.String,java.lang.Object> properties)
properties - the initial valuespublic Record(ModelData wrappedModel)
wrappedModel - the model| Method Detail |
|---|
public void beginEdit()
public void cancelEdit()
public void endEdit()
public java.lang.Object get(java.lang.String property)
public java.util.Map<java.lang.String,java.lang.Object> getChanges()
public ModelData getModel()
public java.util.Collection<java.lang.String> getPropertyNames()
public boolean isDirty()
public java.lang.Object remove(java.lang.String property)
property - the name of the field to remove
public java.lang.Object set(java.lang.String name,
java.lang.Object value)
name - the name of the field to setvalue - the value of the field to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||