1
- CLASS Z2UI5_CL_DEMO_APP_038 DEFINITION PUBLIC .
1
+ CLASS z2ui5_cl_demo_app_038 DEFINITION PUBLIC .
2
2
3
3
PUBLIC SECTION .
4
4
5
- INTERFACES Z2UI5_if_app .
5
+ INTERFACES z2ui5_if_app .
6
6
7
7
TYPES :
8
8
BEGIN OF ty_msg,
@@ -16,15 +16,15 @@ CLASS Z2UI5_CL_DEMO_APP_038 DEFINITION PUBLIC.
16
16
DATA t_msg TYPE STANDARD TABLE OF ty_msg WITH EMPTY KEY .
17
17
DATA check_initialized TYPE abap_bool .
18
18
19
- METHODS Z2UI5_display_view .
20
- METHODS Z2UI5_display_popup .
21
- METHODS Z2UI5_display_popover
19
+ METHODS z2ui5_display_view .
20
+ METHODS z2ui5_display_popup .
21
+ METHODS z2ui5_display_popover
22
22
IMPORTING
23
23
id TYPE string .
24
24
25
25
PROTECTED SECTION .
26
26
27
- DATA client TYPE REF TO Z2UI5_if_client .
27
+ DATA client TYPE REF TO z2ui5_if_client .
28
28
29
29
PRIVATE SECTION .
30
30
ENDCLASS .
@@ -34,9 +34,9 @@ ENDCLASS.
34
34
CLASS Z2UI5_CL_DEMO_APP_038 IMPLEMENTATION .
35
35
36
36
37
- METHOD Z2UI5_display_popover .
37
+ METHOD z2ui5_display_popover .
38
38
39
- DATA (popup ) = Z2UI5_cl_xml_view =>factory_popup( ).
39
+ DATA (popup ) = z2ui5_cl_xml_view =>factory_popup( ).
40
40
41
41
* popup = popup->popover(
42
42
* placement = `Top`
@@ -49,7 +49,7 @@ CLASS Z2UI5_CL_DEMO_APP_038 IMPLEMENTATION.
49
49
groupitems = abap_true
50
50
placement = `Top`
51
51
initiallyexpanded = abap_true
52
- beforeclose = client->_event( val = 'POPOVER_CLOSE' s_ctrl = value #( check_view_destroy = abap_true ) )
52
+ beforeclose = client->_event( val = 'POPOVER_CLOSE' s_ctrl = VALUE #( check_view_destroy = abap_false ) )
53
53
)->message_item(
54
54
type = `{TYPE}`
55
55
title = `{TITLE}`
@@ -62,59 +62,59 @@ CLASS Z2UI5_CL_DEMO_APP_038 IMPLEMENTATION.
62
62
ENDMETHOD .
63
63
64
64
65
- METHOD Z2UI5_display_popup .
65
+ METHOD z2ui5_display_popup .
66
66
67
- * DATA(popup) = Z2UI5_cl_xml_view =>factory_popup( client ).
68
- *
69
- * popup = popup->dialog(
70
- * title = `Messages`
71
- * contentheight = '50%'
72
- * contentwidth = '50%' ).
73
- *
74
- * popup->message_view(
75
- * items = client->_bind_edit( val = t_msg
76
- * )
77
- * groupitems = abap_true
78
- * )->message_item(
79
- * type = `{TYPE}`
80
- * title = `{TITLE}`
81
- * subtitle = `{SUBTITLE}`
82
- * description = `{DESCRIPTION}`
83
- * groupname = `{GROUP}` ).
84
- *
85
- * popup->footer( )->overflow_toolbar(
86
- * )->toolbar_spacer(
87
- * )->button(
88
- * id = `test2`
89
- * text = 'test'
90
- * press = client->_event( `TEST` )
91
- * )->button(
92
- * text = 'close'
93
- * press = client->_event_client( client->cs_event-popup_close ) ).
94
- *
95
- * client->popup_display( popup->stringify( ) ).
67
+ DATA (popup ) = z2ui5_cl_xml_view =>factory_popup( ).
68
+
69
+ popup = popup->dialog(
70
+ title = `Messages`
71
+ contentheight = '50%'
72
+ contentwidth = '50%' ).
73
+
74
+ popup->message_view(
75
+ items = client->_bind_edit( val = t_msg
76
+ )
77
+ groupitems = abap_true
78
+ )->message_item(
79
+ type = `{TYPE}`
80
+ title = `{TITLE}`
81
+ subtitle = `{SUBTITLE}`
82
+ description = `{DESCRIPTION}`
83
+ groupname = `{GROUP}` ).
84
+
85
+ popup->footer( )->overflow_toolbar(
86
+ )->toolbar_spacer(
87
+ )->button(
88
+ id = `test2`
89
+ text = 'test'
90
+ press = client->_event( `TEST` )
91
+ )->button(
92
+ text = 'close'
93
+ press = client->_event_client( client->cs_event-popup_close ) ).
94
+
95
+ client->popup_display( popup->stringify( ) ).
96
96
97
97
ENDMETHOD .
98
98
99
99
100
- METHOD Z2UI5_display_view .
100
+ METHOD z2ui5_display_view .
101
101
102
102
DATA (view ) = z2ui5_cl_xml_view=>factory( ).
103
-
103
+ view->_generic( ns = `html` name = `style` )->_cc_plain_xml( `.sapMDialogScroll { height:100%; }` ).
104
104
DATA (page ) = view->shell(
105
105
)->page(
106
106
title = 'abap2UI5 - List'
107
107
navbuttonpress = client->_event( val = 'BACK' )
108
- shownavbutton = abap_true
109
- )->header_content(
110
- )->link(
111
- text = 'Demo' target = '_blank'
112
- href = `https://twitter.com/abap2UI5/status/1647246029828268032`
113
- )->link(
114
-
115
-
116
- )->get_parent( ).
117
- * page->button( text = 'Messages in Popup' press = client->_event( 'POPUP' ) ).
108
+ shownavbutton = abap_true ).
109
+ * )->header_content(
110
+ * )->link(
111
+ * text = 'Demo' target = '_blank'
112
+ * href = `https://twitter.com/abap2UI5/status/1647246029828268032`
113
+ * )->link(
114
+ *
115
+ *
116
+ * )->get_parent( ).
117
+ page->button( text = 'Messages in Popup' press = client->_event( 'POPUP' ) ).
118
118
page->message_view(
119
119
items = client->_bind_edit( t_msg )
120
120
groupitems = abap_true
@@ -142,7 +142,7 @@ CLASS Z2UI5_CL_DEMO_APP_038 IMPLEMENTATION.
142
142
ENDMETHOD .
143
143
144
144
145
- METHOD Z2UI5_if_app ~main .
145
+ METHOD z2ui5_if_app ~main .
146
146
147
147
me ->client = client .
148
148
@@ -155,19 +155,19 @@ CLASS Z2UI5_CL_DEMO_APP_038 IMPLEMENTATION.
155
155
( description = 'descr' subtitle = 'subtitle' title = 'title' type = 'Information' group = 'group 02' )
156
156
( description = 'descr' subtitle = 'subtitle' title = 'title' type = 'Success' group = 'group 03' ) ).
157
157
158
- Z2UI5_display_view ( ).
158
+ z2ui5_display_view ( ).
159
159
160
160
ENDIF .
161
161
162
162
CASE client->get( )-event.
163
163
WHEN 'POPOVER_CLOSE' .
164
164
client->popover_destroy( ).
165
- * WHEN 'POPUP'.
166
- * Z2UI5_display_popup ( ).
167
- WHEN 'TEST' .
168
- Z2UI5_display_popover ( `test2` ).
165
+ WHEN 'POPUP' .
166
+ z2ui5_display_popup ( ).
167
+ WHEN 'TEST' .
168
+ z2ui5_display_popover ( `test2` ).
169
169
WHEN 'POPOVER' .
170
- Z2UI5_display_popover ( `test` ).
170
+ z2ui5_display_popover ( `test` ).
171
171
WHEN 'BACK' .
172
172
client->nav_app_leave( client->get_app( client->get( )-s_draft-id_prev_app_stack ) ).
173
173
ENDCASE .
0 commit comments