Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
oblomov-dev committed Feb 14, 2024
2 parents 7a08775 + 95c6f09 commit de6feca
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions src/z2ui5_cl_demo_app_004.clas.abap
Original file line number Diff line number Diff line change
@@ -1,35 +1,32 @@
CLASS Z2UI5_CL_DEMO_APP_004 DEFINITION PUBLIC.
CLASS z2ui5_cl_demo_app_004 DEFINITION PUBLIC.

PUBLIC SECTION.

INTERFACES Z2UI5_if_app.



INTERFACES z2ui5_if_app.
DATA check_initialized TYPE abap_bool.
DATA mv_view_main TYPE string.

PROTECTED SECTION.

METHODS Z2UI5_view_main_display.
METHODS Z2UI5_view_second_display.
DATA client TYPE REF TO Z2UI5_if_client.
METHODS z2ui5_view_main_display.
METHODS z2ui5_view_second_display.
DATA client TYPE REF TO z2ui5_if_client.

PRIVATE SECTION.
ENDCLASS.



CLASS Z2UI5_CL_DEMO_APP_004 IMPLEMENTATION.
CLASS z2ui5_cl_demo_app_004 IMPLEMENTATION.


METHOD Z2UI5_if_app~main.
METHOD z2ui5_if_app~main.

me->client = client.

IF check_initialized = abap_false.
check_initialized = abap_true.
Z2UI5_view_main_display( ).
z2ui5_view_main_display( ).
client->message_box_display( 'app started, init values set' ).
RETURN.
ENDIF.
Expand All @@ -40,14 +37,14 @@ CLASS Z2UI5_CL_DEMO_APP_004 IMPLEMENTATION.
client->message_box_display( 'server-client roundtrip, method on_event of the abap controller was called' ).

WHEN 'BUTTON_RESTART'.
client->nav_app_leave( NEW Z2UI5_CL_DEMO_APP_004( ) ).
client->nav_app_leave( NEW z2ui5_cl_demo_app_004( ) ).

WHEN 'BUTTON_CHANGE_VIEW'.
CASE mv_view_main.
WHEN 'MAIN'.
Z2UI5_view_second_display( ).
z2ui5_view_second_display( ).
WHEN 'SECOND'.
Z2UI5_view_main_display( ).
z2ui5_view_main_display( ).
ENDCASE.

WHEN 'BUTTON_ERROR'.
Expand All @@ -61,7 +58,7 @@ CLASS Z2UI5_CL_DEMO_APP_004 IMPLEMENTATION.
ENDMETHOD.


METHOD Z2UI5_view_main_display.
METHOD z2ui5_view_main_display.

mv_view_main = 'MAIN'.

Expand Down Expand Up @@ -102,7 +99,7 @@ CLASS Z2UI5_CL_DEMO_APP_004 IMPLEMENTATION.
ENDMETHOD.


METHOD Z2UI5_view_second_display.
METHOD z2ui5_view_second_display.

mv_view_main = 'SECOND'.

Expand Down

0 comments on commit de6feca

Please sign in to comment.