Skip to content

Commit 71e93fb

Browse files
committed
refactoring
1 parent 54289ab commit 71e93fb

11 files changed

+247
-355
lines changed

src/z2ui5_cl_demo_app_000.clas.abap

Lines changed: 130 additions & 128 deletions
Original file line numberDiff line numberDiff line change
@@ -380,101 +380,6 @@ CLASS z2ui5_cl_demo_app_000 IMPLEMENTATION.
380380
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
381381
).
382382

383-
panel = page->panel(
384-
expandable = abap_false
385-
expanded = abap_true
386-
headertext = 'Demo'
387-
).
388-
389-
panel->generic_tile(
390-
header = 'Selection Screen'
391-
subheader = 'Explore input controls'
392-
press = client->_event( 'Z2UI5_CL_DEMO_APP_002' )
393-
mode = 'LineMode'
394-
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
395-
).
396-
397-
page = page2->panel(
398-
expandable = abap_true
399-
expanded = client->_bind_edit( ms_check_expanded-popups )
400-
headertext = `Popups & Popvers` ).
401-
402-
panel = page->panel(
403-
expandable = abap_false
404-
expanded = abap_true
405-
headertext = `Popups`
406-
).
407-
408-
panel->generic_tile(
409-
header = 'Flow Logic'
410-
subheader = 'Different ways of calling Popups'
411-
press = client->_event( 'Z2UI5_CL_DEMO_APP_012' )
412-
mode = 'LineMode'
413-
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
414-
).
415-
416-
panel->generic_tile(
417-
header = 'Call Popup in Popup'
418-
subheader = 'Backend Popup Stack Handling'
419-
press = client->_event( 'z2ui5_cl_demo_app_161' )
420-
mode = 'LineMode'
421-
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
422-
).
423-
424-
panel->generic_tile(
425-
header = 'F4-Value-Help'
426-
subheader = 'Popup for value help'
427-
press = client->_event( 'Z2UI5_CL_DEMO_APP_009' )
428-
mode = 'LineMode'
429-
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
430-
).
431-
432-
panel = page->panel(
433-
expandable = abap_false
434-
expanded = abap_true
435-
headertext = `Popovers`
436-
).
437-
438-
panel->generic_tile(
439-
header = 'Popover'
440-
subheader = 'Simple Example'
441-
press = client->_event( 'Z2UI5_CL_DEMO_APP_026' )
442-
mode = 'LineMode'
443-
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
444-
).
445-
446-
panel->generic_tile(
447-
header = 'Popover Item Level'
448-
subheader = 'Create a Popover for a specific entry of a table'
449-
press = client->_event( 'Z2UI5_CL_DEMO_APP_052' )
450-
mode = 'LineMode'
451-
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
452-
).
453-
454-
panel->generic_tile(
455-
header = 'Popover with List'
456-
subheader = 'List to select in Popover'
457-
press = client->_event( 'Z2UI5_CL_DEMO_APP_081' )
458-
mode = 'LineMode'
459-
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
460-
).
461-
462-
panel->generic_tile(
463-
header = 'Popover with Quick View'
464-
subheader = ''
465-
press = client->_event( 'Z2UI5_CL_DEMO_APP_109' )
466-
mode = 'LineMode'
467-
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
468-
).
469-
470-
panel->generic_tile(
471-
header = 'Popover with Action Sheet'
472-
subheader = ''
473-
press = client->_event( 'Z2UI5_CL_DEMO_APP_163' )
474-
mode = 'LineMode'
475-
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
476-
).
477-
478383
page = page2->panel(
479384
expandable = abap_true
480385
expanded = client->_bind_edit( ms_check_expanded-more )
@@ -519,13 +424,13 @@ CLASS z2ui5_cl_demo_app_000 IMPLEMENTATION.
519424
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
520425
).
521426

522-
panel->generic_tile(
523-
header = 'Layout'
524-
subheader = 'Save your table layout'
525-
press = client->_event( 'Z2UI5_CL_DEMO_APP_058' )
526-
mode = 'LineMode'
527-
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
528-
).
427+
* panel->generic_tile(
428+
* header = 'Layout'
429+
* subheader = 'Save your table layout'
430+
* press = client->_event( 'Z2UI5_CL_DEMO_APP_058' )
431+
* mode = 'LineMode'
432+
* class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
433+
* ).
529434

530435
panel->generic_tile(
531436
header = 'ui.Table'
@@ -589,6 +494,90 @@ CLASS z2ui5_cl_demo_app_000 IMPLEMENTATION.
589494
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
590495
).
591496

497+
498+
page = page2->panel(
499+
expandable = abap_true
500+
expanded = client->_bind_edit( ms_check_expanded-popups )
501+
headertext = `Popups & Popvers` ).
502+
503+
panel = page->panel(
504+
expandable = abap_false
505+
expanded = abap_true
506+
headertext = `Popups`
507+
).
508+
509+
panel->generic_tile(
510+
header = 'Flow Logic'
511+
subheader = 'Different ways of calling Popups'
512+
press = client->_event( 'Z2UI5_CL_DEMO_APP_012' )
513+
mode = 'LineMode'
514+
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
515+
).
516+
517+
panel->generic_tile(
518+
header = 'Call Popup in Popup'
519+
subheader = 'Backend Popup Stack Handling'
520+
press = client->_event( 'z2ui5_cl_demo_app_161' )
521+
mode = 'LineMode'
522+
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
523+
).
524+
525+
panel->generic_tile(
526+
header = 'F4-Value-Help'
527+
subheader = 'Popup for value help'
528+
press = client->_event( 'Z2UI5_CL_DEMO_APP_009' )
529+
mode = 'LineMode'
530+
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
531+
).
532+
533+
534+
panel = page->panel(
535+
expandable = abap_false
536+
expanded = abap_true
537+
headertext = `Popovers`
538+
).
539+
540+
panel->generic_tile(
541+
header = 'Popover'
542+
subheader = 'Simple Example'
543+
press = client->_event( 'Z2UI5_CL_DEMO_APP_026' )
544+
mode = 'LineMode'
545+
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
546+
).
547+
548+
panel->generic_tile(
549+
header = 'Popover Item Level'
550+
subheader = 'Create a Popover for a specific entry of a table'
551+
press = client->_event( 'Z2UI5_CL_DEMO_APP_052' )
552+
mode = 'LineMode'
553+
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
554+
).
555+
556+
panel->generic_tile(
557+
header = 'Popover with List'
558+
subheader = 'List to select in Popover'
559+
press = client->_event( 'Z2UI5_CL_DEMO_APP_081' )
560+
mode = 'LineMode'
561+
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
562+
).
563+
564+
panel->generic_tile(
565+
header = 'Popover with Quick View'
566+
subheader = ''
567+
press = client->_event( 'Z2UI5_CL_DEMO_APP_109' )
568+
mode = 'LineMode'
569+
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
570+
).
571+
572+
panel->generic_tile(
573+
header = 'Popover with Action Sheet'
574+
subheader = ''
575+
press = client->_event( 'Z2UI5_CL_DEMO_APP_163' )
576+
mode = 'LineMode'
577+
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
578+
).
579+
580+
592581
page = page2->panel(
593582
expandable = abap_true
594583
expanded = client->_bind_edit( ms_check_expanded-features )
@@ -624,14 +613,6 @@ CLASS z2ui5_cl_demo_app_000 IMPLEMENTATION.
624613
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
625614
).
626615

627-
panel->generic_tile(
628-
header = 'Object Page'
629-
subheader = 'Display object details'
630-
press = client->_event( 'Z2UI5_CL_DEMO_APP_017' )
631-
mode = 'LineMode'
632-
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
633-
).
634-
635616
panel->generic_tile(
636617
header = 'Dynamic Page'
637618
subheader = 'Display items'
@@ -655,13 +636,6 @@ CLASS z2ui5_cl_demo_app_000 IMPLEMENTATION.
655636
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
656637
).
657638

658-
panel->generic_tile(
659-
header = 'Side Panel'
660-
press = client->_event( 'Z2UI5_CL_DEMO_APP_108' )
661-
mode = 'LineMode'
662-
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
663-
).
664-
665639

666640
panel = page->panel(
667641
expandable = abap_false
@@ -894,14 +868,6 @@ class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
894868
).
895869

896870

897-
panel->generic_tile(
898-
header = 'Barcode Scanner'
899-
subheader = 'ndc.Barcode'
900-
press = client->_event( 'z2ui5_cl_demo_app_124' )
901-
mode = 'LineMode'
902-
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
903-
).
904-
905871
panel->generic_tile(
906872
header = 'Camera & Picture'
907873
press = client->_event( 'z2ui5_cl_demo_app_137' )
@@ -1024,9 +990,16 @@ class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
1024990
headertext = `Demos`
1025991
).
1026992

993+
page->generic_tile(
994+
header = 'Selection Screen'
995+
subheader = 'Explore Input Controls'
996+
press = client->_event( 'Z2UI5_CL_DEMO_APP_002' )
997+
mode = 'LineMode'
998+
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
999+
).
10271000

10281001
page->generic_tile(
1029-
header = 'Demo I'
1002+
header = 'Sample App'
10301003
subheader = 'Nested View, Object Page, App Navigation, Tables, Lists, Images, Progress & Rating Indicator'
10311004
press = client->_event( 'Z2UI5_CL_DEMO_APP_085' )
10321005
mode = 'LineMode'
@@ -1161,7 +1134,7 @@ class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
11611134
headertext = `UI5-Only`
11621135
).
11631136

1164-
panel->message_strip( `This does not work with OpenUI5...` ).
1137+
panel->message_strip( `Not working with OpenUI5...` ).
11651138

11661139
panel->generic_tile(
11671140
header = 'Table with RadialMicroChart'
@@ -1248,6 +1221,16 @@ class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
12481221
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
12491222
).
12501223

1224+
1225+
panel->generic_tile(
1226+
header = 'Object Page with Avator'
1227+
subheader = 'Since 1.73'
1228+
press = client->_event( 'Z2UI5_CL_DEMO_APP_017' )
1229+
mode = 'LineMode'
1230+
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
1231+
).
1232+
1233+
12511234
panel->generic_tile(
12521235
header = 'Badge'
12531236
subheader = 'Since 1.80'
@@ -1264,19 +1247,38 @@ class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
12641247
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
12651248
).
12661249

1250+
1251+
panel->generic_tile(
1252+
header = 'Barcode Scanner'
1253+
subheader = 'Since 1.102'
1254+
press = client->_event( 'z2ui5_cl_demo_app_124' )
1255+
mode = 'LineMode'
1256+
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
1257+
).
1258+
1259+
panel->generic_tile(
1260+
header = 'Side Panel'
1261+
subheader = `Since 1.107`
1262+
press = client->_event( 'Z2UI5_CL_DEMO_APP_108' )
1263+
mode = 'LineMode'
1264+
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
1265+
).
1266+
12671267
panel->generic_tile(
12681268
header = `Messaging`
1269-
subheader = 'Since 1.118.0'
1269+
subheader = 'Since 1.118'
12701270
press = client->_event( 'Z2UI5_CL_DEMO_APP_135' )
12711271
mode = 'LineMode'
12721272
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
12731273
).
12741274

1275+
12751276
panel = page->panel(
12761277
expandable = abap_false
12771278
expanded = abap_true
12781279
headertext = `Deprecated`
12791280
).
1281+
panel->message_strip( `Running out of maintenance....` ).
12801282

12811283
panel->generic_tile(
12821284
header = 'Message Manager & Validation'

0 commit comments

Comments
 (0)