www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@xregGui/@DialogAction/DialogAction.m
function obj = DialogAction( varargin ) % xregGui.DialogAction class constructor % % Subclass of StatefulAction that adds a link to an xregGui.dialog and % derives the Buttons enable status from the combination of the Action's % 'Enabled' and the dialog's 'Enabled'. % Copyright 2007 The MathWorks, Inc. % Is the first input argument a udd object derived from me? If it is then % we are being called as a super class constructor and don't have to % construct an object if nargin && isa(varargin{1}, 'xregGui.DialogAction') obj = varargin{1}; varargin(1) = []; else obj = xregGui.DialogAction; end % Call the inherited constructor StatefulAction(obj, varargin{:});