64
64
-----------------
65
65
<a name =" addClasses " ></a >
66
66
67
- #### * mlapptools* .** addClasses** (* uiElement * , * cssClasses* )
67
+ #### * mlapptools* .** addClasses** (* hUIElement * , * cssClasses* )
68
68
69
69
##### Description
70
70
@@ -109,11 +109,11 @@ See example for [`addClasses`](#addClasses).
109
109
-----------------
110
110
<a name =" fontColor " ></a >
111
111
112
- #### * mlapptools* .** fontColor** (* uiElement * , * color* )
112
+ #### * mlapptools* .** fontColor** (* hUIElement * , * color* )
113
113
114
114
##### Description
115
115
116
- Set the font color of the specified UI element, ` 'uiElement ' ` , to the input color, ` color ` . ` color ` can be a
116
+ Set the font color of the specified UI element, ` 'hUIElement ' ` , to the input color, ` color ` . ` color ` can be a
117
117
predefined color string or a string containing a valid CSS color method call.
118
118
119
119
Valid color specifications are:
@@ -143,11 +143,11 @@ mlapptools.fontColor(myGUI.TextArea, 'rgb(255,165,0)');
143
143
-----------------
144
144
<a name =" fontWeight " ></a >
145
145
146
- #### * mlapptools* .** fontWeight** (* uiElement * , * weight* )
146
+ #### * mlapptools* .** fontWeight** (* hUIElement * , * weight* )
147
147
148
148
##### Description
149
149
150
- Set the font weight of the specified UI element, ` uiElement ` , to the input weight string or integer, ` weight ` .
150
+ Set the font weight of the specified UI element, ` hUIElement ` , to the input weight string or integer, ` weight ` .
151
151
For this setting to have an effect, the font being used must have built-in faces that match the specified weight.
152
152
153
153
Valid font weight property values are:
@@ -176,7 +176,7 @@ mlapptools.fontWeight(myGUI.TextArea, 600);
176
176
-----------------
177
177
<a name =" getChildNodeIDs " ></a >
178
178
179
- #### * mlapptools* .** getChildNodeIDs** (* hWebWindow * ,* widgetID* )
179
+ #### * mlapptools* .** getChildNodeIDs** (* hWin * ,* widgetID* )
180
180
181
181
##### Description
182
182
@@ -185,13 +185,13 @@ A method for getting all children nodes (commonly `<div>` elements) of a specifi
185
185
##### Examples
186
186
187
187
``` MATLAB
188
- tg = uitabgroup(uifigure());
189
- uitab(tg );
190
- [win , widgetID] = mlapptools.getWebElements(tg );
191
- [childIDs] = mlapptools.getChildNodeIDs(win , widgetID);
192
- mlapptools.setStyle(win ,'background','blue',childIDs(2));
193
- [childIDs] = mlapptools.getChildNodeIDs(win , childIDs(2));
194
- mlapptools.setStyle(win ,'background','green',childIDs(4));
188
+ hTG = uitabgroup(uifigure());
189
+ uitab(hTG );
190
+ [hWin , widgetID] = mlapptools.getWebElements(hTG );
191
+ [childIDs] = mlapptools.getChildNodeIDs(hWin , widgetID);
192
+ mlapptools.setStyle(hWin ,'background','blue',childIDs(2));
193
+ [childIDs] = mlapptools.getChildNodeIDs(hWin , childIDs(2));
194
+ mlapptools.setStyle(hWin ,'background','green',childIDs(4));
195
195
```
196
196
197
197
-----------------
@@ -218,7 +218,7 @@ web(['text://' fullHTML]);
218
218
-----------------
219
219
<a name =" getParentNodeID " ></a >
220
220
221
- #### * mlapptools* .** getParentNodeID** (* hWebWindow * ,* widgetID* )
221
+ #### * mlapptools* .** getParentNodeID** (* hWin * ,* widgetID* )
222
222
223
223
##### Description
224
224
@@ -230,15 +230,15 @@ Using the demo GUI generated by `./Demo/DOMdemoGUI.m`
230
230
231
231
``` MATLAB
232
232
tg = uitabgroup(uifigure());
233
- [win , widgetID] = mlapptools.getWebElements(tg);
234
- mlapptools.setStyle(win ,'background','linear-gradient(red, pink, white)',...
235
- mlapptools.getParentNodeID(win , widgetID));
233
+ [hWin , widgetID] = mlapptools.getWebElements(tg);
234
+ mlapptools.setStyle(hWin ,'background','linear-gradient(red, pink, white)',...
235
+ mlapptools.getParentNodeID(hWin , widgetID));
236
236
```
237
237
238
238
-----------------
239
239
<a name =" getWebElements " ></a >
240
240
241
- #### * mlapptools* .** getWebElements** (* uiElement * )
241
+ #### * mlapptools* .** getWebElements** (* hUIElement * )
242
242
243
243
##### Description
244
244
@@ -249,7 +249,7 @@ widget ID can be used to call the 4-parameter variant of [`setStyle`](#setStyle)
249
249
250
250
``` MATLAB
251
251
myGUI = DOMdemoGUI;
252
- [win , widgetID] = mlapptools.getWebElements(myGUI.TextArea);
252
+ [hWin , widgetID] = mlapptools.getWebElements(myGUI.TextArea);
253
253
```
254
254
255
255
-----------------
@@ -267,13 +267,13 @@ Using the demo GUI generated by `./Demo/DOMdemoGUI.m`
267
267
268
268
``` MATLAB
269
269
myGUI = DOMdemoGUI;
270
- win = mlapptools.getWebWindow(myGUI.UIFigure);
270
+ hWin = mlapptools.getWebWindow(myGUI.UIFigure);
271
271
```
272
272
273
273
-----------------
274
274
<a name =" getWidgetInfo " ></a >
275
275
276
- #### * mlapptools* .** getWidgetInfo** (* hWebwindow * , * widgetID* , * verbosityFlag* )
276
+ #### * mlapptools* .** getWidgetInfo** (* hWin * , * widgetID* , * verbosityFlag* )
277
277
278
278
##### Description
279
279
@@ -286,8 +286,8 @@ Using the demo GUI generated by `./Demo/DOMdemoGUI.m`
286
286
287
287
``` MATLAB
288
288
myGUI = DOMdemoGUI;
289
- [win , widgetID] = mlapptools.getWebElements(myGUI.TextArea);
290
- nfo = mlapptools.getWidgetInfo(win , widgetID);
289
+ [hWin , widgetID] = mlapptools.getWebElements(myGUI.TextArea);
290
+ nfo = mlapptools.getWidgetInfo(hWin , widgetID);
291
291
```
292
292
293
293
-----------------
@@ -311,13 +311,13 @@ nfoList = mlapptools.getWidgetList(myGUI.UIFigure);
311
311
-----------------
312
312
<a name =" setStyle " ></a >
313
313
314
- #### * mlapptools* .** setStyle** (* uiElement * , * styleAttr* , * styleValue* )
314
+ #### * mlapptools* .** setStyle** (* hUIElement * , * styleAttr* , * styleValue* )
315
315
316
316
#### * mlapptools* .** setStyle** (* hWin* , * styleAttr* , * styleValue* , * ID_object* )
317
317
318
318
##### Description
319
319
320
- Set the style attribute ` styleAttr ` of the specified UI element, ` 'uiElement ' ` , to the value ` styleValue ` . ` styleAttr `
320
+ Set the style attribute ` styleAttr ` of the specified UI element, ` 'hUIElement ' ` , to the value ` styleValue ` . ` styleAttr `
321
321
should be any valid CSS attribute, and ` styleValue ` a valid setting thereof.
322
322
323
323
This method provides a general interface to change CSS style attributes, with minimal input testing and error reporting,
@@ -355,10 +355,10 @@ mlapptools.setTimeout(myGUI.UIFigure, 3); % This will wait less for dojo queries
355
355
-----------------
356
356
<a name =" textAlign " ></a >
357
357
358
- #### * mlapptools* .** textAlign** (* uiElement * , * alignment* )
358
+ #### * mlapptools* .** textAlign** (* hUIElement * , * alignment* )
359
359
360
360
##### Description
361
- Set the horizontal text alignment of the specified UI element, ` uiElement ` , to that specified by the input alignment
361
+ Set the horizontal text alignment of the specified UI element, ` hUIElement ` , to that specified by the input alignment
362
362
string, ` alignment ` .
363
363
364
364
Valid alignment strings are:
0 commit comments