ds.JsPropertyDataSource Extends goog.ds.BaseDataNode
Data source for JavaScript properties that arent objects. Contains reference to parent object so that you can set the vaule

Inheritance

Constructor

goog.ds.JsPropertyDataSource(parentdataNameopt_parentDataNode)

Parameters

parent : goog.ds.DataNode
Parent object.
dataName : string
Name of this property.
opt_parentDataNode : goog.ds.DataNode=
The parent data node. If omitted, assumes that the parent object is the parent data node.

Instance Methods

Public Protected Private
get() Object
Get the value of the node
Returns: Object  The value of the node, or null if no value.
code »
getDataName() string
Get the name of the node relative to the parent node
Returns: string  The name of the node.
code »
getParent()
No description.
code »
set(value)
Set the value of the node
Arguments:
value : Object
The new value of the node.
code »
getChildNode(nameopt_canCreate) goog.ds.DataNode
Gets a named child node of the current node
Arguments:
name : string
The node name.
opt_canCreate : boolean=
Whether you can create the child node if it doesn't exist already.
Returns: goog.ds.DataNode  The child node, or null if no node of this name exists and opt_create is false.
code »
getChildNodeValue(name) Object
Gets the value of a child node
Arguments:
name : string
The node name.
Returns: Object  The value of the node, or null if no value or the child node doesn't exist.
code »
getChildNodes(opt_selector) !goog.ds.DataNodeList
Gets all of the child nodes of the current node. Should return an empty DataNode list if no child nodes.
Arguments:
opt_selector : string=
String selector to choose child nodes.
Returns: !goog.ds.DataNodeList  The child nodes.
code »
getDataName() string
Get the name of the node relative to the parent node
Returns: string  The name of the node.
code »
getDataPath() string
Gets the a qualified data path to this node
Returns: string  The data path.
code »
getLoadState() goog.ds.LoadState
Gets the state of the backing data for this node
Returns: goog.ds.LoadState  The state.
code »
load()
Load or reload the backing data for this node
code »
set(value)
Set the value of the node
Arguments:
value : Object
The new value of the node.
code »

Instance Properties

constructor :
No description.
Code »
dataName_ :
No description.
Code »
parentDataNode_ : goog.ds.DataNode
No description.
Code »
parent_ : goog.ds.DataNode
No description.
Code »
getParent :
Gets the parent node. Subclasses implement this function
Code »

Static Properties

goog.ds.JsPropertyDataSource.superClass_ :
No description.
Code »

Package ds

Package Reference