Undocumented Secrets of MATLAB
®
-Java Programming602
listeners(propIdx) = handle.listener(hhDivider, prop, 'PropertyPreSet', ...
callback); %#ok mlint - preallocate
end
end
listeners(end+1) = handle.listener(hhDivider, findprop(hhDivider,'Extent'), ...
'PropertyPostSet', @dividerResizedCallback);
%end % addPropListeners %#ok for Matlab 6 compatibility
%% Link property fields
function linkprops(handles,propName,h2PropName)
if nargin < 3, h2PropName = propName; end
msp = findprop(handles(1),propName);
msp.GetFunction = {@localGetData,handles(2),h2PropName};
msp.SetFunction = {@localSetData,handles(2),h2PropName};
%end % linkprop %#ok for Matlab 6 compatibility
%% Get the relevant property value from jcomp
function propValue = localGetData(object,propValue,jcomp,propName) ...