goog.ds.DataNode | |
goog.ds.JsDataSource | goog.ds.DataNode |
goog.ds.JsonDataSource | goog.ds.JsDataSource |
root
: Object
The root JS node.
|
dataName
: string
The name of this node relative to the parent node.
|
opt_parent
: Object=
Optional parent of this JsDataSource.
implements goog.ds.DataNode.
|
![]()
Creates the DataNodeList with the child nodes for this element.
Allows for only building list as needed.
Arguments:
|
code » | |||
![]()
No description.
|
code » | |||
Gets a named child node of the current node
Arguments:
Returns: goog.ds.DataNode
The child node, or null if no node of
this name exists.
|
code » | |||
Gets the value of a child node
|
code » | |||
![]()
TODO(user) revisit lazy creation.
|
code » | |||
Get the name of the node relative to the parent node
Returns: string
The name of the node.
|
code » | |||
Gets the a qualified data path to this node
Returns: string
The data path.
|
code » | |||
![]()
Gets the state of the backing data for this node
TODO(user) Discuss null value handling
Returns: goog.ds.LoadState
The state.
|
code » | |||
Whether the value of this node is a homogeneous list of data
Returns: boolean
True if a list.
|
code » | |||
![]()
Load or reload the backing data for this node
|
code » | |||
![]()
Set the value of the node
Arguments:
|
code » | |||
Sets a named child node of the current node.
If value is null, removes the child node.
|
code » | |||
![]()
Setthe name of the node relative to the parent node
Arguments:
|
code » | |||
![]()
Set this data source to use list semantics. List data sources:
- Are assumed to have child nodes of all of the same type of data
- Fire data changes on the root node of the list whenever children
are added or removed
Arguments:
|
code » | |||
![]()
Sets the root JS object
Arguments:
|
code » |
![]()
Get the value of the node
Arguments:
Returns: *
The value of the node, or null if no value.
|
code » | |||
Gets a named child node of the current node
Arguments:
Returns: goog.ds.DataNode
The child node, or null
if no node of this name exists.
|
code » | |||
![]()
Gets the value of a child node
Arguments:
Returns: *
The value of the node, or null if no value or the child node
doesn't exist.
|
code » | |||
Gets all of the child nodes of the current node.
Should return an empty DataNode list if no child nodes.
Arguments:
Returns: !goog.ds.DataNodeList
The child nodes.
|
code » | |||
Get the name of the node relative to the parent node
Returns: string
The name of the node.
|
code » | |||
Gets the a qualified data path to this node
Returns: string
The data path.
|
code » | |||
![]()
Gets the state of the backing data for this node
Returns: goog.ds.LoadState
The state.
|
code » | |||
Whether the value of this node is a homogeneous list of data
Returns: boolean
True if a list.
|
code » | |||
![]()
Set the value of the node
Arguments:
|
code » | |||
Sets a named child node of the current node.
|
code » | |||
![]()
Set the name of the node relative to the parent node
Arguments:
|
code » |
![]()
Load or reload the backing data for this node
|
Code » |