Skip to content

Commit

Permalink
Preparation for new Demo Flexible sizing - Toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
francisco-milan committed Sep 11, 2024
1 parent 622c19c commit 46a451a
Showing 1 changed file with 61 additions and 4 deletions.
65 changes: 61 additions & 4 deletions src/02/z2ui5_cl_xml_view.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,24 @@ CLASS z2ui5_cl_xml_view DEFINITION
PREFERRED PARAMETER items
RETURNING VALUE(result) TYPE REF TO z2ui5_cl_xml_view.

METHODS analytical_table
IMPORTING !ns TYPE clike OPTIONAL

Check failure on line 172 in src/02/z2ui5_cl_xml_view.clas.abap

View check run for this annotation

abaplint / abaplint

Align TYPE expressions to column 31

https://rules.abaplint.org/align_type_expressions
selectionmode TYPE clike OPTIONAL

Check failure on line 173 in src/02/z2ui5_cl_xml_view.clas.abap

View check run for this annotation

abaplint / abaplint

Align TYPE expressions to column 31

https://rules.abaplint.org/align_type_expressions
rowmode TYPE clike OPTIONAL

Check failure on line 174 in src/02/z2ui5_cl_xml_view.clas.abap

View check run for this annotation

abaplint / abaplint

Align TYPE expressions to column 31

https://rules.abaplint.org/align_type_expressions
toolbar TYPE clike OPTIONAL

Check failure on line 175 in src/02/z2ui5_cl_xml_view.clas.abap

View check run for this annotation

abaplint / abaplint

Align TYPE expressions to column 31

https://rules.abaplint.org/align_type_expressions
columns TYPE clike OPTIONAL

Check failure on line 176 in src/02/z2ui5_cl_xml_view.clas.abap

View check run for this annotation

abaplint / abaplint

Align TYPE expressions to column 31

https://rules.abaplint.org/align_type_expressions
RETURNING VALUE(result) TYPE REF TO z2ui5_cl_xml_view.

Check failure on line 177 in src/02/z2ui5_cl_xml_view.clas.abap

View check run for this annotation

abaplint / abaplint

Align TYPE expressions to column 31

https://rules.abaplint.org/align_type_expressions

METHODS rowmode
IMPORTING !ns TYPE clike OPTIONAL

Check failure on line 180 in src/02/z2ui5_cl_xml_view.clas.abap

View check run for this annotation

abaplint / abaplint

Align TYPE expressions to column 31

https://rules.abaplint.org/align_type_expressions
RETURNING VALUE(result) TYPE REF TO z2ui5_cl_xml_view.


METHODS auto
IMPORTING !ns TYPE clike OPTIONAL

Check failure on line 185 in src/02/z2ui5_cl_xml_view.clas.abap

View check run for this annotation

abaplint / abaplint

Align TYPE expressions to column 34

https://rules.abaplint.org/align_type_expressions
rowcontentheight TYPE clike OPTIONAL

Check failure on line 186 in src/02/z2ui5_cl_xml_view.clas.abap

View check run for this annotation

abaplint / abaplint

Align TYPE expressions to column 34

https://rules.abaplint.org/align_type_expressions
RETURNING VALUE(result) TYPE REF TO z2ui5_cl_xml_view.

Check failure on line 187 in src/02/z2ui5_cl_xml_view.clas.abap

View check run for this annotation

abaplint / abaplint

Align TYPE expressions to column 34

https://rules.abaplint.org/align_type_expressions

METHODS message_strip
IMPORTING !text TYPE clike OPTIONAL
!type TYPE clike OPTIONAL
Expand Down Expand Up @@ -647,6 +665,11 @@ CLASS z2ui5_cl_xml_view DEFINITION
RETURNING VALUE(result) TYPE REF TO z2ui5_cl_xml_view.

METHODS columns
IMPORTING !ns TYPE clike OPTIONAL

Check failure on line 668 in src/02/z2ui5_cl_xml_view.clas.abap

View check run for this annotation

abaplint / abaplint

Align TYPE expressions to column 31

https://rules.abaplint.org/align_type_expressions
RETURNING VALUE(result) TYPE REF TO z2ui5_cl_xml_view.

METHODS analytical_column
IMPORTING !ns TYPE clike OPTIONAL
RETURNING VALUE(result) TYPE REF TO z2ui5_cl_xml_view.

METHODS column
Expand Down Expand Up @@ -4731,7 +4754,8 @@ CLASS z2ui5_cl_xml_view IMPLEMENTATION.


METHOD columns.
result = _generic( `columns` ).
result = _generic( ns = ns
name = `columns` ).
ENDMETHOD.


Expand Down Expand Up @@ -9054,8 +9078,8 @@ CLASS z2ui5_cl_xml_view IMPLEMENTATION.


METHOD toolbar.

result = _generic( name = `Toolbar`
DATA(lv_name) = COND #( WHEN ns = 'table' THEN 'toolbar' ELSE `Toolbar` ).
result = _generic( name = lv_name
ns = ns
t_prop = VALUE #( ( n = `active` v = z2ui5_cl_util=>boolean_abap_2_json( active ) )
( n = `ariaHasPopup` v = ariahaspopup )
Expand Down Expand Up @@ -9728,7 +9752,8 @@ CLASS z2ui5_cl_xml_view IMPLEMENTATION.
( n = `fl` v = `sap.ui.fl` )
( n = `plugins` v = `sap.m.plugins` )
( n = `tnt` v = `sap.tnt` )
( n = `mdc` v = `sap.ui.mdc` ) ).
( n = `mdc` v = `sap.ui.mdc` )
( n = `trm` v = `sap.ui.table.rowmodes` ) ).

LOOP AT mt_ns REFERENCE INTO DATA(lr_ns) WHERE table_line IS NOT INITIAL
AND table_line <> `mvc`
Expand Down Expand Up @@ -10019,4 +10044,36 @@ CLASS z2ui5_cl_xml_view IMPLEMENTATION.
METHOD tiles.
result = _generic( `tiles` ).
ENDMETHOD.


METHOD analytical_column.
result = _generic( ns = ns
name = `AnalyticalColumn` ).
ENDMETHOD.


METHOD analytical_table.
result = _generic(
name = `AnalyticalTable`
ns = ns
t_prop = VALUE #(
( n = `selectionMode` v = selectionmode )
( n = `rowMode` v = rowmode )
( n = `toolbar` v = toolbar )
( n = `columns` v = columns ) ) ).
ENDMETHOD.

Check failure on line 10064 in src/02/z2ui5_cl_xml_view.clas.abap

View check run for this annotation

abaplint / abaplint

Indentation problem, expected 2 spaces

https://rules.abaplint.org/indentation


METHOD auto.
result = _generic( ns = ns
name = `Auto`
t_prop = VALUE #( ( n = `rowContentHeight` v = rowcontentheight ) ) ).
ENDMETHOD.


METHOD rowmode.
result = _generic(
name = `rowMode`
ns = ns ).
ENDMETHOD.
ENDCLASS.

0 comments on commit 46a451a

Please sign in to comment.