All files / output cl_gui_splitter_container.clas.mjs

32.23% Statements 49/152
100% Branches 2/2
2.27% Functions 1/44
32.23% Lines 49/152

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 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 1521x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x                                           1x                         1x                         1x             1x                   1x                       1x             1x     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_gui_splitter_container.clas.abap
class cl_gui_splitter_container {
  static STATIC_SUPER = undefined;
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_GUI_SPLITTER_CONTAINER';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {"MODE_ABSOLUTE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "MODE_RELATIVE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "TYPE_MOVABLE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "TYPE_SASHVISIBLE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "TRUE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "FALSE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"}};
  static METHODS = {"CONSTRUCTOR": {"visibility": "U", "parameters": {"PARENT": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_GUI_CONTAINER", RTTIName: "\\CLASS=CL_GUI_CONTAINER"});}, "is_optional": " ", "parm_kind": "I", "type_name": "ObjectReferenceType"}, "ROWS": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "ALIGN": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "COLUMNS": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}}},
  "FREE": {"visibility": "U", "parameters": {}},
  "SET_COLUMN_MODE": {"visibility": "U", "parameters": {"MODE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "RESULT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "E", "type_name": "IntegerType"}}},
  "SET_ROW_SASH": {"visibility": "U", "parameters": {"ID": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "TYPE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "VALUE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "RESULT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "E", "type_name": "IntegerType"}}},
  "SET_ROW_HEIGHT": {"visibility": "U", "parameters": {"ID": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "HEIGHT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "RESULT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "E", "type_name": "IntegerType"}}},
  "SET_COLUMN_SASH": {"visibility": "U", "parameters": {"ID": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "TYPE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "VALUE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "RESULT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "E", "type_name": "IntegerType"}}},
  "SET_ROW_MODE": {"visibility": "U", "parameters": {"MODE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "RESULT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "E", "type_name": "IntegerType"}}},
  "SET_COLUMN_WIDTH": {"visibility": "U", "parameters": {"ID": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "WIDTH": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "RESULT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "E", "type_name": "IntegerType"}}},
  "SET_BORDER": {"visibility": "U", "parameters": {"BORDER": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}}},
  "GET_CONTAINER": {"visibility": "U", "parameters": {"CONTAINER": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_GUI_CONTAINER", RTTIName: "\\CLASS=CL_GUI_CONTAINER"});}, "is_optional": " ", "parm_kind": "R", "type_name": "ObjectReferenceType"}, "ROW": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "COLUMN": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}}}};
  constructor() {
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "free": this.free.bind(this),
      "set_column_mode": this.set_column_mode.bind(this),
      "set_row_sash": this.set_row_sash.bind(this),
      "set_row_height": this.set_row_height.bind(this),
      "set_column_sash": this.set_column_sash.bind(this),
      "set_row_mode": this.set_row_mode.bind(this),
      "set_column_width": this.set_column_width.bind(this),
      "set_border": this.set_border.bind(this),
      "get_container": this.get_container.bind(this),
    };
    this.mode_absolute = cl_gui_splitter_container.mode_absolute;
    this.mode_relative = cl_gui_splitter_container.mode_relative;
    this.type_movable = cl_gui_splitter_container.type_movable;
    this.type_sashvisible = cl_gui_splitter_container.type_sashvisible;
    this.true = cl_gui_splitter_container.true;
    this.false = cl_gui_splitter_container.false;
  }
  async set_row_sash(INPUT) {
    let id = INPUT?.id;
    if (id?.getQualifiedName === undefined || id.getQualifiedName() !== "I") { id = undefined; }
    if (id === undefined) { id = new abap.types.Integer({qualifiedName: "I"}).set(INPUT.id); }
    let type = INPUT?.type;
    if (type?.getQualifiedName === undefined || type.getQualifiedName() !== "I") { type = undefined; }
    if (type === undefined) { type = new abap.types.Integer({qualifiedName: "I"}).set(INPUT.type); }
    let value = INPUT?.value;
    if (value?.getQualifiedName === undefined || value.getQualifiedName() !== "I") { value = undefined; }
    if (value === undefined) { value = new abap.types.Integer({qualifiedName: "I"}).set(INPUT.value); }
    let result = INPUT?.result || new abap.types.Integer({qualifiedName: "I"});
    return;
  }
  async set_column_sash(INPUT) {
    let id = INPUT?.id;
    if (id?.getQualifiedName === undefined || id.getQualifiedName() !== "I") { id = undefined; }
    if (id === undefined) { id = new abap.types.Integer({qualifiedName: "I"}).set(INPUT.id); }
    let type = INPUT?.type;
    if (type?.getQualifiedName === undefined || type.getQualifiedName() !== "I") { type = undefined; }
    if (type === undefined) { type = new abap.types.Integer({qualifiedName: "I"}).set(INPUT.type); }
    let value = INPUT?.value;
    if (value?.getQualifiedName === undefined || value.getQualifiedName() !== "I") { value = undefined; }
    if (value === undefined) { value = new abap.types.Integer({qualifiedName: "I"}).set(INPUT.value); }
    let result = INPUT?.result || new abap.types.Integer({qualifiedName: "I"});
    return;
  }
  async set_row_mode(INPUT) {
    let mode = INPUT?.mode;
    if (mode?.getQualifiedName === undefined || mode.getQualifiedName() !== "I") { mode = undefined; }
    if (mode === undefined) { mode = new abap.types.Integer({qualifiedName: "I"}).set(INPUT.mode); }
    let result = INPUT?.result || new abap.types.Integer({qualifiedName: "I"});
    return;
  }
  async set_row_height(INPUT) {
    let id = INPUT?.id;
    if (id?.getQualifiedName === undefined || id.getQualifiedName() !== "I") { id = undefined; }
    if (id === undefined) { id = new abap.types.Integer({qualifiedName: "I"}).set(INPUT.id); }
    let height = INPUT?.height;
    if (height?.getQualifiedName === undefined || height.getQualifiedName() !== "I") { height = undefined; }
    if (height === undefined) { height = new abap.types.Integer({qualifiedName: "I"}).set(INPUT.height); }
    let result = INPUT?.result || new abap.types.Integer({qualifiedName: "I"});
    return;
  }
  async constructor_(INPUT) {
    let parent = new abap.types.ABAPObject({qualifiedName: "CL_GUI_CONTAINER", RTTIName: "\\CLASS=CL_GUI_CONTAINER"});
    if (INPUT && INPUT.parent) {parent.set(INPUT.parent);}
    let rows = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.rows) {rows.set(INPUT.rows);}
    let align = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.align) {align.set(INPUT.align);}
    let columns = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.columns) {columns.set(INPUT.columns);}
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
    return this;
  }
  async set_column_mode(INPUT) {
    let mode = INPUT?.mode;
    if (mode?.getQualifiedName === undefined || mode.getQualifiedName() !== "I") { mode = undefined; }
    if (mode === undefined) { mode = new abap.types.Integer({qualifiedName: "I"}).set(INPUT.mode); }
    let result = INPUT?.result || new abap.types.Integer({qualifiedName: "I"});
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
  }
  async free() {
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
  }
  async get_container(INPUT) {
    let container = new abap.types.ABAPObject({qualifiedName: "CL_GUI_CONTAINER", RTTIName: "\\CLASS=CL_GUI_CONTAINER"});
    let row = INPUT?.row;
    if (row?.getQualifiedName === undefined || row.getQualifiedName() !== "I") { row = undefined; }
    if (row === undefined) { row = new abap.types.Integer({qualifiedName: "I"}).set(INPUT.row); }
    let column = INPUT?.column;
    if (column?.getQualifiedName === undefined || column.getQualifiedName() !== "I") { column = undefined; }
    if (column === undefined) { column = new abap.types.Integer({qualifiedName: "I"}).set(INPUT.column); }
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
    return container;
  }
  async set_column_width(INPUT) {
    let id = INPUT?.id;
    if (id?.getQualifiedName === undefined || id.getQualifiedName() !== "I") { id = undefined; }
    if (id === undefined) { id = new abap.types.Integer({qualifiedName: "I"}).set(INPUT.id); }
    let width = INPUT?.width;
    if (width?.getQualifiedName === undefined || width.getQualifiedName() !== "I") { width = undefined; }
    if (width === undefined) { width = new abap.types.Integer({qualifiedName: "I"}).set(INPUT.width); }
    let result = INPUT?.result || new abap.types.Integer({qualifiedName: "I"});
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
  }
  async set_border(INPUT) {
    let border = INPUT?.border;
    if (border?.getQualifiedName === undefined || border.getQualifiedName() !== "ABAP_BOOL") { border = undefined; }
    if (border === undefined) { border = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}).set(INPUT.border); }
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
  }
}
abap.Classes['CL_GUI_SPLITTER_CONTAINER'] = cl_gui_splitter_container;
cl_gui_splitter_container.mode_absolute = new abap.types.Integer({qualifiedName: "I"});
cl_gui_splitter_container.mode_absolute.set(0);
cl_gui_splitter_container.mode_relative = new abap.types.Integer({qualifiedName: "I"});
cl_gui_splitter_container.mode_relative.set(1);
cl_gui_splitter_container.type_movable = new abap.types.Integer({qualifiedName: "I"});
cl_gui_splitter_container.type_movable.set(0);
cl_gui_splitter_container.type_sashvisible = new abap.types.Integer({qualifiedName: "I"});
cl_gui_splitter_container.type_sashvisible.set(1);
cl_gui_splitter_container.true = new abap.types.Integer({qualifiedName: "I"});
cl_gui_splitter_container.true.set(1);
cl_gui_splitter_container.false = new abap.types.Integer({qualifiedName: "I"});
cl_gui_splitter_container.false.set(0);
export {cl_gui_splitter_container};