com.sap.ui.core.client.model.json
Class JSONModel

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.sap.ui.core.client.model.Model
          extended by com.sap.ui.core.client.model.json.JSONModel

public class JSONModel
extends Model

The class JSONModel is used for wrapping JSON data and make it availble for Phoenix controls.

Version:
1.0 - 15.12.2010 10:18:10, Revision Version: ($Revision: #1 $), Revision Date: ($Date: 2011/02/08 $)
Author:
D039071@exchange.sap.corp, Revision Author: ($Author: d039071 $)

Constructor Summary
protected JSONModel()
          constructs the class JSONModel hidden due to JavaScriptObject restriction
 
Method Summary
static JSONModel create()
          creates a new instance of the JSONModel
 JSONModel setData(com.google.gwt.core.client.JavaScriptObject data)
          sets the JSON data of the JSONModel
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JSONModel

protected JSONModel()
constructs the class JSONModel hidden due to JavaScriptObject restriction

Method Detail

create

public static JSONModel create()
creates a new instance of the JSONModel

Returns:
new instance of the JSONModel

setData

public final JSONModel setData(com.google.gwt.core.client.JavaScriptObject data)
sets the JSON data of the JSONModel

Parameters:
data - JSON data object
Returns:
reference to itself (for chaining)


Copyright © 2011 SAP. All Rights Reserved.