goog.ds.DataNode | |
goog.ds.DataNodeList | goog.ds.DataNode |
goog.ds.BasicNodeList | goog.ds.DataNodeList |
goog.ds.SortedNodeList | goog.ds.BasicNodeList |
compareFn
: Function
Comparison function by which the
node list is sorted. Should take 2 arguments to compare, and return a
negative integer, zero, or a positive integer depending on whether the
first argument is less than, equal to, or greater than the second.
|
opt_nodes
: Array.<goog.ds.DataNode>>
optional nodes to add to list;
these are assumed to be in sorted order.
|
![]()
Add a node to the node list, maintaining sort order.
If the node has a dataName, uses this for the key in the map.
Arguments:
|
code » | |||
![]()
Adds the given node to the end of the SortedNodeList. This should
only be used when the caller can guarantee that the sort order will
be maintained according to this SortedNodeList's compareFn (e.g.
when initializing a new SortedNodeList from a list of nodes that has
already been sorted).
Arguments:
|
code » | |||
![]()
Sets a node in the list of a given name, maintaining sort order.
Arguments:
|
code » |
![]()
Add a node to the node list.
If the node has a dataName, uses this for the key in the map.
TODO(user) Remove function as well
Arguments:
|
code » | |||
Get a node by string key.
Returns null if node doesn't exist.
Arguments:
Returns: goog.ds.DataNode
The node, or null if doesn't exist.
|
code » | |||
Get a node by index
Returns null if the index is out of range
Arguments:
Returns: goog.ds.DataNode
The node, or null if doesn't exist.
|
code » | |||
Gets the size of the node list
Returns: number
The size of the list.
|
code » | |||
Get the index of a named node
|
code » | |||
Removes a node in the list of a given name
|
code » | |||
![]()
Sets a node in the list of a given name
Arguments:
|
code » |
![]()
Add a node to the node list.
If the node has a dataName, uses this for the key in the map.
Arguments:
|
code » | |||
![]()
Get a node by string key.
Returns null if node doesn't exist.
Arguments:
Returns: *
The node, or null if doesn't exist.
|
code » | |||
Get a node by index
Returns null if the index is out of range
Arguments:
Returns: goog.ds.DataNode
The node, or null if doesn't exist.
|
code » | |||
Gets the size of the node list
Returns: number
The size of the list.
|
code » | |||
Removes a node in the list of a given name
|
code » | |||
![]()
Sets a node in the list of a given name
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 » |
![]()
No description.
|
Code » |