mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-29 20:38:43 +08:00
parent
2ebee1f190
commit
90fce43ca8
|
@ -34,7 +34,7 @@ CLASS z2ui5_cl_app_demo_00 IMPLEMENTATION.
|
||||||
|
|
||||||
|
|
||||||
DATA(page) = z2ui5_cl_xml_view_helper=>factory(
|
DATA(page) = z2ui5_cl_xml_view_helper=>factory(
|
||||||
)->page(
|
)->shell( )->page(
|
||||||
title = 'abap2UI5 - Demo Section'
|
title = 'abap2UI5 - Demo Section'
|
||||||
class = 'sapUiContentPadding sapUiResponsivePadding--content '
|
class = 'sapUiContentPadding sapUiResponsivePadding--content '
|
||||||
navbuttonpress = client->_event( 'BACK' )
|
navbuttonpress = client->_event( 'BACK' )
|
||||||
|
|
|
@ -153,7 +153,7 @@ CLASS z2ui5_cl_app_demo_07 IMPLEMENTATION.
|
||||||
|
|
||||||
METHOD ui5_render_view_init.
|
METHOD ui5_render_view_init.
|
||||||
|
|
||||||
DATA(lo_view) = z2ui5_cl_xml_view_helper=>factory( check_shell = abap_false ns = VALUE #(
|
DATA(lo_view) = z2ui5_cl_xml_view_helper=>factory( ns = VALUE #(
|
||||||
( `xmlns:mvc="sap.ui.core.mvc"` )
|
( `xmlns:mvc="sap.ui.core.mvc"` )
|
||||||
( `xmlns:m="sap.m"` )
|
( `xmlns:m="sap.m"` )
|
||||||
( `xmlns:z2ui5="z2ui5"` )
|
( `xmlns:z2ui5="z2ui5"` )
|
||||||
|
|
|
@ -24,7 +24,6 @@ CLASS z2ui5_cl_xml_view_helper DEFINITION
|
||||||
CLASS-METHODS factory
|
CLASS-METHODS factory
|
||||||
IMPORTING
|
IMPORTING
|
||||||
ns TYPE string_table OPTIONAL
|
ns TYPE string_table OPTIONAL
|
||||||
check_shell TYPE abap_bool DEFAULT abap_true
|
|
||||||
RETURNING
|
RETURNING
|
||||||
VALUE(result) TYPE REF TO z2ui5_cl_xml_view_helper.
|
VALUE(result) TYPE REF TO z2ui5_cl_xml_view_helper.
|
||||||
|
|
||||||
|
@ -216,6 +215,11 @@ CLASS z2ui5_cl_xml_view_helper DEFINITION
|
||||||
RETURNING
|
RETURNING
|
||||||
VALUE(result) TYPE REF TO z2ui5_cl_xml_view_helper.
|
VALUE(result) TYPE REF TO z2ui5_cl_xml_view_helper.
|
||||||
|
|
||||||
|
METHODS shell
|
||||||
|
IMPORTING
|
||||||
|
ns TYPE clike OPTIONAL
|
||||||
|
RETURNING
|
||||||
|
VALUE(result) TYPE REF TO z2ui5_cl_xml_view_helper.
|
||||||
METHODS blocks
|
METHODS blocks
|
||||||
RETURNING
|
RETURNING
|
||||||
VALUE(result) TYPE REF TO z2ui5_cl_xml_view_helper.
|
VALUE(result) TYPE REF TO z2ui5_cl_xml_view_helper.
|
||||||
|
@ -880,12 +884,6 @@ CLASS z2ui5_cl_xml_view_helper IMPLEMENTATION.
|
||||||
lo_tree->m_parent = lo_tree.
|
lo_tree->m_parent = lo_tree.
|
||||||
result = lo_tree.
|
result = lo_tree.
|
||||||
|
|
||||||
if check_shell = abap_true.
|
|
||||||
|
|
||||||
result = result->_generic( 'Shell' ).
|
|
||||||
|
|
||||||
endif.
|
|
||||||
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
||||||
|
@ -2283,4 +2281,13 @@ CLASS z2ui5_cl_xml_view_helper IMPLEMENTATION.
|
||||||
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
METHOD shell.
|
||||||
|
|
||||||
|
result = _generic(
|
||||||
|
name = `Shell`
|
||||||
|
ns = ns
|
||||||
|
).
|
||||||
|
|
||||||
|
ENDMETHOD.
|
||||||
|
|
||||||
ENDCLASS.
|
ENDCLASS.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user