forked from StackOverflowMATLABchat/mlapptools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWidgetID.m
26 lines (22 loc) · 784 Bytes
/
WidgetID.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
classdef WidgetID < handle
% A data class for storing identifying information about HTML DOM nodes in UIFigures.
% When the identifying attribute (ID_attr) is "widgetid", this points to a dijit widget.
properties (GetAccess = public, SetAccess = public)
ID_attr char
ID_val char
end
properties (Access = private, Constant = true)
DEF_PROP_VAL = '';
end
methods
% Counstructor:
function obj = WidgetID(identifyingAttributeName, identifyingAttributeValue)
if nargin == 0 % Case of preallocation
identifyingAttributeName = WidgetID.DEF_PROP_VAL;
identifyingAttributeValue = WidgetID.DEF_PROP_VAL;
end
obj.ID_attr = identifyingAttributeName;
obj.ID_val = identifyingAttributeValue;
end
end
end