/
contribution.ztl
958 lines (901 loc) · 23.8 KB
/
contribution.ztl
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
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
class com.sample.utilities.TileProperty {
String title;
String info;
String icon;
String number;
String numberUnit;
String valueState;
}
class com.sample.utilities.BarProperty {
String title;
String fillColor;
String number;
String numberUnit;
}
class com.sample.utilities.ProgressSet extends Component {
/**
Sets bar thickness (-1 = auto)
*/
void setBarThickness(/* Thickness */ int thickness) {*
this.barHeight = thickness;
*}
/**
Gets bar thickness (-1 = auto)
*/
int getBarThickness() {*
return this.barHeight;
*}
/**
Sets inline labels to true/false
*/
void setInlineLabels(/* true/false */ boolean isInline) {*
this.inlineLabels = isInline;
*}
/**
Gets whether labels are inline are not
*/
boolean getInlineLabels() {*
return this.inlineLabels;
*}
/**
Gets Bar Selected
*/
String getBarClicked() {*
return this.selectedBar;
*}
/** Remove All Bars
<example>
Remove all bars
<code>
PROGRESSET_1.removeAllBars();<br>
</code>
</example>
*/
void removeAllBars () {*
this.barConfig = JSON.stringify([]);
*}
/** Remove a bar
<example>
Remove a bar titled "Sales"
<code>
PROGRESSET_1.removeBar("Sales");<br>
</code>
</example>
*/
void removeBar (/*Tile Title*/String title) {*
var o = eval(this.barConfig);
if(!o) o = [];
var matchIndex = -1;
for(var i=0;i<o.length;i++){
if(o[i].title == title) matchIndex = i;
}
if(matchIndex>-1) o.splice(matchIndex,1);
barConfig = JSON.stringify(o);
*}
com.sample.utilities.BarProperty getBarProperty(/*Title*/String title){*
var r = {
title : "",
fillColor : "",
number : "",
numberUnit : ""
}
var o = eval(this.barConfig);
var matchIndex = -1;
for(var i=0;i<o.length;i++){
if(o[i].title == title) matchIndex = i;
}
if(matchIndex>-1){
var barConf = o[matchIndex];
r.title = barConf.title;
r.fillColor = barConf.fillColor;
r.number = tileConf.number;
r.numberUnit = tileConf.numberUnit;
}
return r;
*}
/** Adds or Updates a Bar (if title already exists)
<example>
Add/Update a bar called "Sales"
<code>
PROGRESSET_1.addBar("Sales", "#FF0000", "1234", "USD");<br>
</code>
</example>
*/
void addBar (
/*Title*/String title,
/*Number*/optional String number,
/*Number Unit*/optional String numberUnit,
/*Fill Color*/optional String fillColor
) {*
var o = eval(this.barConfig);
if(!o) o = [];
var bar = {
title: title,
fillColor: fillColor || "auto",
number: number,
numberUnit: numberUnit
};
var matchIndex = -1;
for(var i=0;i<o.length;i++){
if(o[i].title == title) matchIndex = i;
}
if(matchIndex==-1){ // New Bar
o.push(bar);
}else{ // Update Bar
o[matchIndex] = bar;
}
barConfig = JSON.stringify(o);
*}
}
class com.sample.utilities.DataTest extends SdkDataSource {
/**
* Set a mutator for a measure by index (starting at 0)
* <example>
* Set a mutator to increase the second measures's value by 25%
* <code>
* DATATEST_1.setMutator(1, 1.25);<br>
* </code>
* </example>
*/
void setMutator(/*Index*/ int index, /*Factor*/ float factor ){*
var m = eval(this.mutators);
while(m.length<index){
m.push(1.0);
}
m[index] = factor;
this.mutators = JSON.stringify(m);
*}
}
class com.sample.utilities.MPageHeader extends Component {
/** Add a header button
<example>
Add a header button called 'Menu' with no label show and a menu icon.
<code>
MPAGEHEADER_1.addHeaderButton("Menu",false,"sap-icon://menu2");<br>
</code>
</example>
*/
void addHeaderButton (/*Button Title*/String buttonTitle, /* Show Title */ optional boolean showTitle, /*Icon*/ optional String icon) {*
var o = eval(this.itemConfig);
var sTitle = true;
if(showTitle!=undefined) sTitle = showTitle;
o.push({
title : buttonTitle,
showTitle : sTitle,
icon : icon,
items : []
});
itemConfig = JSON.stringify(o);
*}
/** Remove All Button
<example>
Remove all button
<code>
MPAGEHEADER_1.removeAllButtons();<br>
</code>
</example>
*/
void removeAllButtons () {*
itemConfig = JSON.stringify([]);
*}
/** Remove All Items in a header button
<example>
Remove all items in header button 'Menu'
<code>
MPAGEHEADER_1.removeAllItems("Menu");<br>
</code>
</example>
*/
void removeAllItems (/*Button Title*/String buttonTitle) {*
var o = eval(this.itemConfig);
var matchIndex = -1;
for(var i=0;i<o.length;i++){
if(o[i].title == buttonTitle) matchIndex = i;
}
if(matchIndex>-1) o[matchIndex].items = [];
itemConfig = JSON.stringify(o);
*}
/** Remove a button
<example>
Remove a header button called 'Menu'
<code>
MPAGEHEADER_1.removeHeaderButton("Menu");<br>
</code>
</example>
*/
void removeHeaderButton (/*Button Title*/String buttonTitle) {*
var o = eval(this.itemConfig);
var matchIndex = -1;
for(var i=0;i<o.length;i++){
if(o[i].title == buttonTitle) matchIndex = i;
}
if(matchIndex>-1) o.splice(matchIndex,1);
itemConfig = JSON.stringify(o);
*}
/** Add an item to a header button. Will add the header button if it does not yet exist.
<example>
Add an item called 'Help' to header button called 'Menu' with an icon sys-help-2
<code>
MPAGEHEADER_1.addItem("Menu","sap-icon://sys-help-2|Help");<br>
</code>
</example>
*/
void addItem (/*Button Title*/String buttonTitle, /*Item Title*/String itemTitle) {*
var o = eval(this.itemConfig);
var matchIndex = -1;
for(var i=0;i<o.length;i++){
if(o[i].title == buttonTitle) matchIndex = i;
}
if(matchIndex == -1 ){ // Add section for the lazy
this.addHeaderButton(buttonTitle);
o = eval(this.itemConfig);
matchIndex = o.length-1;
}
o[matchIndex].items.push(itemTitle);
itemConfig = JSON.stringify(o);
*}
/** Removes an item from a header button.
<example>
Remove an item called 'Help' from header button called 'Menu'
<code>
MPAGEHEADER_1.removeItem("Menu", "Help");<br>
</code>
</example>
*/
void removeItem (/*Button Title*/String buttonTitle, /*Item Title*/ String itemTitle) {*
var o = eval(this.itemConfig);
var matchIndex = -1;
for(var i=0;i<o.length;i++){
if(o[i].title == buttonTitle) matchIndex = i;
}
if(matchIndex != -1 ){
var items = o[matchIndex].items;
var itemIndex = -1;
for(var i=0;i<items.length;i++){
if(items[i]==itemTitle) itemIndex = i;
}
if(itemIndex>-1) items.splice(itemIndex,1);
itemConfig = JSON.stringify(o);
}
*}
/**
Get item clicked.
*/
String getItemClicked() {*
return this.selectedItem;
*}
/**
Get header of and item clicked.
*/
String getHeaderClicked() {*
return this.selectedHeader;
*}
/* Shows or hides the back button. */
void setShowNavButton(/* If true, then the back button is shown, else it is hidden */ boolean visible) {*
this.showNavButton = visible;
*}
/* Returns true if the back button is shown, else false. */
boolean getShowNavButton() {*
return this.showNavButton;
*}
/* Sets the title. */
void setTitle(/* Title */ String title) {*
this.title = title;
*}
/* Returns the title. */
String getTitle() {*
return this.title;
*}
}
class com.sample.utilities.BrowserPopup extends Component {
/**
Invoke Click event
*/
String click() {*
this.clickTrigger = Math.random();
*}
/**
Sets URL
<example><code>BROWSERPOPUP_1.setURL("http://server.example.com/BOE/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=ABC123XYZ");</code></example>
<note>If opening a page in a Modal Browser Dialog, make sure that the page does not use a Frame Buster.</note>
*/
void setURL( /* URL */ String url){*
this.url = url;
*}
/**
Gets URL
*/
String getURL() {*
return this.url;
*}
}
class com.sample.utilities.Switch extends Component {
/**
Gets Switch State
*/
String getState() {*
return this.state;
*}
/**
Gets Switch Status
*/
String getStatus() {*
return this.status;
*}
}
class com.sample.utilities.LaunchPad extends Component {
/**
Gets Tile Selected
*/
String getTileClicked() {*
return this.selectedTile;
*}
/** Remove All Tiles
<example>
Remove all tiles
<code>
LAUNCHPAD_1.removeAllTiles();<br>
</code>
</example>
*/
void removeAllTiles () {*
this.tileConfig = JSON.stringify([]);
*}
com.sample.utilities.TileProperty getTileProperty(/*Title*/String title){*
var r = {
title : "",
info : "",
icon : "",
number : "",
numberUnit : "",
valueState : "",
styleClass : ""
}
var o = eval(this.tileConfig);
var matchIndex = -1;
for(var i=0;i<o.length;i++){
if(o[i].title == title) matchIndex = i;
}
if(matchIndex>-1){
var tileConf = o[matchIndex];
r.title = tileConf.title;
r.info = tileConf.info;
r.icon = tileConf.icon;
r.number = tileConf.number;
r.numberUnit = tileConf.numberUnit;
r.valueState = tileConf.valueState;
r.styleClass = tileConf.styleClass;
}
return r;
*}
/** Adds or Updates a Tile (if title already exists)
<example>
Add/Update a tile called "Sales"
<code>
LAUNCHPAD_1.addTile("Sales", "YTD", "sap-icon://money-bills", "1234", "USD", "good");<br>
</code>
</example>
*/
void addTile (/*Title*/String title,
/*Info*/optional String info,
/*Icon*/optional String icon,
/*Number*/optional String number,
/*Number Unit*/optional String numberUnit,
/*Value State*/optional String valueState,
/*CSS Class*/optional String styleClass) {*
var o = eval(this.tileConfig);
if(!o) o = [];
var tile = {
title: title,
info: info,
icon: icon,
number: number,
numberUnit: numberUnit,
valueState : valueState || "None",
styleClass : styleClass
};
var matchIndex = -1;
for(var i=0;i<o.length;i++){
if(o[i].title == title) matchIndex = i;
}
if(matchIndex==-1){ // New Tile
o.push(tile);
}else{ // Update Tile
o[matchIndex] = tile;
}
tileConfig = JSON.stringify(o);
*}
/** Remove a tile
<example>
Remove a tile titled "Sales"
<code>
LAUNCHPAD_1.removeTile("Sales");<br>
</code>
</example>
*/
void removeTile (/*Tile Title*/String title) {*
var o = eval(this.tileConfig);
if(!o) o = [];
var matchIndex = -1;
for(var i=0;i<o.length;i++){
if(o[i].title == title) matchIndex = i;
}
if(matchIndex>-1) o.splice(matchIndex,1);
tileConfig = JSON.stringify(o);
*}
}
class com.sample.utilities.PopOverButton extends Component {
/**
Gets Item Selected and resets to blank.
*/
String getItemClicked() {*
var si = this.selectedItem;
this.selectedItem = "";
return si;
*}
/** Remove All Items
<example>
Remove all items
<code>
POPOVERBUTTON_1.removeAllItems();<br>
</code>
</example>
*/
void removeAllItems () {*
this.items = "";
*}
/** Add an item
<example>
Add an item called "Filters" with a filter icon
<code>
POPOVERBUTTON_1.addItem("sap-icon://filter|Filters");<br>
</code>
</example>
*/
void addItem (/*Item*/String item) {*
var o = [];
if(this.items != "") o = this.items.split("\n");
o.push(item);
items = o.join("\n");
*}
/** Remove an item
<example>
Remove an item called "Filters"
<code>
POPOVERBUTTON_1.removeItem("Filters");<br>
</code>
</example>
*/
void removeItem (/*Item*/String item) {*
var o = [];
if(this.items != "") o = this.items.split("\n");
var matchIndex = -1;
for(var i=0;i<o.length;i++){
var entry = o[i];
var title = entry;
var opts = entry.split("|");
if(opts.length>1){
title = opts.slice(1).join("");
}
if(item == title) matchIndex = i;
}
if(matchIndex>-1) o.splice(matchIndex,1);
this.items = o.join("\n");
*}
}
class com.sample.utilities.AccordionMenu extends Component {
/** Add a section
<example>
Add a section called 'Sales KPIs'
<code>
ACCORDIONMENU_1.addSection("Sales KPIs");<br>
</code>
</example>
*/
void addSection (/*Section Title*/String sectionTitle) {*
var o = eval(this.itemConfig);
o.push({
title:sectionTitle,
items:[]
});
itemConfig = JSON.stringify(o);
*}
/** Remove All Sections
<example>
Remove all sections
<code>
ACCORDIONMENU_1.removeAllSections();<br>
</code>
</example>
*/
void removeAllSections () {*
itemConfig = JSON.stringify([]);
*}
/** Remove All Items in a section
<example>
Remove all sections in section 'Sales KPIs'
<code>
ACCORDIONMENU_1.removeAllItems("Sales KPIs");<br>
</code>
</example>
*/
void removeAllItems (/*Section Title*/String sectionTitle) {*
var o = eval(this.itemConfig);
var matchIndex = -1;
for(var i=0;i<o.length;i++){
if(o[i].title == sectionTitle) matchIndex = i;
}
if(matchIndex>-1) o[matchIndex].items = [];
itemConfig = JSON.stringify(o);
*}
/** Remove a section
<example>
Remove a section called 'Sales KPIs'
<code>
ACCORDIONMENU_1.removeSection("Sales KPIs");<br>
</code>
</example>
*/
void removeSection (/*Section Title*/String sectionTitle) {*
var o = eval(this.itemConfig);
var matchIndex = -1;
for(var i=0;i<o.length;i++){
if(o[i].title == sectionTitle) matchIndex = i;
}
if(matchIndex>-1) o.splice(matchIndex,1);
itemConfig = JSON.stringify(o);
*}
/** Add an item to a section. Will add the Section if it does not yet exist.
<example>
Add an item called 'Monthly Sales' to section called 'Sales KPIs'
<code>
ACCORDIONMENU_1.addItem("Sales KPIs","Monthly Sales");<br>
</code>
</example>
*/
void addItem (/*Section Title*/String sectionTitle, /*Item Title*/String itemTitle) {*
var o = eval(this.itemConfig);
var matchIndex = -1;
for(var i=0;i<o.length;i++){
if(o[i].title == sectionTitle) matchIndex = i;
}
if(matchIndex == -1 ){ // Add section for the lazy
this.addSection(sectionTitle);
o = eval(this.itemConfig);
matchIndex = o.length-1;
}
o[matchIndex].items.push(itemTitle);
itemConfig = JSON.stringify(o);
*}
/** Removes an item from a section.
<example>
Remove an item called 'Monthly Sales' from section called 'Sales KPIs'
<code>
ACCORDIONMENU_1.removeItem("Sales KPIs","Monthly Sales");<br>
</code>
</example>
*/
void removeItem (/*Section Title*/String sectionTitle, /*Item Title*/String itemTitle) {*
var o = eval(this.itemConfig);
var matchIndex = -1;
for(var i=0;i<o.length;i++){
if(o[i].title == sectionTitle) matchIndex = i;
}
if(matchIndex != -1 ){
var items = o[matchIndex].items;
var itemIndex = -1;
for(var i=0;i<items.length;i++){
if(items[i]==itemTitle) itemIndex = i;
}
if(itemIndex>-1) items.splice(itemIndex,1);
itemConfig = JSON.stringify(o);
}
*}
/**
Get section clicked.
*/
String getSectionClicked() {*
return this.expandedSection;
*}
/**
Get item clicked.
*/
String getItemClicked() {*
return this.selectedItem;
*}
/**
Get fully qualified item clicked.
*/
String getFullyQualifiedItemClicked() {*
return this.expandedSection + "-" + this.selectedItem;
*}
}
class com.sample.utilities.MenuStrip extends Component {
/**
Get last menu element title clicked.
<example><code>var itemSelected = MENUSTRIP_1.getLabelClicked();</code></example>
<returns>Chart property as String type.</returns>
*/
String getLabelClicked() {*
return this.labelClicked;
*}
/**
Sets titles of your menu elements.
<example><code>MENUSTRIP_1.setTitles("Google,Bing,Ask.com");</code></example>
<note>Seperate each entry by a comma.</note>
*/
void setTitles( /* Titles */ String titles){*
this.titles = titles;
*}
/**
Get list of menu element titles.
<example><code>var titles = MENUSTRIP_1.Titles();</code></example>
<returns>Comma-seperated list of menu element titles</returns>
*/
String getTitles() {*
return this.titles;
*}
}
class com.sample.utilities.SlideShow extends Component {
/* Returns the last clicked slide */
String getSlideClicked() {*
return this.slideClicked;
*}
/* Set the Caption Text for a Slide number */
void setCaption( /* Caption Text */ String caption, /* Index */ int index){*
this["caption"+index] = caption;
*}
/* Set the URL of an Image for a Slide number */
void setImageSrc( /* Image URL */ String src, /* Index */ int index){*
this["src"+index] = src;
*}
}
class com.sample.utilities.HTMLTemplate extends Component {
/* Returns the current value */
String getHTML() {*
return this.HTML;
*}
/* Sets the value */
void setHTML(/* HTML */ String html) {*
this.HTML = html;
*}
void setTerm( /* Placeholder Text */ String term, /* Index */ int index){*
this["term"+index] = term;
*}
void setReplacement( /* Placeholder Text */ String replacement, /* Index */ int index){*
this["replacement"+index] = replacement;
*}
}
class com.sample.utilities.SuperImage extends Component {
/**
* Execute some method
*/
void someMethod( String someParameter){*
this.execute = "someMethod|" + someParameter + "~" + Math.random();
*}
/**
* Execute another method
*/
void anotherMethod( String someParameter){*
this.execute = "anotherMethod|" + someParameter + "~" + Math.random();
*}
void showAlertBox(/* Text 1 */ String alertMsg1, /* Text 2 */ String alertMsg2) {*
this.zlertText1 = alertMsg1;
this.alertText2 = alertMsg2;
this.showAlert = true;
*}
/**
* Sets Source URL Property
*/
void setSrc( /* Source URL or Base-64 String */ String s){*
this.src = s;
*}
/**
* Gets Source URL Property
*/
String getSrc() {*
return this.src;
*}
}
class com.sample.utilities.DoubleSidedTile extends Component {
/* Returns the current value */
String getFrontHTML() {*
return this.frontHTML;
*}
/* Sets the value */
void setFrontHTML(/* HTML */ String html) {*
this.frontHTML = html;
*}
/* Returns the current value */
String getBackHTML() {*
return this.backHTML;
*}
/* Sets the value */
void setBackHTML(/* HTML */ String html) {*
this.backHTML = html;
*}
void setTerm( /* Placeholder Text */ String term, /* Index */ int index){*
this["term"+index] = term;
*}
void setReplacement( /* Placeholder Text */ String replacement, /* Index */ int index){*
this["replacement"+index] = replacement;
*}
}
class com.sample.utilities.HighCharts extends Component {
}
class com.sample.utilities.KpiTile extends Component {
/* Sets the header text. */
void setHeaderText(/* Header text */ String text) {*
this.headerText = text;
*}
/* Returns the header text. */
String getHeaderText() {*
return this.headerText;
*}
/* Shows or hides the header. */
void setHeaderVisible(/* If true, then the header is shown, else it is hidden */ boolean isHeaderVisible) {*
this.headerVisible = isHeaderVisible;
*}
/* Returns true if the header is shown, else false. */
boolean isHeaderVisible() {*
return this.headerVisible;
*}
/* Sets the header CSS class. */
void setHeaderCssClass(/* Header CSS class */ String cssClass) {*
this.headerCssClass = cssClass;
*}
/* Returns the header CSS class. */
String getHeaderCssClass() {*
return this.headerCssClass;
*}
/* Sets the title text. */
void setTitleText(/* Title text */ String text) {*
this.titleText = text;
*}
/* Returns the title text. */
String getTitleText() {*
return this.titleText;
*}
/* Sets the title CSS class. */
void setTitleCssClass(/* Title CSS class */ String cssClass) {*
this.titleCssClass = cssClass;
*}
/* Returns the title CSS class. */
String getTitleCssClass() {*
return this.titleCssClass;
*}
/* Sets the value prefix text. */
void setValuePrefixText(/* Value prefix text */ String text) {*
this.valuePrefixText = text;
*}
/* Returns the value prefix text. */
String getValuePrefixText() {*
return this.valuePrefixText;
*}
/* Sets the value prefix CSS class. */
void setValuePrefixCssClass(/* Value prefix CSS class */ String cssClass) {*
this.valuePrefixCssClass = cssClass;
*}
/* Returns the value prefix CSS class. */
String getValuePrefixCssClass() {*
return this.valuePrefixCssClass;
*}
/* Sets the value text. */
void setValueText(/* Value text */ String text) {*
this.valueText = text;
*}
/* Returns the value text. */
String getValueText() {*
return this.valueText;
*}
/* Sets the value CSS class. */
void setValueCssClass(/* Value CSS class */ String cssClass) {*
this.valueCssClass = cssClass;
*}
/* Returns the current value CSS class. */
String getValueCssClass() {*
return this.valueCssClass;
*}
/* Sets the value horizontal alignment. */
void setValueHAlign(/* Value horizontal alignment */ String hAlign) {*
this.valueHAlign = hAlign;
*}
/* Returns the value horizontal alignment. */
String getValueHAlign() {*
return this.valueHAlign;
*}
/* Sets the value decimal places. */
void setValueDecimalPlaces(/* Number of decimal places */ int decimalPlaces) {*
this.valueDecimalPlaces = decimalPlaces;
*}
/* Returns the value decimal places. */
int getValueDecimalPlaces() {*
return this.valueDecimalPlaces;
*}
/* Sets the value suffix text. */
void setValueSuffixText(/* Value suffix text */ String text) {*
this.valueSuffixText = text;
*}
/* Returns the value suffix text. */
String getValueSuffixText() {*
return this.valueSuffixText;
*}
/* Sets the value suffix CSS class. */
void setValueSuffixCssClass(/* Value suffix CSS class */ String cssClass) {*
this.valueSuffixCssClass = cssClass;
*}
/* Returns the value suffix CSS class. */
String getValueSuffixCssClass() {*
return this.valueSuffixCssClass;
*}
/* Sets the footer text. */
void setFooterText(/* Footer text */ String text) {*
this.footerText = text;
*}
/* Returns the footer text. */
String getFooterText() {*
return this.footerText;
*}
/* Sets the footer CSS class. */
void setFooterCssClass(/* Footer CSS class */ String cssClass) {*
this.footerCssClass = cssClass;
*}
/* Returns the footer CSS class. */
String getFooterCssClass() {*
return this.footerCssClass;
*}
/* Sets the footer horizontal alignment. */
void setFooterHAlign(/* Footer horizontal alignment */ String hAlign) {*
this.footerHAlign = hAlign;
*}
/* Returns the footer horizontal alignment. */
String getFooterHAlign() {*
return this.footerHAlign;
*}
/* Sets the data cell whose value is displayed. */
void setDataSelection(/* Data cell tha tcontains the value displayed */ ResultCellSelection cellSelection) {*
this.data = this.stringifySelection(cellSelection);
*}
}
class com.sample.utilities.Notify extends Component {
void alert( /* Text to be shown */ String text){*
this["msgtype"] = "alert";
this["msgtext"] = text;
this["shownote"] = "Y";
*}
void information( /* Text to be shown */ String text){*
this["msgtype"] = "information";
this["msgtext"] = text;
this["shownote"] = "Y";
*}
void error( /* Text to be shown */ String text){*
this["msgtype"] = "error";
this["msgtext"] = text;
this["shownote"] = "Y";
*}
void warning( /* Text to be shown */ String text){*
this["msgtype"] = "warning";
this["msgtext"] = text;
this["shownote"] = "Y";
*}
void notification( /* Text to be shown */ String text){*
this["msgtype"] = "notification";
this["msgtext"] = text;
this["shownote"] = "Y";
*}
void success( /* Text to be shown */ String text){*
this["msgtype"] = "success";
this["msgtext"] = text;
this["shownote"] = "Y";
*}
}
class com.sample.utilities.Speedometer extends Component {
/* Sets the value of the needle */
void setNeedle(/* the new val */ float val) {*
this.indicator = val;
*}
/* Sets the showed value of the component */
void setShowedValue(String val){*
this.showedValue = val;
*}
}