www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbcmultiview/@View/View.m
function obj = View(varargin) %VIEW Create a new View object % % OBJ = VIEW(PROP, VALUE, ...) creates a new View object. View is a % base class for display components that plug in to the MBC multiple-view % framework. % Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargin && isa(varargin{1}, 'mbcmultiview.View') obj = varargin{1}; varargin(1) = []; else obj = mbcmultiview.View; end % Call the inherited constructor abstractlayoutcomponent(obj, varargin{:}); % Add listener to fire when the message service changes obj.addPropertyListeners('MessageService', @i_notifyMS); function i_notifyMS(src, evt) evt.AffectedObject.pPostSetMessageService;