www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtablenode/view.m

    function d = view(node, cgb, d)
%VIEW  Update the browser display
%
%  UD = VIEW(NODE, CGB, UD) updates the data displayed in the browsers
%  table view.

%  Copyright 2000-2013 The MathWorks, Inc. and Ford Global Technologies, Inc.

pT = getdata(node);
if ~d.SuppressViewUpdate
    pT = getdata(node);
    if pT.getNumAxes==1
        d.Handles.Editor1D.settable(pT);
    else
        d.Handles.Editor2D.settable(pT);
    end
    
   
else
    % Skip updates for this view call as it follows a "show"
    d.SuppressViewUpdate = false;
end

% information pane at RHS
LT = info(pT);
pNorm = get(LT,'normalizers');
pInp = get(LT,'axesptrs');
mem = get(LT,'memory');
infoStrings = {'Table',getname(LT)
    'Size',sprintf('%g x %g',size(get(LT,'Values')))
    'Bounds',   sprintf('[%g,%g]',get(LT,'range'))};

if pT.getNumAxes==1
    infoStrings = [infoStrings
        {'Normalizer ', sprintf('%s(%s)',pNorm.getname,pInp.getname)}];
else
    infoStrings = [infoStrings
        {'Y Normalizer (Rows)', sprintf('%s(%s)',pNorm(2).getname,pInp(2).getname)
        'X Normalizer (Columns)', sprintf('%s(%s)',pNorm(1).getname,pInp(1).getname)}];
end

set(d.Handles.LastHistory ,'String',mem(end).Information)

infoStrings = [infoStrings
     {'Last Modified',mem(end).Date}];
 
d.Handles.InfoPane.ListText = infoStrings;