;
application.tree.dataDescriptor.addChildAt(application.tree.dataProvider.children()[0], newNode, 1);
}
private function doGetChildren():String
{
return IList(application.tree.dataDescriptor.getChildren(application.treeXML.node[0])).getItemAt(0).@label;
}
private function doGetData():String
{
return application.tree.dataDescriptor.getData(application.treeXML.node.node[0]).@label
}
private function addLargeData():void
{
var treeData:TreeData = new TreeData();
application.tree.dataProvider = treeData.largeObj;
}
private function doRemoveAll():void
{
var xlc:XMLListCollection = new XMLListCollection(application.tree.dataProvider.children()[0].children());
xlc.removeAll()
}
private function addToSelected():void
{
application.tree.selectedItem.addItem(new LTNode('new Item'))
}
private function addAtSelInd():void
{
application.tree.dataProvider.addItemAt(new LTNode("new node"), application.tree.selectedIndex);
}
private function invalidSelectionSet():void
{
application.tree.openItems = [application.tree.dataProvider.children()[0], application.tree.dataProvider.children()[1]];
application.tree.selectedItem = application.tree.dataProvider.children()[1].children()[0];
var node:XML = XML(application.tree.selectedItem);
if( node == null ) return;
var children:XMLList = XMLList(node);
for(var i:Number=0; i < children.length(); i++)
{
delete children[i];
}
application.tree.selectedItem = node;
}
private var treeOpenItems:Object;
]]>