GETAPPDATA function overloaded for JCONTROL class GETAPPDATA returns data from the application data area of the hgcontrol component of a JCONTROL Example: data=gatappdata(obj) data=getappdata(obj, FieldName) See also: JCONTROL, JCONTROL/GETAPPDATA, JCONTROL/ISAPPDATA JCONTROL/RMAPPDATA GETAPPDATA ------------------------------------------------------------------------- Author: Malcolm Lidierth 07/07 Copyright © The Author & King's College London 2007 -------------------------------------------------------------------------
0001 function data=getappdata(obj, name) 0002 % GETAPPDATA function overloaded for JCONTROL class 0003 % 0004 % GETAPPDATA returns data from the application data area of the hgcontrol 0005 % component of a JCONTROL 0006 % 0007 % Example: 0008 % data=gatappdata(obj) 0009 % data=getappdata(obj, FieldName) 0010 % 0011 % See also: JCONTROL, JCONTROL/GETAPPDATA, JCONTROL/ISAPPDATA 0012 % JCONTROL/RMAPPDATA GETAPPDATA 0013 % 0014 % ------------------------------------------------------------------------- 0015 % Author: Malcolm Lidierth 07/07 0016 % Copyright © The Author & King's College London 2007 0017 % ------------------------------------------------------------------------- 0018 0019 if nargin==1 0020 data=getappdata(obj.hgcontrol); 0021 else 0022 data=getappdata(obj.hgcontrol, name); 0023 end 0024 return 0025 end