Skip to content

Commit b8735a1

Browse files
committed
Added the WidgetID data class for better organization.
1 parent 99c6127 commit b8735a1

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

WidgetID.m

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
classdef WidgetID < handle
2+
% A data class for storing identifying information about JS widgets in UIFigures.
3+
4+
properties (GetAccess = public, SetAccess = public)
5+
ID_attr char
6+
ID_val char
7+
end
8+
9+
methods
10+
% Counstructor:
11+
function obj = WidgetID(identifyingAttributeName, identifyingAttributeValue)
12+
obj.ID_attr = identifyingAttributeName;
13+
obj.ID_val = identifyingAttributeValue;
14+
end
15+
end
16+
17+
end

0 commit comments

Comments
 (0)