All files / output cl_salv_column_list.clas.mjs

37.7% Statements 23/61
100% Branches 2/2
9.09% Functions 1/11
37.7% Lines 23/61

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 60 611x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x     1x 1x                         1x       1x                 1x           1x       1x           1x 1x 1x
const {cl_salv_column} = await import("./cl_salv_column.clas.mjs");
const {cx_root} = await import("./cx_root.clas.mjs");
// cl_salv_column_list.clas.abap
class cl_salv_column_list extends cl_salv_column {
  static STATIC_SUPER = cl_salv_column;
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_SALV_COLUMN_LIST';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {};
  static METHODS = {"SET_ICON": {"visibility": "U", "parameters": {"VALUE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}}},
  "SET_CELL_TYPE": {"visibility": "U", "parameters": {"VALUE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}}},
  "SET_KEY": {"visibility": "U", "parameters": {"VALUE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}}},
  "SET_COLOR": {"visibility": "U", "parameters": {"VALUE": {"type": () => {return new abap.types.Structure({
  "col": new abap.types.Integer({qualifiedName: "I"}),
  "int": new abap.types.Integer({qualifiedName: "I"}),
  "inv": new abap.types.Integer({qualifiedName: "I"})}, "LVC_S_COLO", "LVC_S_COLO", {}, {});}, "is_optional": " ", "parm_kind": "I", "type_name": "StructureType"}}}};
  constructor() {
    const sup = super();
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "SUPER": sup.FRIENDS_ACCESS_INSTANCE,
      "set_icon": this.set_icon.bind(this),
      "set_cell_type": this.set_cell_type.bind(this),
      "set_key": this.set_key.bind(this),
      "set_color": this.set_color.bind(this),
    };
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async set_color(INPUT) {
    let value = INPUT?.value;
    if (value?.getQualifiedName === undefined || value.getQualifiedName() !== "LVC_S_COLO") { value = undefined; }
    if (value === undefined) { value = new abap.types.Structure({
    "col": new abap.types.Integer({qualifiedName: "I"}),
    "int": new abap.types.Integer({qualifiedName: "I"}),
    "inv": new abap.types.Integer({qualifiedName: "I"})}, "LVC_S_COLO", "LVC_S_COLO", {}, {}).set(INPUT.value); }
    return;
  }
  async set_key(INPUT) {
    let value = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.value) {value.set(INPUT.value);}
    if (INPUT === undefined || INPUT.value === undefined) {value = abap.builtin.abap_true;}
    return;
  }
  async set_cell_type(INPUT) {
    let value = INPUT?.value || new abap.types.Character(4);
    return;
  }
  async set_icon(INPUT) {
    let value = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.value) {value.set(INPUT.value);}
    if (INPUT === undefined || INPUT.value === undefined) {value = abap.builtin.abap_true;}
    return;
  }
}
abap.Classes['CL_SALV_COLUMN_LIST'] = cl_salv_column_list;
export {cl_salv_column_list};