-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a290b27
commit 3c9ee28
Showing
14 changed files
with
819 additions
and
520 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
CLASS z2ui5_cl_demo_app_021 DEFINITION PUBLIC. | ||
|
||
PUBLIC SECTION. | ||
|
||
INTERFACES z2ui5_if_app. | ||
|
||
DATA mv_textarea TYPE string. | ||
|
||
DATA check_initialized TYPE abap_bool. | ||
|
||
PROTECTED SECTION. | ||
|
||
METHODS display_view | ||
IMPORTING | ||
client TYPE REF TO z2ui5_if_client. | ||
|
||
METHODS on_event | ||
IMPORTING | ||
client TYPE REF TO z2ui5_if_client. | ||
|
||
PRIVATE SECTION. | ||
ENDCLASS. | ||
|
||
|
||
|
||
CLASS z2ui5_cl_demo_app_021 IMPLEMENTATION. | ||
|
||
|
||
METHOD display_view. | ||
|
||
DATA(page) = z2ui5_cl_xml_view=>factory( )->shell( | ||
)->page( | ||
title = 'abap2UI5 - Text Area Example' | ||
navbuttonpress = client->_event( 'BACK' ) | ||
shownavbutton = xsdbool( client->get( )-s_draft-id_prev_app_stack IS NOT INITIAL ) ). | ||
|
||
DATA(layout) = page->vertical_layout( class = `sapUiContentPadding` width = `100%` ). | ||
layout->label( 'text area' | ||
)->text_area( | ||
valueliveupdate = abap_true | ||
value = client->_bind_edit( mv_textarea ) | ||
growing = abap_true | ||
growingmaxlines = '7' | ||
width = '100%' | ||
)->button( text = `OK` press = client->_event( `POST` ) ). | ||
|
||
client->view_display( page->stringify( ) ). | ||
|
||
ENDMETHOD. | ||
|
||
|
||
METHOD on_event. | ||
|
||
CASE client->get( )-event. | ||
|
||
WHEN 'POST'. | ||
client->message_box_display( 'success - values send to the server' ). | ||
|
||
WHEN 'BACK'. | ||
client->nav_app_leave( ). | ||
|
||
ENDCASE. | ||
|
||
ENDMETHOD. | ||
|
||
|
||
METHOD z2ui5_if_app~main. | ||
|
||
IF check_initialized = abap_false. | ||
check_initialized = abap_true. | ||
|
||
mv_textarea = `Lorem ipsum dolor st amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magn` && | ||
`a aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd` && | ||
` gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam n ` && | ||
` onumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. Lorem ipsum dolor sit am ` && | ||
` et, consetetur sadipscing elitr, sed diam nonumy eirm sed diam voluptua. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam no ` && | ||
`numy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.`. | ||
|
||
|
||
display_view( client ). | ||
ENDIF. | ||
|
||
on_event( client ). | ||
|
||
ENDMETHOD. | ||
ENDCLASS. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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_DEMO_APP_021</CLSNAME> | ||
<LANGU>E</LANGU> | ||
<DESCRIPT>control - Text Area</DESCRIPT> | ||
<STATE>1</STATE> | ||
<CLSCCINCL>X</CLSCCINCL> | ||
<FIXPT>X</FIXPT> | ||
<UNICODE>X</UNICODE> | ||
</VSEOCLASS> | ||
</asx:values> | ||
</asx:abap> | ||
</abapGit> |
Oops, something went wrong.