All files / output cl_gui_splitter_container.clas.mjs

31.25% Statements 25/80
100% Branches 2/2
4.54% Functions 1/22
31.25% Lines 25/80

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 801x 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 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"}};
  static METHODS = {"CONSTRUCTOR": {"visibility": "U", "parameters": {"PARENT": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_GUI_CONTAINER", RTTIName: "\\CLASS=CL_GUI_CONTAINER"});}, "is_optional": " "}, "ROWS": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}, "ALIGN": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}, "COLUMNS": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}}},
  "FREE": {"visibility": "U", "parameters": {}},
  "SET_COLUMN_MODE": {"visibility": "U", "parameters": {"MODE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}, "RESULT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}}},
  "SET_COLUMN_WIDTH": {"visibility": "U", "parameters": {"ID": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}, "WIDTH": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}, "RESULT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}}},
  "SET_BORDER": {"visibility": "U", "parameters": {"BORDER": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}}},
  "GET_CONTAINER": {"visibility": "U", "parameters": {"CONTAINER": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_GUI_CONTAINER", RTTIName: "\\CLASS=CL_GUI_CONTAINER"});}, "is_optional": " "}, "ROW": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}, "COLUMN": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}}}};
  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_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;
  }
  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);
export {cl_gui_splitter_container};