All files / output cl_gui_control.clas.mjs

42.5% Statements 51/120
100% Branches 2/2
3.03% Functions 1/33
42.5% Lines 51/120

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 1201x 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 1x 1x
const {cl_gui_object} = await import("./cl_gui_object.clas.mjs");
const {cx_root} = await import("./cx_root.clas.mjs");
// cl_gui_control.clas.abap
class cl_gui_control extends cl_gui_object {
  static STATIC_SUPER = cl_gui_object;
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_GUI_CONTROL';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {"PARENT": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_GUI_CONTAINER", RTTIName: "\\CLASS=CL_GUI_CONTAINER"});}, "visibility": "U", "is_constant": " ", "is_class": " "},
  "ALIGN_AT_BOTTOM": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "ALIGN_AT_LEFT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "ALIGN_AT_RIGHT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "ALIGN_AT_TOP": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "WS_CLIPSIBLINGS": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"}};
  static METHODS = {"SET_FOCUS": {"visibility": "U", "parameters": {"CONTROL": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_GUI_CONTROL", RTTIName: "\\CLASS=CL_GUI_CONTROL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "ObjectReferenceType"}}},
  "GET_WIDTH": {"visibility": "U", "parameters": {"WIDTH": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "E", "type_name": "IntegerType"}}},
  "SET_ENABLE": {"visibility": "U", "parameters": {"ENABLE": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CGenericType"}}},
  "SET_VISIBLE": {"visibility": "U", "parameters": {"VISIBLE": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CGenericType"}}},
  "SET_REGISTERED_EVENTS": {"visibility": "U", "parameters": {"EVENTS": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}}},
  "GET_FOCUS": {"visibility": "U", "parameters": {"CONTROL": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_GUI_CONTROL", RTTIName: "\\CLASS=CL_GUI_CONTROL"});}, "is_optional": " ", "parm_kind": "E", "type_name": "ObjectReferenceType"}}},
  "FREE": {"visibility": "U", "parameters": {}},
  "SET_ALIGNMENT": {"visibility": "U", "parameters": {"ALIGNMENT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}}},
  "GET_HEIGHT": {"visibility": "U", "parameters": {"HEIGHT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "E", "type_name": "IntegerType"}}},
  "SET_POSITION": {"visibility": "U", "parameters": {"HEIGHT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "LEFT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "TOP": {"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"}}}};
  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,
      "get_width": this.get_width.bind(this),
      "set_enable": this.set_enable.bind(this),
      "set_visible": this.set_visible.bind(this),
      "set_registered_events": this.set_registered_events.bind(this),
      "free": this.free.bind(this),
      "set_alignment": this.set_alignment.bind(this),
      "get_height": this.get_height.bind(this),
      "set_position": this.set_position.bind(this),
    };
    this.parent = new abap.types.ABAPObject({qualifiedName: "CL_GUI_CONTAINER", RTTIName: "\\CLASS=CL_GUI_CONTAINER"});
    this.align_at_bottom = cl_gui_control.align_at_bottom;
    this.align_at_left = cl_gui_control.align_at_left;
    this.align_at_right = cl_gui_control.align_at_right;
    this.align_at_top = cl_gui_control.align_at_top;
    this.ws_clipsiblings = cl_gui_control.ws_clipsiblings;
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async set_position(INPUT) {
    let height = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.height) {height.set(INPUT.height);}
    let left = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.left) {left.set(INPUT.left);}
    let top = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.top) {top.set(INPUT.top);}
    let width = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.width) {width.set(INPUT.width);}
    return;
  }
  async get_width(INPUT) {
    let width = INPUT?.width || new abap.types.Integer({qualifiedName: "I"});
    return;
  }
  async get_height(INPUT) {
    let height = INPUT?.height || new abap.types.Integer({qualifiedName: "I"});
    return;
  }
  async set_alignment(INPUT) {
    let alignment = INPUT?.alignment;
    if (alignment?.getQualifiedName === undefined || alignment.getQualifiedName() !== "I") { alignment = undefined; }
    if (alignment === undefined) { alignment = new abap.types.Integer({qualifiedName: "I"}).set(INPUT.alignment); }
    return;
  }
  async get_focus(INPUT) {
    return cl_gui_control.get_focus(INPUT);
  }
  static async get_focus(INPUT) {
    let control = INPUT?.control || new abap.types.ABAPObject({qualifiedName: "CL_GUI_CONTROL", RTTIName: "\\CLASS=CL_GUI_CONTROL"});
    return;
  }
  async free() {
    return;
  }
  async set_registered_events(INPUT) {
    let events = INPUT?.events;
    return;
  }
  async set_visible(INPUT) {
    let visible = INPUT?.visible;
    return;
  }
  async set_focus(INPUT) {
    return cl_gui_control.set_focus(INPUT);
  }
  static async set_focus(INPUT) {
    let control = INPUT?.control;
    if (control?.getQualifiedName === undefined || control.getQualifiedName() !== "CL_GUI_CONTROL") { control = undefined; }
    if (control === undefined) { control = new abap.types.ABAPObject({qualifiedName: "CL_GUI_CONTROL", RTTIName: "\\CLASS=CL_GUI_CONTROL"}).set(INPUT.control); }
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
  }
  async set_enable(INPUT) {
    let enable = INPUT?.enable;
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
  }
}
abap.Classes['CL_GUI_CONTROL'] = cl_gui_control;
cl_gui_control.align_at_bottom = new abap.types.Integer({qualifiedName: "I"});
cl_gui_control.align_at_bottom.set(8);
cl_gui_control.align_at_left = new abap.types.Integer({qualifiedName: "I"});
cl_gui_control.align_at_left.set(1);
cl_gui_control.align_at_right = new abap.types.Integer({qualifiedName: "I"});
cl_gui_control.align_at_right.set(2);
cl_gui_control.align_at_top = new abap.types.Integer({qualifiedName: "I"});
cl_gui_control.align_at_top.set(4);
cl_gui_control.ws_clipsiblings = new abap.types.Integer({qualifiedName: "I"});
cl_gui_control.ws_clipsiblings.set(67108864);
export {cl_gui_control};