www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbctree/@treenode/add.m

    function add(node, child)
%ADD    A short description of the function.
%
%   ADD(OBJ, CHILD)

%   Copyright 2006-2011 The MathWorks, Inc.

for i=1:length(child)
    node.TreeNode.add( child(i).TreeNode );
    node.connect( child(i), 'down' );
    set( child(i), 'Tree', node.Tree );
end
node.fireNodeStructureChanged();