-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathUIControls.xml
469 lines (440 loc) · 25.8 KB
/
UIControls.xml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
<?xml version="1.0" encoding="UTF-8"?>
<uicontrols>
<control type="label">
<desc>A Label in the UI that will have a ':' appended it is right justified.</desc>
<attrs>
<attr name="id" type="string" required="false" default="">
<desc>The unique identifier within the form or subform.
IDs do not have to be unique to it's parent form other sibling subforms, or its child subforms</desc>
</attr>
<attr name="label" type="string" required="true">
<desc>The text that is displayed in the control</desc>
</attr>
<attr name="labelfor" type="string" required="false" default="">
<desc>This can contain the id of a field that this label is associated with</desc>
</attr>
<attr name="align" type="boolean" required="false" default="true">
<desc>Indicates whetehr the label should automatically get a `:` appended.</desc>
</attr>
</attrs>
</control>
<control type="command">
<desc>Displays a button that can issue a command.</desc>
<attrs>
<attr name="id" type="string" required="false" default="">
<desc>The unique identifier within the form or subform.
IDs do not have to be unique to it's parent form other sibling subforms, or its child subforms</desc>
</attr>
<attr name="label" type="string" required="true">
<desc> The text that is displayed on the button</desc>
</attr>
<attr name="commandtype" type="string" required="true">
<desc>The type of command, this often matches the taskable's name.</desc>
</attr>
<attr name="action" type="string" required="true">
<desc>The action to be performed.</desc>
</attr>
</attrs>
</control>
<control type="iconview">
<desc>Displays a subview or sub form</desc>
<attrs>
<attr name="id" type="string" required="false" default="">
<desc>The unique identifier within the form or subform.
IDs do not have to be unique to it's parent form other sibling subforms, or its child subforms</desc>
</attr>
<attr name="name" type="string" required="true">
<desc> The name of the data object's field that will be used to fill in the form.</desc>
</attr>
<attr name="viewname" type="string" required="true">
<desc>References a View Definition in the same View Set.</desc>
</attr>
<attr name="colspan" type="integer" required="false" default="1">
<desc>The number of columns the separator will span.</desc>
</attr>
<attr name="rows" type="integer" required="false" default="5">
<desc>Indicates how many rows the grid should be.</desc>
</attr>
</attrs>
<params>
<param name="nosep" type="boolean" required="false" default="false">
<desc>This tells the iconview not to add an embdded separator.</desc>
</param>
<param name="nosepmorebtn" type="boolean" required="false" default="false">
<desc>This tells the iconview not to add a 'More' (the triangle icon) button to the separator.</desc>
</param>
</params>
</control>
<control type="separator">
<desc>Displays a separator with text and optional icon.</desc>
<attrs>
<attr name="id" type="string" required="false" default="">
<desc>The unique identifier within the form or subform.
IDs do not have to be unique to it's parent form other sibling subforms, or its child subforms</desc>
</attr>
<attr name="label" type="string" required="false">
<desc>The text that is displayed in the separator</desc>
</attr>
<attr name="colspan" type="integer" required="false" default="1">
<desc>The number of columns the separator will span.</desc>
</attr>
<attr name="collapse" type="string" required="true">
<desc>The name of the subview to collape or show.</desc>
</attr>
<attr name="recordobj" type="tru" required="false" default="false">
<desc>Tells it that this will be dragable and contain the current object's unique identifier, which is usually the primary key.</desc>
</attr>
<attr name="icon" type="string" required="false" default="">
<desc>The name of the icon from the IconManager that will be displayed in the seaparator.</desc>
</attr>
</attrs>
<params>
<param name="forclass" type="string" required="false" default="">
<desc>Tells the separator what DataModel class it should get it's title from. For Example, for a Collecting Event it would be forclass="CollectingEvent" </desc>
</param>
</params>
</control>
<control type="subview">
<desc>Displays a subview or sub form</desc>
<attrs>
<attr name="id" type="string" required="false" default="">
<desc>The unique identifier within the form or subform.
IDs do not have to be unique to it's parent form other sibling subforms, or its child subforms</desc>
</attr>
<attr name="name" type="string" required="true">
<desc> The name of the data object's field that will be used to fill in the form.</desc>
</attr>
<attr name="viewname" type="string" required="true">
<desc>References a View Definition in the same View Set.</desc>
</attr>
<attr name="colspan" type="integer" required="false" default="1">
<desc>The number of columns the separator will span.</desc>
</attr>
<attr name="rows" type="integer" required="false" default="5">
<desc>Indicates how many rows the grid should be.</desc>
</attr>
</attrs>
<params>
<param name="addsearch" type="boolean" required="false" default="false">
<desc>Tells the subview panel to add a search button.</desc>
</param>
<param name="addadd" type="boolean" required="false" default="false">
<desc>Tells the subview panel to add an 'Add' button. When this is used the removed/delete button does not delete the object it just removed it form the list.</desc>
</param>
<param name="btn" type="boolean" required="false" default="false">
<desc>Indicates the subview is "hidden" behind a launcher button.</desc>
</param>
<param name="icon" type="string" required="false" default="">
<desc>The name of the icon to use next to the button</desc>
</param>
<param name="hc" type="string" required="false" default="">
<desc>The help context for the popup dialog.</desc>
</param>
<param name="bgcolor" type="color" required="false" default="">
<desc>The RGB triplet separated by commas. For example: bgcolor=233,233,233</desc>
</param>
<param name="border" type="string" required="false" default="">
<desc>Adds a border to the subview. border=line Possible values: etched, raised, lowered, empty, line.</desc>
</param>
<param name="bordercolor" type="color" required="false" default="">
<desc>The color for a 'line' border. The RGB triplet separated by commas. For example: bgcolor=233,233,233</desc>
</param>
<param name="noscrollbars" type="boolean" required="false" default="false">
<desc>This tells the subform not to add scrollbars to the form.</desc>
</param>
<param name="nosep" type="boolean" required="false" default="false">
<desc>This tells the subform not to add an embdded separator.</desc>
</param>
<param name="nosepmorebtn" type="boolean" required="false" default="false">
<desc>This tells the subform not to add a 'More' (the triangle icon) button to the separator.</desc>
</param>
<param name="collapse" type="boolean" required="false" default="false">
<desc>This tells the subform to initially show the subviee in a 'collapsed' state.</desc>
</param>
</params>
</control>
<control type="panel">
<desc>Displays/Creates a panel for orginizing controls more easily on the screen</desc>
<attrs>
<attr name="id" type="string" required="false" default="">
<desc>The unique identifier within the form or subform.
IDs do not have to be unique to it's parent form other sibling subforms, or its child subforms</desc>
</attr>
<attr name="name" type="string" required="true">
<desc> The name of the data object's field that will be used to fill in the form.</desc>
</attr>
<attr name="colspan" type="integer" required="false" default="1">
<desc>The number of columns the separator will span.</desc>
</attr>
<attr name="rowdef" type="string" required="true">
<desc>A JGoodies Form row definition</desc>
</attr>
<attr name="coldef" type="string" required="true">
<desc> A JGoodies Form column definition</desc>
</attr>
<attr name="paneltype" type="string" required="false" default="panel">
<desc>Indicates the panel, a value of 'buttonbar' will create a horizontal bar where the controls are centered.</desc>
</attr>
</attrs>
</control>
<control type="field">
<attrs>
<attr name="id" type="string" required="true">
<desc>The unique identifier within the form or subform.
IDs do not have to be unique to it's parent form other sibling subforms, or its child subforms</desc>
</attr>
<attr name="name" type="string" required="true">
<desc>This refers to the name of the data item with the data object ( tablerecord)</desc>
</attr>
<attr name="required" type="boolean" required="false" default="false">
<desc>Indicates the field MUST have a value</desc>
</attr>
<attr name="valtype" type="string" required="false" default="Change">
<desc>Indicates when the control is validated, which also causes the form's validation rules to be processed.</desc>
<values>Focus, Change</values>
</attr>
<attr name="rowspan" type="integer" required="false" default="1">
<desc>Indicates how many rows this control will span</desc>
</attr>
<attr name="colspan" type="integer" required="false" default="1">
<desc>Indicates how many columns this control will span</desc>
</attr>
<attr name="dsptype" type="string" required="false" default="dsptextfield">
<desc>Indicates the type of control to use when the form is in "display" mode.
IDs do not have to be unique to it's parent form other sibling subforms, or its child subforms</desc>
</attr>
</attrs>
<params>
<param name="editoncreate" type="boolean" required="false" default="false">
<desc>This enables a field to be editable ONLY on creation, and then only viewable on edit.</desc>
</param>
</params>
<subcontrols>
<subcontrol type="text" dsp="dsptextfield">
<desc>Text field that is editable.</desc>
<attrs>
<attr name="format" type="string" required="false" default="">
<desc>String "sprintf" formatting (i.e. "%.0f" or "%5d")</desc>
</attr>
<attr name="default" type="string" required="false" default="">
<desc>A default value for the text field.</desc>
</attr>
</attrs>
</subcontrol>
<subcontrol type="dsptextfield" dsp="dsptextfield">
<desc>Text field that is never editable.</desc>
<attrs>
<attr name="format" type="string" required="false" default="">
<desc>String "sprintf" formatting (i.e. "%.0f" or "%5d")</desc>
</attr>
<attr name="default" type="string" required="false" default="">
<desc>A default value for the text field.</desc>
</attr>
</attrs>
</subcontrol>
<subcontrol type="formattedtext" dsp="dsptextfield">
<desc>Text field that has a formatter.</desc>
<attrs>
<attr name="uifieldformatter" type="string" required="true">
<desc>The name of the UIFieldFormatter.</desc>
</attr>
</attrs>
<params>
<param name="ispartial" type="boolean" required="false" default="false">
<desc>Indicates whether the control should accept partially filled in values. This is
sometimes needed for search dialogs.</desc>
</param>
<param name="fromuifmt" type="boolean" required="false" default="false">
<desc>Indicates whether the control should perform any formatting when getValue is called.</desc>
</param>
<param name="cols" type="int" required="false" default="">
<desc>Suggests the number of columns but it is font dependent.</desc>
</param>
<param name="transparent" type="boolean" required="false" default="false">
<desc>Indicates whether the background should be transparent.</desc>
</param>
<param name="series" type="boolean" required="false" default="false">
<desc>Indicates whether the formatter should support series processing.</desc>
</param>
</params>
</subcontrol>
<subcontrol type="textwithinfo" dsp="textwithinfo">
<desc>A textfield that can format a complex data object and display an "info" button to see the details of the object.
The field is not editable. The "querycbx" is used for editting and the control is used for display.</desc>
<params>
<param name="name" type="string" required="true" default="">
<desc>Refers to a definition name that is managed by the ComboBoxFromQueryFactory</desc>
</param>
<param name="title" type="string" required="true" default="">
<desc>Human readable Title string for the dialog that shows the detailed information. Or the I18N key.</desc>
</param>
<param name="displaydlg" type="string" required="false" default="">
<desc>Overrides the view name in the schema for display the full detail of a data object.</desc>
</param>
</params>
</subcontrol>
<subcontrol type="querycbx" dsp="textwithinfo">
<desc>A textfield that can format a complex data object and displays three buttons: Edit, New and Search.</desc>
<params>
<param name="name" type="string" required="true" default="">
<desc>Refers to a definition name that is managed by the ComboBoxFromQueryFactory</desc>
</param>
<param name="title" type="string" required="true" default="">
<desc>Human readable Title string for the dialog that shows the detailed information. Or the I18N key.</desc>
</param>
<param name="displaydlg" type="string" required="false" default="">
<desc>Overrides the view name in the schema for display the full detail of a data object.</desc>
</param>
<param name="searchdlg" type="string" required="false" default="">
<desc>Overrides the view name in the schema for the search dialog.</desc>
</param>
<param name="editbtn" type="boolean" required="false" default="true">
<desc>Indicates whether to add the 'edit' button.</desc>
</param>
<param name="newbtn" type="boolean" required="false" default="true">
<desc>Indicates whether to add the 'add' (the '+') button.</desc>
</param>
<param name="searchbtn" type="boolean" required="false" default="true">
<desc>Indicates whether to add the 'search' button.</desc>
</param>
</params>
</subcontrol>
<subcontrol type="image" dsp="image">
<desc>Displays an image in a box with a border. The value must be an valid URL that is then used to load the image.
When the form is in edit mode, additional UI is presented that enabled the user to set a new URL for the image.
</desc>
<params>
<param name="width" type="integer" default="150" required="true">
<desc>Width of Image</desc>
</param>
<param name="height" type="integer" default="150" required="true">
<desc>Height of Image</desc>
</param>
<param name="edit" type="boolean" default="" required="false">
<desc>this indicates the edit UI should be presented. When the form is in display mode this is set to false,
but can be overridden.
When the form is in edit mode this is automatically set to true and can be overridden.
</desc>
</param>
</params>
</subcontrol>
<subcontrol type="url" dsp="url">
<desc>Displays a button with user defined text. When the button is clicked the URL is loaded in a browser window.</desc>
<params>
<param name="title" type="string" required="true" default="">
<desc>The Title of the url.</desc>
</param>
</params>
</subcontrol>
<subcontrol type="combobox" dsp="dsptextfield">
<desc>Displays a combobox with a list of values from a picklist or from the initialize string.
This is an autocomplete combobox.</desc>
<attrs>
<attr name="picklist" type="picklist" required="false">
<desc>The name of the Pick List that is user defined. Pick Lists can be defined to be read only or have a set size where the
oldest value is removed if the list grows past the set size.</desc>
</attr>
</attrs>
<params>
<param name="data" type="list" required="false" default="">
<desc>A comma separated list of values that are used to fill the combobox. This is referred to as a "quick list".
It works almost exactly like a read only Pick List. It is ideal for situations where there is a predefined set of values
that string field can have. Note: If the database contains a value that is not in the "quick list" the combobox is
set to not have a value.</desc>
</param>
</params>
</subcontrol>
<subcontrol type="checkbox" dsp="checkbox">
<desc>Displays a checkbox and can accept boolean or text values where the text value is "true" or "false".
If the text value doesn't equal a case insensitive value of "true" then it is set to false.</desc>
</subcontrol>
<subcontrol type="tristate" dsp="tristate">
<desc>Displays a tristate checkbox and can accept boolean or text values where the text value is "true" or "false" or null
If the text value doesn't equal a case insensitive value of "true" then it is set to false or if it is null it is set to null</desc>
</subcontrol>
<subcontrol type="password" dsp="password">
<desc>Displays a password text field that displays "*" as the user types in their password.</desc>
<params>
<param name="isencrypted" type="boolean" required="true" default="">
<desc>Indicates whether the control should automatically encrypt the password. Note: this greatly increases the length of
the string, but the size is less than 255.</desc>
</param>
</params>
</subcontrol>
<subcontrol type="textarea" dsp="dsptexarea">
<desc>Displays lengthy text in a text area (Text Control with rows and columns)</desc>
<params>
<param name="rows" type="integer" required="true" default="5">
<desc>The number of rows to display</desc>
</param>
<param name="cols" type="integer" required="true" default="10">
<desc>The number of columns to display</desc>
</param>
</params>
</subcontrol>
<subcontrol type="browse" dsp="">
<desc>Displays a text field and button. The text field hold the value and the browse button enables
the user to select a file (including its path) from the file system.</desc>
<params>
<param name="dirsonly" type="boolean" required="true" default="false">
<desc>Specifies whether it should show only directories in the File Dialog.</desc>
</param>
<param name="forinput" type="boolean" required="true" default="true">
<desc>Specifies whether it should be for selecting a file (true), or for saving a file (false).</desc>
</param>
</params>
</subcontrol>
<subcontrol type="list" dsp="list">
<desc>Displays a list of items with a scroll bar.</desc>
<params>
<param name="rows" type="integer" required="false" default="15">
<desc>The number of rows to be displayed
The remainder can be a comma separated list of items to fill the list box, a "quick list"</desc>
</param>
<param name="data" type="list" required="false" default="">
<desc>a comma separated list of values that are used to fill the combobox. This is referred to as a "quick list".
It works almost exactly like a read only Pick List. It is ideal for situations where there is a predefined set of values
that string field can have. Note: If the database contains a value that is not in the "quick list" the combobox is
set to not have a value.</desc>
</param>
</params>
</subcontrol>
<subcontrol type="colorchooser" dsp="colorchooser">
<desc>Displays a box with a border and is filled with the indicated color.
When the user clicks on the color swatch a dropdown appears enabling them to choose any color.</desc>
</subcontrol>
<subcontrol type="button" dsp="button">
<desc>Displays a button that does nothing. This is intended for those using the form engine to create dialogs.
Should not be used in "regular" data entry forms.</desc>
<params>
<param name="title" type="string" required="true" default="">
<desc>Human readable Title string for the dialog that shows the detailed information. Or the I18N key.</desc>
</param>
</params>
</subcontrol>
<subcontrol type="progress" dsp="progress">
<desc>Displays a progress bar that has its range initially set 0, 100.</desc>
</subcontrol>
<subcontrol type="plugin" dsp="plugin">
<desc>Displays a custom control or UI plugin control.
This control "should" implement the UIValidable and UIPluginable interface and MUST implement the "GetSetValueIFace".</desc>
<params>
<param name="class" type="string" required="true" default="">
<desc>The fully specified class path of the Java class that implements the custom control.</desc>
</param>
</params>
</subcontrol>
<subcontrol type="spinner" dsp="dsptextfield">
<desc>Displays a Swing JSpinner control for numerical values.</desc>
<params>
<param name="min" type="integer" required="true" default="0">
<desc>The maximum value.</desc>
</param>
<param name="max" type="integer" required="true" default="0">
<desc>The minimum value.</desc>
</param>
</params>
</subcontrol>
</subcontrols>
</control>
</uicontrols>