Home > functions > gui > bayes_parm_editor_dir > bayes_parm_editor_basic_closed_notify.m

bayes_parm_editor_basic_closed_notify

PURPOSE ^

destruct bayes_parm_editor main object by notification

SYNOPSIS ^

function bayes_parm_editor_basic_closed_notify(obj)

DESCRIPTION ^

 destruct bayes_parm_editor main object by notification
 from basic parameter figure close.
 [USAGE]
    bayes_parm_editor_basic_closed_notify(<fig>);
 [IN]
    obj : figure handle of bayes_parm_editor object.
 [OUT]
    none

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function bayes_parm_editor_basic_closed_notify(obj)
0002 % destruct bayes_parm_editor main object by notification
0003 % from basic parameter figure close.
0004 % [USAGE]
0005 %    bayes_parm_editor_basic_closed_notify(<fig>);
0006 % [IN]
0007 %    obj : figure handle of bayes_parm_editor object.
0008 % [OUT]
0009 %    none
0010 %
0011 % Copyright (C) 2011, ATR All Rights Reserved.
0012 % License : New BSD License(see VBMEG_LICENSE.txt)
0013 
0014 %
0015 % --- Previous check
0016 %
0017 if ~exist('obj', 'var'), error('obj is a required parameter.'); end
0018 
0019 %
0020 % --- Main Procedure
0021 %
0022 data = guidata(obj);
0023 
0024 if ~isempty(data.adv_fig) && ishandle(data.adv_fig)
0025     delete(data.adv_fig);
0026 end
0027 delete(obj);

Generated on Tue 27-Aug-2013 11:46:04 by m2html © 2005