Skip to content

Commit

Permalink
add version specific categories
Browse files Browse the repository at this point in the history
  • Loading branch information
oblomov-dev committed Feb 28, 2024
1 parent 71ef8ff commit 593f2e1
Show file tree
Hide file tree
Showing 5 changed files with 299 additions and 241 deletions.
157 changes: 88 additions & 69 deletions src/z2ui5_cl_demo_app_000.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ CLASS z2ui5_cl_demo_app_000 DEFINITION PUBLIC.
custom_controls TYPE abap_bool,
input TYPE abap_bool,
popups TYPE abap_bool,
version TYPE abap_bool,
END OF ms_check_expanded.

DATA mt_scroll TYPE z2ui5_cl_fw_cc_scrolling=>ty_t_item.
Expand Down Expand Up @@ -212,14 +213,6 @@ CLASS z2ui5_cl_demo_app_000 IMPLEMENTATION.
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = `Message IV`
subheader = 'Message Manager / Messaging'
press = client->_event( 'Z2UI5_CL_DEMO_APP_135' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel = page->panel(
expandable = abap_false
expanded = abap_true
Expand Down Expand Up @@ -698,74 +691,13 @@ CLASS z2ui5_cl_demo_app_000 IMPLEMENTATION.
headertext = `Visualization`
).

panel->generic_tile(
header = 'Donut Chart'
* subheader = 'Use RTTI to send tables to the frontend'
press = client->_event( 'Z2UI5_CL_DEMO_APP_013' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'Line Chart'
* subheader = 'sap.ui.Table'
press = client->_event( 'Z2UI5_CL_DEMO_APP_014' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'Bar Chart'
* subheader = 'sap.ui.Table'
press = client->_event( 'Z2UI5_CL_DEMO_APP_016' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'Radial Chart'
*subheader = 'sap.ui.Table'
press = client->_event( 'Z2UI5_CL_DEMO_APP_029' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'Monitor'
*subheader = 'sap.ui.Table'
press = client->_event( 'Z2UI5_CL_DEMO_APP_041' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'Gantt Chart'
press = client->_event( 'Z2UI5_CL_DEMO_APP_076' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'Planning Calender'
press = client->_event( 'Z2UI5_CL_DEMO_APP_080' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'Process Flow'
press = client->_event( 'Z2UI5_CL_DEMO_APP_091' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'Map Container'
press = client->_event( 'z2ui5_cl_demo_app_123' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'Wizard Control'
press = client->_event( 'z2ui5_cl_demo_app_175' )
Expand Down Expand Up @@ -1222,6 +1154,93 @@ class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).


page = page2->panel(
expandable = abap_true
expanded = client->_bind_edit( ms_check_expanded-version )
headertext = `UI5 Version Specific`
).

panel = page->panel(
expandable = abap_false
expanded = abap_true
headertext = `UI5-Only (No OpenUI5)`
).

panel->generic_tile(
header = 'Table with RadialMicroChart'
press = client->_event( 'Z2UI5_CL_DEMO_APP_177' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'Donut Chart'
* subheader = 'Use RTTI to send tables to the frontend'
press = client->_event( 'Z2UI5_CL_DEMO_APP_013' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'Line Chart'
* subheader = 'sap.ui.Table'
press = client->_event( 'Z2UI5_CL_DEMO_APP_014' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'Bar Chart'
* subheader = 'sap.ui.Table'
press = client->_event( 'Z2UI5_CL_DEMO_APP_016' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'Radial Chart'
*subheader = 'sap.ui.Table'
press = client->_event( 'Z2UI5_CL_DEMO_APP_029' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'Gantt Chart'
press = client->_event( 'Z2UI5_CL_DEMO_APP_076' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).


panel->generic_tile(
header = 'Process Flow'
press = client->_event( 'Z2UI5_CL_DEMO_APP_091' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'Map Container'
press = client->_event( 'z2ui5_cl_demo_app_123' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel = page->panel(
expandable = abap_false
expanded = abap_true
headertext = `High-Version-Only (>1.60.14)`
).

panel->generic_tile(
header = `Messaging`
subheader = 'Message Manager'
press = client->_event( 'Z2UI5_CL_DEMO_APP_135' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

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

ENDMETHOD.
Expand Down
29 changes: 2 additions & 27 deletions src/z2ui5_cl_demo_app_006.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ CLASS z2ui5_cl_demo_app_006 IMPLEMENTATION.

METHOD refresh_data.

DO 5000 TIMES.
DO 100 TIMES.
DATA ls_row TYPE ty_row.
ls_row-count = sy-index.
ls_row-value = 'red'.
Expand All @@ -50,31 +50,6 @@ CLASS z2ui5_cl_demo_app_006 IMPLEMENTATION.
METHOD z2ui5_if_app~main.

IF check_initialized = abap_false.

* IF check_ui5 = abap_false.
* check_ui5 = abap_true.
* client->nav_app_call( z2ui5_cl_popup_js_loader=>factory_check_open_ui5( ) ).
* RETURN.
* ENDIF.

* IF client->get( )-check_on_navigated = abap_true.
* TRY.
* DATA(lo_app5) = client->get_app( client->get( )-s_draft-id_prev_app ).
* DATA lo_app TYPE REF TO z2ui5_cl_popup_js_loader.
* lo_app ?= lo_app5.
* IF lo_app->mv_is_open_ui5 = abap_true.
* DATA(lo_app3) = z2ui5_cl_popup_to_inform=>factory( `Sample not supported with OpenUI5, switch bootstrapping first to see this demo` ).
* client->nav_app_call( lo_app3 ).
* RETURN.
* ENDIF.
* CATCH cx_root.
* DATA(lo_app4) = client->get_app( client->get( )-s_draft-id_prev_app ).
* CAST z2ui5_cl_popup_to_inform( lo_app4 ).
* client->nav_app_leave( ).
* RETURN.
* ENDTRY.
* ENDIF.

check_initialized = abap_true.
refresh_data( ).
ENDIF.
Expand Down Expand Up @@ -199,7 +174,7 @@ CLASS z2ui5_cl_demo_app_006 IMPLEMENTATION.
)->text( '{DESCR}'
)->checkbox( selected = '{CHECKBOX}' enabled = abap_false
)->text( '{COUNT}'
)->radial_micro_chart( size = `Responsive` height = `35px` percentage = `{PERCENTAGE}` valuecolor = `{VALUECOLOR}` ).
).

client->view_display( view->stringify( ) ).

Expand Down
143 changes: 0 additions & 143 deletions src/z2ui5_cl_demo_app_041.clas.abap

This file was deleted.

Loading

0 comments on commit 593f2e1

Please sign in to comment.