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

    function pSendVariableChanged(obj, Row, Col, Value)
%PSENDVARIABLECHANGED Send a VariableChanged event.
%
%   PSENDVARIABLECHANGED(OBJ, ROW, COL) sends a variable-changed event for
%   the specified row and column.  The new value is taken as the return
%   value from getNumericValues.
%
%   PSENDVARIABLECHANGED(..., VALUE) specifies the new value to use in the
%   event.

%   Copyright 2007 The MathWorks, Inc.


if nargin<4
    AllVals = obj.getNumericValues(Row);
    Value = AllVals{Col};
end
data = struct('Row', Row, 'Column', Col, 'NewValue', Value);
obj.send('VariableChanged', xregGui.xregEventData(obj, 'VariableChanged', data));