www.gusucode.com > sloptim工具箱matlab源码程序 > sloptim/sloptguis/@srosisotoolgui/@tunedparameterpnl/cleanup.m

    function cleanup(this) 
% CLEANUP  method to cleanup object when being destroyed
%

%Revisit: Method should be private but is called from within a callback 
%created in the constructor and needs to be public

% Author(s): A. Stothert 31-Aug-2005
% Copyright 2005-2006 The MathWorks, Inc.

%Disable and clear listeners
if ishandle(this.Listeners)
   set(this.Listeners,'Enabled','off')
   delete(this.Listeners)
end

%Clear index data
this.idxData = [];

%Release java widget handles
this.JavaHandle  = [];
this.FormatPopup = [];

%Destroy local object
delete(this)