www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbcwidgets/@itemList/pSetListDetails.m

    function pSetListDetails(obj, info)
%PSETLISTDETAILS Updates the peer with the list information.
%
%   PSETLISTDETAILS(OBJ, INFO)

%   Copyright 2006 The MathWorks, Inc.

if obj.DisplayTypeColumn
    dataIndex = 2:3;
else
    dataIndex = 2;
end
icons = info(:,1);
noIcon = cellfun( @isempty, icons );
icons(noIcon) = {''};
% update the Peer
obj.Display.Peer.setData( info(:,dataIndex), icons );