Java Doc for Record.java in  » Ajax » gwtext-2.01 » com » gwtext » client » data » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » gwtext 2.01 » com.gwtext.client.data 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.gwtext.client.core.JsObject
      com.gwtext.client.data.Record

Record
public class Record extends JsObject (Code)
Instances of this class encapsulate both record definition information, and record value information for use in Store objects, or any code which needs to access Records cached in a Store object.
See Also:   com.gwtext.client.data.Store

Inner Class :final public static class Operation

Field Summary
public static  OperationCOMMIT
    
public static  OperationEDIT
    
public static  OperationREJECT
    

Constructor Summary
public  Record(JavaScriptObject jsObj)
    

Method Summary
native public  voidbeginEdit()
     Begin an edit.
native public  voidcancelEdit()
     Cancels all changes made in the current edit operation.
native public  voidcommit()
     Usually called by the Store which owns the Record.
native public  voidcommit(boolean silent)
     Usually called by the Store which owns the Record.
native public  Recordcopy()
     Creates a copy of this record.
native public  Recordcopy(String id)
     Creates a copy of this record.
native public  voidendEdit()
     End an edit.
native public  booleangetAsBoolean(String field)
     Returns the Records value as a boolean value.
native public  DategetAsDate(String field)
     Return the fields value as a Date.
native public  doublegetAsDouble(String field)
     Returns the Records value as a double.
native public  floatgetAsFloat(String field)
     Returns the Records value as a float.
native public  intgetAsInteger(String field)
     Returns the Records value as an integer.
native public  ObjectgetAsObject(String field)
     Return the field value as Object.
native public  StringgetAsString(String field)
     Return the field value as String.
native public  JavaScriptObjectgetDataAsJsObject()
     Returns the underlying native data representation like a Json or XML node.
native public  ObjectgetDataAsObject()
     Returns the field value as an Object.
native public  StringgetId()
     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  booleanisDirty()
     The Records modified state.
native public  voidreject()
     Usually called by the Store which owns the Record.
native public  voidreject(boolean silent)
     Usually called by the Store which owns the Record.
native public  voidset(String field, String value)
     Sets the fields value.
native public  voidset(String field, int value)
     Sets the fields value.
native public  voidset(String field, float value)
     Sets the fields value.
native public  voidset(String field, double value)
     Sets the fields value.
native public  voidset(String field, boolean value)
     Sets the fields value.
native public  voidset(String field, Date value)
     Sets the fields value.
native public  voidsetId(String id)
     Set the Record's ID.

Field Detail
COMMIT
public static Operation COMMIT(Code)



EDIT
public static Operation EDIT(Code)



REJECT
public static Operation REJECT(Code)




Constructor Detail
Record
public Record(JavaScriptObject jsObj)(Code)




Method Detail
beginEdit
native public void beginEdit()(Code)
Begin an edit. While in edit mode, no events are relayed to the containing store.



cancelEdit
native public void cancelEdit()(Code)
Cancels all changes made in the current edit operation.



commit
native public void commit()(Code)
Usually called by the Store which owns the Record. Commits all changes made to the Record since either creation, or the last commit operation. Developers should subscribe to com.gwtext.client.data.event.StoreListener.onUpdate(StoreRecordcom.gwtext.client.data.Record.Operation) event to have their code notified of commit operations.



commit
native public void commit(boolean silent)(Code)
Usually called by the Store which owns the Record. Commits all changes made to the Record since either creation, or the last commit operation. Developers should subscribe to com.gwtext.client.data.event.StoreListener.onUpdate(StoreRecordcom.gwtext.client.data.Record.Operation) event to have their code notified of commit operations.
Parameters:
  silent - true to skip notification of the owning store of the change (defaults to false)



copy
native public Record copy()(Code)
Creates a copy of this record. copy of this Record



copy
native public Record copy(String id)(Code)
Creates a copy of this record.
Parameters:
  id - a new record id if you don't want to use this record's id copy of this Record



endEdit
native public void endEdit()(Code)
End an edit. If any data was modified, the containing store is notified.



getAsBoolean
native public boolean getAsBoolean(String field)(Code)
Returns the Records value as a boolean value. If val is null, undefined, false, -0, +0, NaN, or an empty string (""), this method returns false, otherwise it returns true for all other numbers and strings.
Parameters:
  field - the field name the field value



getAsDate
native public Date getAsDate(String field)(Code)
Return the fields value as a Date.
Parameters:
  field - the field name the field value



getAsDouble
native public double getAsDouble(String field)(Code)
Returns the Records value as a double.
Parameters:
  field - the field name the field value



getAsFloat
native public float getAsFloat(String field)(Code)
Returns the Records value as a float.
Parameters:
  field - the field name the field value



getAsInteger
native public int getAsInteger(String field)(Code)
Returns the Records value as an integer.
Parameters:
  field - the field name the field value



getAsObject
native public Object getAsObject(String field)(Code)
Return the field value as Object.
Parameters:
  field - the field name the filed value



getAsString
native public String getAsString(String field)(Code)
Return the field value as String.
Parameters:
  field - the field name the field value



getDataAsJsObject
native public JavaScriptObject getDataAsJsObject()(Code)
Returns the underlying native data representation like a Json or XML node. data as native object



getDataAsObject
native public Object getDataAsObject()(Code)
Returns the field value as an Object. the data object



getId
native public String getId()(Code)
Returns the ID of the record or null if not defined. ID of the record



getModifiedFields
public String[] getModifiedFields()(Code)
Return the names of the fields that are modified in this record. modified field names. Returns an empty array if no fields are modified.



isDirty
native public boolean isDirty()(Code)
The Records modified state. true if this record has been modified



reject
native public void reject()(Code)
Usually called by the Store which owns the Record. Rejects all changes made to the Record since either creation, or the last commit operation. Modified fields are reverted to their original values. Developers should subscribe to the com.gwtext.client.data.event.StoreListener.onUpdate(StoreRecordcom.gwtext.client.data.Record.Operation) event to have their code notified of reject operations.



reject
native public void reject(boolean silent)(Code)
Usually called by the Store which owns the Record. Rejects all changes made to the Record since either creation, or the last commit operation. Modified fields are reverted to their original values. Developers should subscribe to the com.gwtext.client.data.event.StoreListener.onUpdate(StoreRecordcom.gwtext.client.data.Record.Operation) event to have their code notified of reject operations.
Parameters:
  silent - true to skip notification of the owning store of the change (defaults to false)



set
native public void set(String field, String value)(Code)
Sets the fields value.
Parameters:
  field - the field name
Parameters:
  value - the field value



set
native public void set(String field, int value)(Code)
Sets the fields value.
Parameters:
  field - the field name
Parameters:
  value - the field value



set
native public void set(String field, float value)(Code)
Sets the fields value.
Parameters:
  field - the field name
Parameters:
  value - the field value



set
native public void set(String field, double value)(Code)
Sets the fields value.
Parameters:
  field - the field name
Parameters:
  value - the field value



set
native public void set(String field, boolean value)(Code)
Sets the fields value.
Parameters:
  field - the field name
Parameters:
  value - the field value



set
native public void set(String field, Date value)(Code)
Sets the fields value.
Parameters:
  field - the field name
Parameters:
  value - the field value



setId
native public void setId(String id)(Code)
Set the Record's ID.
Parameters:
  id - the record ID



Fields inherited from com.gwtext.client.core.JsObject
protected JavaScriptObject jsObj(Code)(Java Doc)

Methods inherited from com.gwtext.client.core.JsObject
public JavaScriptObject getJsObj()(Code)(Java Doc)
native public String[] getProperties()(Code)(Java Doc)
protected boolean isCreated()(Code)(Java Doc)
public void setJsObj(JavaScriptObject jsObj)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.