www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtradeoffgui/@mmTableSetupView/pPostSetMessageService.m

    function pPostSetMessageService(obj)
%PPOSTSETMESSAGESERVICE Method that is called when the message service is set
%
%  PPOSTSETMESSAGESERVICE(OBJ) is called in response to a new message
%  service being set in the object.

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


obj.super('pPostSetMessageService');

obj.addMessageServiceListener( ...
    { ...
    'DataChanged'; ...
    'AxisOrderChanged'; ...
    'BreakpointsChanged'; ...
    'TableSelectionChanged'; ...
    }, ...
    { ...
    {@i_fullrefresh, obj}; ...
    {@i_axischanged, obj}; ...
    {@i_bpchanged, obj}; ...
    {@i_tableselchanged, obj}; ...
    } ...
    );

obj.pUpdateSwitchNames;
obj.pUpdateAxisOrder;
obj.pUpdateBreakpoints;
obj.pUpdateTableSel;


function i_fullrefresh(src, evt, obj)
obj.pUpdateSwitchNames;
obj.pUpdateAxisOrder;
obj.pUpdateBreakpoints;
obj.pUpdateTableSel;

function i_axischanged(src, evt, obj)
obj.pUpdateAxisOrder;
obj.pUpdateBreakpoints;

function i_bpchanged(src, evt, obj)
obj.pUpdateBreakpoints;

function i_tableselchanged(src, evt, obj)
obj.pUpdateTableSel;