Skip to content

Commit a60ad61

Browse files
committed
refactoring
1 parent 321835b commit a60ad61

File tree

3 files changed

+9
-20
lines changed

3 files changed

+9
-20
lines changed

src/00/z2ui5_cl_demo_app_326.clas.abap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ CLASS z2ui5_cl_demo_app_326 DEFINITION PUBLIC CREATE PUBLIC.
55

66
DATA unit TYPE meins.
77
DATA numc TYPE z2ui5_numc12.
8-
8+
99

1010
PROTECTED SECTION.
1111
DATA client TYPE REF TO z2ui5_if_client.

src/z2ui5_cl_demo_app_035.clas.locals_imp.abap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ CLASS lcl_file_api IMPLEMENTATION.
158158
`be withheld in a legal action, case, or discussion. The names are also used to refer to acorpse or hospital patient whose ` &&
159159
`identity is unknown. This practice is widely used in the United States and Canada, but is rarely used in other ` &&
160160
`English-speaking countries including the United Kingdom itself, from where the use of "John Doe" in a legal context ` &&
161-
`originates. The names Joe Bloggs or John Smith are used in the UK instead, as well as in Australia and New Zealand.` &&
161+
`originates. The names Joe Bloggs or John Smith are used in the UK instead, as well as in Australia and New Zealand.` &&
162162
|\n| &&
163163
|\n| &&
164164
`John Doe is sometimes used to refer to a typical male in other contexts as well, in a similar manner to John Q. Public,` &&

src/z2ui5_cl_demo_app_069.clas.abap

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ CLASS z2ui5_cl_demo_app_069 DEFINITION
2525
ty_t_tree TYPE STANDARD TABLE OF ty_t_tree1 WITH DEFAULT KEY.
2626

2727
DATA mt_tree TYPE ty_t_tree.
28-
29-
DATA check_initialized TYPE abap_bool .
30-
3128
DATA mv_check_enabled_01 TYPE abap_bool VALUE abap_true.
3229
DATA mv_check_enabled_02 TYPE abap_bool.
3330

@@ -45,13 +42,12 @@ ENDCLASS.
4542

4643

4744

48-
CLASS Z2UI5_CL_DEMO_APP_069 IMPLEMENTATION.
45+
CLASS z2ui5_cl_demo_app_069 IMPLEMENTATION.
4946

5047

5148
METHOD view_display_app_01.
5249

5350
DATA(lo_view_nested) = z2ui5_cl_xml_view=>factory( ).
54-
5551
DATA(page) = lo_view_nested->page( title = `APP_01` ).
5652

5753
page->button( text = 'Update this view'
@@ -69,7 +65,6 @@ CLASS Z2UI5_CL_DEMO_APP_069 IMPLEMENTATION.
6965
METHOD view_display_app_02.
7066

7167
DATA(lo_view_nested) = z2ui5_cl_xml_view=>factory( ).
72-
7368
DATA(page) = lo_view_nested->page( title = `APP_02` ).
7469

7570
page->button( text = 'Update this view'
@@ -105,15 +100,9 @@ CLASS Z2UI5_CL_DEMO_APP_069 IMPLEMENTATION.
105100
DATA(view) = z2ui5_cl_xml_view=>factory( ).
106101

107102
DATA(page) = view->shell( )->page(
108-
title = 'abap2UI5 - Master-Detail View with Nested Views'
109-
navbuttonpress = client->_event( 'BACK' )
110-
shownavbutton = abap_true
111-
)->header_content(
112-
)->link( text = 'Demo'
113-
target = '_blank'
114-
href = `https://twitter.com/abap2UI5/status/1680907265891618817`
115-
)->link(
116-
)->get_parent( ).
103+
title = 'abap2UI5 - Master-Detail View with Nested Views'
104+
navbuttonpress = client->_event( 'BACK' )
105+
shownavbutton = abap_true ).
117106

118107
DATA(lr_master) = page->flexible_column_layout( layout = 'TwoColumnsBeginExpanded'
119108
id ='test' )->begin_column_pages( ).
@@ -123,7 +112,8 @@ CLASS Z2UI5_CL_DEMO_APP_069 IMPLEMENTATION.
123112
type = 'Active'
124113
title = '{TEXT}'
125114
press = client->_event( val = `EVENT_ITEM`
126-
t_arg = VALUE #( ( `${TEXT}` ) ) ) ).
115+
t_arg = VALUE #( ( `${TEXT}` ) )
116+
) ).
127117

128118
client->view_display( page->stringify( ) ).
129119

@@ -161,8 +151,7 @@ CLASS Z2UI5_CL_DEMO_APP_069 IMPLEMENTATION.
161151
view_display_app_01( ).
162152

163153
WHEN `EVENT_ITEM`.
164-
DATA(lt_arg) = client->get( )-t_event_arg.
165-
CASE lt_arg[ 1 ].
154+
CASE client->get_event_arg( 1 ).
166155
WHEN 'App_001'.
167156
view_display_app_01( ).
168157
WHEN 'App_002'.

0 commit comments

Comments
 (0)