comparison m-toolbox/m/gui/@jcontrol/getappdata.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 function data=getappdata(obj, name)
2 % GETAPPDATA function overloaded for JCONTROL class
3 %
4 % GETAPPDATA returns data from the application data area of the hgcontrol
5 % component of a JCONTROL
6 %
7 % Example:
8 % data=gatappdata(obj)
9 % data=getappdata(obj, FieldName)
10 %
11 % See also: JCONTROL, JCONTROL/GETAPPDATA, JCONTROL/ISAPPDATA
12 % JCONTROL/RMAPPDATA GETAPPDATA
13 %
14 % -------------------------------------------------------------------------
15 % Author: Malcolm Lidierth 07/07
16 % Copyright © The Author & King's College London 2007
17 % -------------------------------------------------------------------------
18
19 if nargin==1
20 data=getappdata(obj.hgcontrol);
21 else
22 data=getappdata(obj.hgcontrol, name);
23 end
24 return
25 end