Method Summary |
|
native public void | beginEdit() Begin an edit. |
native public void | cancelEdit() Cancels all changes made in the current edit operation. |
native public void | commit() Usually called by the Store which owns the Record. |
native public void | commit(boolean silent) Usually called by the Store which owns the Record. |
native public Record | copy() Creates a copy of this record. |
native public Record | copy(String id) Creates a copy of this record. |
native public void | endEdit() End an edit. |
native public boolean | getAsBoolean(String field) Returns the Records value as a boolean value. |
native public Date | getAsDate(String field) Return the fields value as a Date. |
native public double | getAsDouble(String field) Returns the Records value as a double. |
native public float | getAsFloat(String field) Returns the Records value as a float. |
native public int | getAsInteger(String field) Returns the Records value as an integer. |
native public Object | getAsObject(String field) Return the field value as Object. |
native public String | getAsString(String field) Return the field value as String. |
native public JavaScriptObject | getDataAsJsObject() Returns the underlying native data representation like a Json or XML node. |
native public Object | getDataAsObject() Returns the field value as an Object. |
native public String | getId() Returns the ID of the record or null if not defined. |
public String[] | getModifiedFields() Return the names of the fields that are modified in this record.
modified field names. |
native public boolean | isDirty() The Records modified state. |
native public void | reject() Usually called by the Store which owns the Record. |
native public void | reject(boolean silent) Usually called by the Store which owns the Record. |
native public void | set(String field, String value) Sets the fields value. |
native public void | set(String field, int value) Sets the fields value. |
native public void | set(String field, float value) Sets the fields value. |
native public void | set(String field, double value) Sets the fields value. |
native public void | set(String field, boolean value) Sets the fields value. |
native public void | set(String field, Date value) Sets the fields value. |
native public void | setId(String id) Set the Record's ID. |