@@ -7,36 +7,105 @@ CLASS z2ui5_cl_demo_app_115 DEFINITION
77
88 INTERFACES z2ui5_if_app.
99
10- DATA mv_output TYPE string .
11-
12- METHODS display_demo_output
13- IMPORTING
14- client TYPE REF TO z2ui5_if_client.
15-
1610 PROTECTED SECTION .
1711 PRIVATE SECTION .
1812ENDCLASS .
1913
2014
21- CLASS Z2UI5_CL_DEMO_APP_115 IMPLEMENTATION .
15+ CLASS z2ui5_cl_demo_app_115 IMPLEMENTATION .
2216
2317
24- METHOD display_demo_output .
18+ METHOD z2ui5_if_app ~ main .
2519
26- DATA (view ) = z2ui5_cl_xml_view=>factory( ).
27- client->view_display( view->shell(
28- )->page(
29- title = 'abap2UI5 - CL_DEMO_OUTPUT - TODO uncomment the source code'
30- navbuttonpress = client->_event( 'BACK' )
31- shownavbutton = client->check_app_prev_stack( )
32- )->_z2ui5( )->demo_output( mv_output
33- )->stringify( ) ).
3420
35- ENDMETHOD .
21+ DATA (lv_style ) = `<html:style type="text/css">body {` && | \n| &&
22+ ` font-family: Arial;` && | \n| &&
23+ ` font-size: 90%;` && | \n| &&
24+ `}` && | \n| &&
25+ `table {` && | \n| &&
26+ ` font-family: Arial;` && | \n| &&
27+ ` font-size: 90%;` && | \n| &&
28+ `}` && | \n| &&
29+ `caption {` && | \n| &&
30+ ` font-family: Arial;` && | \n| &&
31+ ` font-size: 90%;` && | \n| &&
32+ ` font-weight:bold;` && | \n| &&
33+ ` text-align:left;` && | \n| &&
34+ `}` && | \n| &&
35+ `span.heading1 {` && | \n| &&
36+ ` font-size: 150%;` && | \n| &&
37+ ` color:#000080;` && | \n| &&
38+ ` font-weight:bold;` && | \n| &&
39+ `}` && | \n| &&
40+ `span.heading2 {` && | \n| &&
41+ ` font-size: 135%;` && | \n| &&
42+ ` color:#000080;` && | \n| &&
43+ ` font-weight:bold;` && | \n| &&
44+ `}` && | \n| &&
45+ `span.heading3 {` && | \n| &&
46+ ` font-size: 120%;` && | \n| &&
47+ ` color:#000080;` && | \n| &&
48+ ` font-weight:bold;` && | \n| &&
49+ `}` && | \n| &&
50+ `span.heading4 {` && | \n| &&
51+ ` font-size: 105%;` && | \n| &&
52+ ` color:#000080;` && | \n| &&
53+ ` font-weight:bold;` && | \n| &&
54+ `}` && | \n| &&
55+ `span.normal {` && | \n| &&
56+ ` font-size: 100%;` && | \n| &&
57+ ` color:#000000;` && | \n| &&
58+ ` font-weight:normal;` && | \n| &&
59+ `}` && | \n| &&
60+ `span.nonprop {` && | \n| &&
61+ ` font-family: Courier New;` && | \n| &&
62+ ` font-size: 100%;` && | \n| &&
63+ ` color:#000000;` && | \n| &&
64+ ` font-weight:400;` && | \n| &&
65+ `}` && | \n| &&
66+ `span.nowrap {` && | \n| &&
67+ ` white-space:nowrap;` && | \n| &&
68+ `}` && | \n| &&
69+ `span.nprpnwrp {` && | \n| &&
70+ ` font-family: Courier New;` && | \n| &&
71+ ` font-size: 100%;` && | \n| &&
72+ ` color:#000000;` && | \n| &&
73+ ` font-weight:400;` && | \n| &&
74+ ` white-space:nowrap;` && | \n| &&
75+ `}` && | \n| &&
76+ `tr.header {` && | \n| &&
77+ ` background-color:#D3D3D3;` && | \n| &&
78+ `}` && | \n| &&
79+ `tr.body {` && | \n| &&
80+ ` background-color:#EFEFEF;` && | \n| &&
81+ `}` && | \n| &&
82+ `</html:style>` .
3683
3784
38- METHOD z2ui5_if_app ~main .
3985
86+ DATA (lv_html ) = `` && | \n| &&
87+ | \n| &&
88+ `<h2 title="I'm a header">The title Attribute</h2>` && | \n| &&
89+ | \n| &&
90+ `<p title="I'm a tooltip">Mouse over this paragraph, to display the title attribute as a tooltip.</p>` && | \n| &&
91+ | \n| &&
92+ `` .
93+
94+ * SELECT *from scarr
95+ * INTO TABLE @DATA(carriers).
96+ *
97+ * DATA(lv_html) = cl_demo_output=>get( carriers ).
98+
99+ DATA (view ) = z2ui5_cl_xml_view=>factory( ).
100+ view->shell(
101+ )->page(
102+ )->button( text = `test`
103+ )->_cc_plain_xml( lv_style
104+ )->html( lv_html
105+ ).
106+
107+ client->view_display( view->stringify( ) ).
40108
41109 ENDMETHOD .
110+
42111ENDCLASS .
0 commit comments