All files / output cl_dd_table_element.clas.mjs

31.66% Statements 19/60
100% Branches 2/2
3.7% Functions 1/27
31.66% Lines 19/60

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 601x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x                     1x       1x               1x                 1x                           1x 1x 1x
const {cx_root} = await import("./cx_root.clas.mjs");
// cl_dd_table_element.clas.abap
class cl_dd_table_element {
  static STATIC_SUPER = undefined;
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_DD_TABLE_ELEMENT';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {"TABLE_OF_COLUMNS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.ABAPObject({qualifiedName: undefined, RTTIName: undefined}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "sdydo_object_table");}, "visibility": "U", "is_constant": " ", "is_class": " "}};
  static METHODS = {"SET_COLUMN_STYLE": {"visibility": "U", "parameters": {"COL_NO": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "SAP_STYLE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "SAP_COLOR": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "SAP_FONTSIZE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "SAP_FONTSTYLE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "SAP_EMPHASIS": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "SAP_ALIGN": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "SAP_VALIGN": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "SAP_SYMBOL": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}}},
  "ADD_COLUMN": {"visibility": "U", "parameters": {"WIDTH": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "BG_COLOR": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "HEADING": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "SAP_STYLE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "STYLE_CLASS": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "COLUMN": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_DD_AREA", RTTIName: "\\CLASS=CL_DD_AREA"});}, "is_optional": " ", "parm_kind": "E", "type_name": "ObjectReferenceType"}}},
  "NEW_ROW": {"visibility": "U", "parameters": {"SAP_STYLE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "SAP_COLOR": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "SAP_FONTSIZE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "SAP_FONTSTYLE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "SAP_EMPHASIS": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}}}};
  constructor() {
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "set_column_style": this.set_column_style.bind(this),
      "add_column": this.add_column.bind(this),
      "new_row": this.new_row.bind(this),
    };
    this.table_of_columns = abap.types.TableFactory.construct(new abap.types.ABAPObject({qualifiedName: undefined, RTTIName: undefined}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "sdydo_object_table");
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async new_row(INPUT) {
    let sap_style = INPUT?.sap_style || new abap.types.Character(4);
    let sap_color = INPUT?.sap_color || new abap.types.Character(4);
    let sap_fontsize = INPUT?.sap_fontsize || new abap.types.Character(4);
    let sap_fontstyle = INPUT?.sap_fontstyle || new abap.types.Character(4);
    let sap_emphasis = INPUT?.sap_emphasis || new abap.types.Character(4);
    return;
  }
  async add_column(INPUT) {
    let width = INPUT?.width || new abap.types.Character(4);
    let bg_color = INPUT?.bg_color || new abap.types.Character(4);
    let heading = INPUT?.heading || new abap.types.Character(4);
    let sap_style = INPUT?.sap_style || new abap.types.Character(4);
    let style_class = INPUT?.style_class || new abap.types.Character(4);
    let column = INPUT?.column || new abap.types.ABAPObject({qualifiedName: "CL_DD_AREA", RTTIName: "\\CLASS=CL_DD_AREA"});
    return;
  }
  async set_column_style(INPUT) {
    let col_no = INPUT?.col_no;
    if (col_no?.getQualifiedName === undefined || col_no.getQualifiedName() !== "I") { col_no = undefined; }
    if (col_no === undefined) { col_no = new abap.types.Integer({qualifiedName: "I"}).set(INPUT.col_no); }
    let sap_style = INPUT?.sap_style || new abap.types.Character(4);
    let sap_color = INPUT?.sap_color || new abap.types.Character(4);
    let sap_fontsize = INPUT?.sap_fontsize || new abap.types.Character(4);
    let sap_fontstyle = INPUT?.sap_fontstyle || new abap.types.Character(4);
    let sap_emphasis = INPUT?.sap_emphasis || new abap.types.Character(4);
    let sap_align = INPUT?.sap_align || new abap.types.Character(4);
    let sap_valign = INPUT?.sap_valign || new abap.types.Character(4);
    let sap_symbol = INPUT?.sap_symbol || new abap.types.Character(4);
    return;
  }
}
abap.Classes['CL_DD_TABLE_ELEMENT'] = cl_dd_table_element;
export {cl_dd_table_element};