www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/+mbccrosssectiongui/@GraphView/pSetValue.m

    function pSetValue(obj, Column, Value)
%PSETVALUE Interface that allows editing of an input's value
%
%  PSETVALUE(OBJ, COLUMN, VALUE) sets the inputs at column index COLUMN to
%  have a candidate value of VALUE.  This interface is used by the column
%  header objects to notify this object of a value edit by the user.

%  Copyright 2014 The MathWorks, Inc. and Ford Global Technologies, Inc.


% The new value is passed directly to the tradeoff services, which posts
% a gui-wide update notification back to us.
PR = xregGui.PointerRepository;
ptrID = PR.stackSetPointer(obj.Parent, 'watch');
obj.DataModel.setColumnItemValue(Column, Value);
PR.stackRemovePointer(obj.Parent, ptrID);