Clarify GUIDE helper names
Agent-Logs-Url: https://github.com/kk14222/3D_EDFM_SIM-X/sessions/a128ab7f-6b94-4048-a847-f2dc37bbe0ab Co-authored-by: kk14222 <217880052+kk14222@users.noreply.github.com>
This commit is contained in:
co-authored by
kk14222
parent
421696c5e0
commit
0018b44cea
@@ -1,6 +1,10 @@
|
||||
classdef EDFMGuideComponent < handle
|
||||
%EDFMGUIDECOMPONENT Compatibility adapter from GUIDE/uicontrol to App Designer-style properties.
|
||||
|
||||
properties (Constant, Access = private)
|
||||
NUMERIC_FIELD_TYPE = 'numeric'
|
||||
end
|
||||
|
||||
properties (SetAccess = private)
|
||||
Handle
|
||||
end
|
||||
@@ -277,7 +281,7 @@ classdef EDFMGuideComponent < handle
|
||||
|
||||
function tf = isNumericEditField(obj)
|
||||
userData = get(obj.Handle, 'UserData');
|
||||
tf = isstruct(userData) && isfield(userData, 'Type') && strcmp(userData.Type, 'numeric');
|
||||
tf = isstruct(userData) && isfield(userData, 'Type') && strcmp(userData.Type, obj.NUMERIC_FIELD_TYPE);
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user