mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-29 02:58:20 +08:00
refactoring
This commit is contained in:
parent
b16f653860
commit
bfb9f1329a
|
@ -1,17 +1,16 @@
|
|||
CLASS z2ui5_cl_app_hello_world DEFINITION PUBLIC.
|
||||
|
||||
PUBLIC SECTION.
|
||||
|
||||
INTERFACES z2ui5_if_app.
|
||||
|
||||
DATA product TYPE string.
|
||||
DATA quantity TYPE string.
|
||||
DATA product TYPE string.
|
||||
DATA quantity TYPE string.
|
||||
DATA check_initialized TYPE abap_bool.
|
||||
|
||||
ENDCLASS.
|
||||
|
||||
|
||||
CLASS Z2UI5_CL_APP_HELLO_WORLD IMPLEMENTATION.
|
||||
CLASS z2ui5_cl_app_hello_world IMPLEMENTATION.
|
||||
|
||||
METHOD z2ui5_if_app~main.
|
||||
|
||||
|
@ -26,7 +25,7 @@ CLASS Z2UI5_CL_APP_HELLO_WORLD IMPLEMENTATION.
|
|||
client->popup_message_toast( |{ product } { quantity } - send to the server| ).
|
||||
ENDCASE.
|
||||
|
||||
client->set_next( VALUE #( xml_main = Z2UI5_CL_XML_VIEW=>factory(
|
||||
client->set_next( VALUE #( xml_main = z2ui5_cl_xml_view=>factory(
|
||||
)->shell(
|
||||
)->page( title = 'abap2UI5 - z2ui5_cl_app_hello_world'
|
||||
)->simple_form( title = 'Hello World' editable = abap_true
|
||||
|
@ -35,12 +34,10 @@ CLASS Z2UI5_CL_APP_HELLO_WORLD IMPLEMENTATION.
|
|||
)->label( 'quantity'
|
||||
)->input( value = client->_bind( quantity )
|
||||
)->label( 'product'
|
||||
)->input(
|
||||
value = product
|
||||
enabled = abap_false
|
||||
)->button(
|
||||
text = 'post'
|
||||
press = client->_event( 'BUTTON_POST' )
|
||||
)->input( value = product
|
||||
enabled = abap_false
|
||||
)->button( text = 'post'
|
||||
press = client->_event( 'BUTTON_POST' )
|
||||
)->get_root( )->xml_get( ) ) ).
|
||||
|
||||
ENDMETHOD.
|
||||
|
|
Loading…
Reference in New Issue
Block a user