mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-29 15:16:15 +08:00
parent
0e5a54a1b7
commit
2a0900bfda
|
@ -60,11 +60,11 @@ CLASS Z2UI5_CL_APP_DEMO_17 IMPLEMENTATION.
|
||||||
)->avatar( src = lcl_help=>get_avatar( ) class = 'sapUiTinyMarginEnd'
|
)->avatar( src = lcl_help=>get_avatar( ) class = 'sapUiTinyMarginEnd'
|
||||||
)->title( text = 'Oblomov Dev' wrapping = abap_true ).
|
)->title( text = 'Oblomov Dev' wrapping = abap_true ).
|
||||||
|
|
||||||
header_title->expanded_content( )->text( `abap2UI5 Developer` ).
|
header_title->expanded_content( ns = `uxap` )->text( `abap2UI5 Developer` ).
|
||||||
header_title->snapped_Content( )->text( `abap2UI5 Developer` ).
|
header_title->snapped_Content( ns = `uxap` )->text( `abap2UI5 Developer` ).
|
||||||
header_title->snapped_Title_On_Mobile( )->title( `abap2UI5 Developer` ).
|
header_title->snapped_Title_On_Mobile( )->title( `abap2UI5 Developer` ).
|
||||||
|
|
||||||
header_title->actions( )->overflow_toolbar(
|
header_title->actions( ns = `uxap` )->overflow_toolbar(
|
||||||
)->overflow_toolbar_button(
|
)->overflow_toolbar_button(
|
||||||
icon = `sap-icon://edit`
|
icon = `sap-icon://edit`
|
||||||
text = 'edit header'
|
text = 'edit header'
|
||||||
|
@ -113,7 +113,7 @@ CLASS Z2UI5_CL_APP_DEMO_17 IMPLEMENTATION.
|
||||||
data(sections) = page->sections( ).
|
data(sections) = page->sections( ).
|
||||||
|
|
||||||
sections->object_page_section( titleuppercase = abap_false id = 'goalsSectionSS1' title = '2014 Goals Plan'
|
sections->object_page_section( titleuppercase = abap_false id = 'goalsSectionSS1' title = '2014 Goals Plan'
|
||||||
)->heading(
|
)->heading( ns = `uxap`
|
||||||
)->message_strip( text = 'this is a message strip'
|
)->message_strip( text = 'this is a message strip'
|
||||||
)->get_parent(
|
)->get_parent(
|
||||||
)->sub_sections(
|
)->sub_sections(
|
||||||
|
@ -145,7 +145,7 @@ CLASS Z2UI5_CL_APP_DEMO_17 IMPLEMENTATION.
|
||||||
)->label( text = 'goals2').
|
)->label( text = 'goals2').
|
||||||
|
|
||||||
sections->object_page_section( titleuppercase = abap_false id = 'PersonalSection' title = 'Personal'
|
sections->object_page_section( titleuppercase = abap_false id = 'PersonalSection' title = 'Personal'
|
||||||
)->heading(
|
)->heading( ns = `uxap`
|
||||||
" )->message_strip( text = 'this is a message strip'
|
" )->message_strip( text = 'this is a message strip'
|
||||||
)->get_parent(
|
)->get_parent(
|
||||||
)->sub_sections(
|
)->sub_sections(
|
||||||
|
@ -161,7 +161,7 @@ CLASS Z2UI5_CL_APP_DEMO_17 IMPLEMENTATION.
|
||||||
|
|
||||||
|
|
||||||
sections->object_page_section( titleuppercase = abap_false id = 'employmentSection' title = 'Employment'
|
sections->object_page_section( titleuppercase = abap_false id = 'employmentSection' title = 'Employment'
|
||||||
)->heading(
|
)->heading( ns = `uxap`
|
||||||
" )->message_strip( text = 'this is a message strip'
|
" )->message_strip( text = 'this is a message strip'
|
||||||
)->get_parent(
|
)->get_parent(
|
||||||
)->sub_sections(
|
)->sub_sections(
|
||||||
|
|
|
@ -59,11 +59,11 @@ CLASS Z2UI5_CL_APP_DEMO_42 IMPLEMENTATION.
|
||||||
)->avatar( src = lcl_help=>get_avatar( ) class = 'sapUiTinyMarginEnd'
|
)->avatar( src = lcl_help=>get_avatar( ) class = 'sapUiTinyMarginEnd'
|
||||||
)->title( text = 'Oblomov Dev' wrapping = abap_true ).
|
)->title( text = 'Oblomov Dev' wrapping = abap_true ).
|
||||||
|
|
||||||
header_title->expanded_content( )->text( `abap2UI5 Developer` ).
|
header_title->expanded_content( ns = `uxap` )->text( `abap2UI5 Developer` ).
|
||||||
header_title->snapped_Content( )->text( `abap2UI5 Developer` ).
|
header_title->snapped_Content( ns = `uxap` )->text( `abap2UI5 Developer` ).
|
||||||
header_title->snapped_Title_On_Mobile( )->title( `abap2UI5 Developer` ).
|
header_title->snapped_Title_On_Mobile( )->title( `abap2UI5 Developer` ).
|
||||||
|
|
||||||
header_title->actions( )->overflow_toolbar(
|
header_title->actions( ns = `uxap` )->overflow_toolbar(
|
||||||
)->overflow_toolbar_button(
|
)->overflow_toolbar_button(
|
||||||
icon = `sap-icon://edit`
|
icon = `sap-icon://edit`
|
||||||
text = 'edit header'
|
text = 'edit header'
|
||||||
|
@ -111,7 +111,7 @@ CLASS Z2UI5_CL_APP_DEMO_42 IMPLEMENTATION.
|
||||||
data(sections) = page->sections( ).
|
data(sections) = page->sections( ).
|
||||||
|
|
||||||
sections->object_page_section( titleuppercase = abap_false id = 'goalsSectionSS1' title = '2014 Goals Plan'
|
sections->object_page_section( titleuppercase = abap_false id = 'goalsSectionSS1' title = '2014 Goals Plan'
|
||||||
)->heading(
|
)->heading( ns = `uxap`
|
||||||
)->message_strip( text = 'this is a message strip'
|
)->message_strip( text = 'this is a message strip'
|
||||||
)->get_parent(
|
)->get_parent(
|
||||||
)->sub_sections(
|
)->sub_sections(
|
||||||
|
@ -143,7 +143,7 @@ CLASS Z2UI5_CL_APP_DEMO_42 IMPLEMENTATION.
|
||||||
)->label( text = 'goals2').
|
)->label( text = 'goals2').
|
||||||
|
|
||||||
sections->object_page_section( titleuppercase = abap_false id = 'PersonalSection' title = 'Personal'
|
sections->object_page_section( titleuppercase = abap_false id = 'PersonalSection' title = 'Personal'
|
||||||
)->heading(
|
)->heading( ns = `uxap`
|
||||||
" )->message_strip( text = 'this is a message strip'
|
" )->message_strip( text = 'this is a message strip'
|
||||||
)->get_parent(
|
)->get_parent(
|
||||||
)->sub_sections(
|
)->sub_sections(
|
||||||
|
@ -159,7 +159,7 @@ CLASS Z2UI5_CL_APP_DEMO_42 IMPLEMENTATION.
|
||||||
|
|
||||||
|
|
||||||
sections->object_page_section( titleuppercase = abap_false id = 'employmentSection' title = 'Employment'
|
sections->object_page_section( titleuppercase = abap_false id = 'employmentSection' title = 'Employment'
|
||||||
)->heading(
|
)->heading( ns = `uxap`
|
||||||
" )->message_strip( text = 'this is a message strip'
|
" )->message_strip( text = 'this is a message strip'
|
||||||
)->get_parent(
|
)->get_parent(
|
||||||
)->sub_sections(
|
)->sub_sections(
|
||||||
|
|
43
src/00/z2ui5_cl_app_demo_43.clas.abap
Normal file
43
src/00/z2ui5_cl_app_demo_43.clas.abap
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
CLASS z2ui5_cl_app_demo_43 DEFINITION PUBLIC.
|
||||||
|
|
||||||
|
PUBLIC SECTION.
|
||||||
|
|
||||||
|
INTERFACES z2ui5_if_app.
|
||||||
|
|
||||||
|
* TYPES:
|
||||||
|
* BEGIN OF t_flight,
|
||||||
|
* carrid TYPE string,
|
||||||
|
* connid TYPE string,
|
||||||
|
* fldate TYPE string,
|
||||||
|
* price TYPE string,
|
||||||
|
* END OF t_flight.
|
||||||
|
* DATA: mt_flight TYPE STANDARD TABLE OF t_flight.
|
||||||
|
|
||||||
|
ENDCLASS.
|
||||||
|
|
||||||
|
|
||||||
|
CLASS z2ui5_cl_app_demo_43 IMPLEMENTATION.
|
||||||
|
|
||||||
|
METHOD z2ui5_if_app~controller.
|
||||||
|
|
||||||
|
* SELECT carrid connid fldate price FROM sflight INTO TABLE mt_flight.
|
||||||
|
*
|
||||||
|
* DATA(page) = z2ui5_cl_xml_view=>factory( )->page(
|
||||||
|
* )->scroll_container( height = '70%' vertical = abap_true
|
||||||
|
* )->table( items = client->_bind_one( mt_flight )
|
||||||
|
* )->columns(
|
||||||
|
* )->column( )->text( 'Carrid' )->get_parent(
|
||||||
|
* )->column( )->text( 'Connid' )->get_parent(
|
||||||
|
* )->column( )->text( 'Fldate' )->get_parent(
|
||||||
|
* )->column( )->text( 'Price' )->get_parent(
|
||||||
|
* )->get_parent(
|
||||||
|
* )->items( )->column_list_item( )->cells(
|
||||||
|
* )->text( '{CARRID}'
|
||||||
|
* )->text( '{CONNID}'
|
||||||
|
* )->text( '{FLDATE}'
|
||||||
|
* )->text( '{PRICE}' ).
|
||||||
|
*
|
||||||
|
* client->set_next( VALUE #( xml_main = page->get_root( )->xml_get( ) ) ).
|
||||||
|
|
||||||
|
ENDMETHOD.
|
||||||
|
ENDCLASS.
|
16
src/00/z2ui5_cl_app_demo_43.clas.xml
Normal file
16
src/00/z2ui5_cl_app_demo_43.clas.xml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<abapGit version="v1.0.0" serializer="LCL_OBJECT_CLAS" serializer_version="v1.0.0">
|
||||||
|
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||||
|
<asx:values>
|
||||||
|
<VSEOCLASS>
|
||||||
|
<CLSNAME>Z2UI5_CL_APP_DEMO_43</CLSNAME>
|
||||||
|
<LANGU>E</LANGU>
|
||||||
|
<DESCRIPT>documentation</DESCRIPT>
|
||||||
|
<STATE>1</STATE>
|
||||||
|
<CLSCCINCL>X</CLSCCINCL>
|
||||||
|
<FIXPT>X</FIXPT>
|
||||||
|
<UNICODE>X</UNICODE>
|
||||||
|
</VSEOCLASS>
|
||||||
|
</asx:values>
|
||||||
|
</asx:abap>
|
||||||
|
</abapGit>
|
|
@ -175,13 +175,25 @@ CLASS z2ui5_cl_xml_view DEFINITION
|
||||||
|
|
||||||
METHODS expanded_content
|
METHODS expanded_content
|
||||||
IMPORTING
|
IMPORTING
|
||||||
ns TYPE clike DEFAULT `uxap`
|
ns TYPE clike
|
||||||
RETURNING
|
RETURNING
|
||||||
VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
|
VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
|
||||||
|
|
||||||
METHODS snapped_content
|
METHODS snapped_content
|
||||||
IMPORTING
|
IMPORTING
|
||||||
ns TYPE clike DEFAULT `uxap`
|
ns TYPE clike
|
||||||
|
RETURNING
|
||||||
|
VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
|
||||||
|
|
||||||
|
METHODS heading
|
||||||
|
IMPORTING
|
||||||
|
ns TYPE clike
|
||||||
|
RETURNING
|
||||||
|
VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
|
||||||
|
|
||||||
|
METHODS actions
|
||||||
|
IMPORTING
|
||||||
|
ns TYPE clike
|
||||||
RETURNING
|
RETURNING
|
||||||
VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
|
VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
|
||||||
|
|
||||||
|
@ -197,12 +209,6 @@ CLASS z2ui5_cl_xml_view DEFINITION
|
||||||
RETURNING
|
RETURNING
|
||||||
VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
|
VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
|
||||||
|
|
||||||
METHODS actions
|
|
||||||
IMPORTING
|
|
||||||
ns TYPE clike DEFAULT `uxap`
|
|
||||||
RETURNING
|
|
||||||
VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
|
|
||||||
|
|
||||||
METHODS avatar
|
METHODS avatar
|
||||||
IMPORTING
|
IMPORTING
|
||||||
src TYPE clike OPTIONAL
|
src TYPE clike OPTIONAL
|
||||||
|
@ -228,12 +234,6 @@ CLASS z2ui5_cl_xml_view DEFINITION
|
||||||
RETURNING
|
RETURNING
|
||||||
VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
|
VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
|
||||||
|
|
||||||
METHODS heading
|
|
||||||
IMPORTING
|
|
||||||
ns TYPE clike DEFAULT `uxap`
|
|
||||||
RETURNING
|
|
||||||
VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
|
|
||||||
|
|
||||||
METHODS sub_sections
|
METHODS sub_sections
|
||||||
RETURNING
|
RETURNING
|
||||||
VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
|
VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user