goog.ds.DataNode | |
goog.ds.DataNodeList | goog.ds.DataNode |
goog.ds.AbstractFastDataNode | goog.ds.DataNodeList |
goog.ds.FastListNode | goog.ds.AbstractFastDataNode |
values
: Array
values hold by this list node.
|
dataName
: string
name of this node.
|
opt_parent
: goog.ds.DataNode=
parent of this node.
|
![]()
Adds a child to this data node
Arguments:
|
code » | |||
Gets the value of this data node (if called without opt_key) or
gets a child node (if called with opt_key).
Arguments:
Returns: Array | goog.ds.DataNode
Array of child nodes (if called without
opt_key), or a named child node otherwise.
|
code » | |||
Gets a child node by (numeric) index.
Arguments:
Returns: goog.ds.DataNode
Child node at specified index.
|
code » | |||
Get a child node by name.
Arguments:
Returns: goog.ds.DataNode
Child node.
|
code » | |||
![]()
Returns the value of a child node.
Arguments:
Returns: *
Value of child node.
|
code » | |||
Returns child nodes of this data node. Currently, only supports
returning all children.
Returns: !goog.ds.DataNodeList
List of child nodes.
|
code » | |||
Gets the number of child nodes.
Returns: number
Number of child nodes.
|
code » | |||
Returns a javascript object representation of this data node. You should
not modify the object returned by this function.
Returns: !Object
Javascript object representation of this data node.
|
code » | |||
Tries to interpret key as a numeric index enclosed by square brakcets.
|
code » | |||
Returns the index of a named child nodes. This method only works if
this list uses mixed name/indexed lookup, i.e. if its child node have
an 'id' attribute.
|
code » | |||
Returns whether this data node is a list. Always returns true.
Returns: boolean
Whether this data node is array-like.
|
code » | |||
![]()
Fire data changes that are appropriate when the size of this list changes.
Should be called whenever the list size has changed.
|
code » | |||
![]()
Removes a child node.
|
code » | |||
![]()
Not supported for FastListNodes.
Arguments:
|
code » | |||
![]()
Sets a child node. Creates the child if it does not exist. To set
children at a certain index, use a key of the form '[index]'. Note, that
you can only set values at existing numeric indices. To add a new node
to this list, you have to use the add method.
Calling this function makes any child nodes previously obtained for name
invalid. You should not use these child nodes but instead obtain a new
instance by calling getChildNode.
|
code » | |||
![]()
Sets a child node.
|
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 » |